From: Jason Garrett-Glaser Date: Tue, 18 Oct 2011 21:30:26 +0000 (-0700) Subject: Add fenc prefetching to adaptive quant X-Git-Url: http://www.zmx.ovh/git.videolan.org/?a=commitdiff_plain;h=07efeb45db224b7757880d4d63bb549fb454f6db;p=x264.git Add fenc prefetching to adaptive quant Many fewer cache misses, faster adaptive quant. --- diff --git a/encoder/ratecontrol.c b/encoder/ratecontrol.c index 25d2bb3e..4853432e 100644 --- a/encoder/ratecontrol.c +++ b/encoder/ratecontrol.c @@ -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