[xiph-commits] r15116 - branches/theora_multithread_decode_omp/lib/dec

piga at svn.xiph.org piga at svn.xiph.org
Wed Jul 16 17:08:38 PDT 2008


Author: piga
Date: 2008-07-16 17:08:38 -0700 (Wed, 16 Jul 2008)
New Revision: 15116

Modified:
   branches/theora_multithread_decode_omp/lib/dec/decode.c
Log:
This version of the pipelined multithread decoder with openMP uses a generic value for MCU size
Should be compiled with -DMCU_OMP_VALUE=<value> flag


Modified: branches/theora_multithread_decode_omp/lib/dec/decode.c
===================================================================
--- branches/theora_multithread_decode_omp/lib/dec/decode.c	2008-07-16 14:15:11 UTC (rev 15115)
+++ branches/theora_multithread_decode_omp/lib/dec/decode.c	2008-07-17 00:08:38 UTC (rev 15116)
@@ -1438,8 +1438,8 @@
   int  pli;
   /*If chroma is sub-sampled in the vertical direction, we have to decode two
      super block rows of Y' for each super block row of Cb and Cr.*/
-  if (_dec->state.info.frame_height > 256) {
-    _pipe->mcu_nvfrags=64<<!(_dec->state.info.pixel_fmt&2);
+  if (_dec->state.info.frame_height > MCU_OMP_VALUE<<!(_dec->state.info.pixel_fmt&2)) {
+    _pipe->mcu_nvfrags=MCU_OMP_VALUE<<!(_dec->state.info.pixel_fmt&2);
   } else {
     _pipe->mcu_nvfrags=_dec->state.info.frame_height;
   }



More information about the commits mailing list