]> git.sesse.net Git - x264/commitdiff
Add fenc prefetching to adaptive quant
authorFiona Glaser <fiona@x264.com>
Tue, 18 Oct 2011 21:30:26 +0000 (14:30 -0700)
committerFiona Glaser <fiona@x264.com>
Sat, 22 Oct 2011 00:22:59 +0000 (17:22 -0700)
Many fewer cache misses, faster adaptive quant.

encoder/ratecontrol.c

index 67b64f40e37e31c90989fa5230b7e3c2a2a02b28..44c276d4636dc4d0b40af2ba77af046461b341e6 100644 (file)
@@ -247,6 +247,7 @@ static NOINLINE uint32_t x264_ac_energy_mb( x264_t *h, int mb_x, int mb_y, x264_
      * function and make sure that its always called before the float math.  Noinline makes
      * sure no reordering goes on. */
     uint32_t var;
+    x264_prefetch_fenc( h, frame, mb_x, mb_y );
     if( h->mb.b_adaptive_mbaff )
     {
         /* We don't know the super-MB mode we're going to pick yet, so