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

piga at svn.xiph.org piga at svn.xiph.org
Mon Jul 14 10:57:45 PDT 2008


Author: piga
Date: 2008-07-14 10:57:44 -0700 (Mon, 14 Jul 2008)
New Revision: 15111

Modified:
   branches/theora_multithread_decode_omp/lib/dec/decode.c
Log:
A faster version with greater MCU size


Modified: branches/theora_multithread_decode_omp/lib/dec/decode.c
===================================================================
--- branches/theora_multithread_decode_omp/lib/dec/decode.c	2008-07-11 23:29:15 UTC (rev 15110)
+++ branches/theora_multithread_decode_omp/lib/dec/decode.c	2008-07-14 17:57:44 UTC (rev 15111)
@@ -1438,7 +1438,11 @@
   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.*/
-  _pipe->mcu_nvfrags=4<<!(_dec->state.info.pixel_fmt&2);
+  if (_state->info.frame_height > 256) {
+    _pipe->mcu_nvfrags=128<<!(_dec->state.info.pixel_fmt&2);
+  } else {
+    _pipe->mcu_nvfrags=_state->info.frame_height;
+  }
   /*Initialize the token and extra bits indices for each plane and
      coefficient.*/
   memset(_pipe->ti[0],0,sizeof(_pipe->ti[0]));



More information about the commits mailing list