From 07efeb45db224b7757880d4d63bb549fb454f6db Mon Sep 17 00:00:00 2001 From: Jason Garrett-Glaser Date: Tue, 18 Oct 2011 14:30:26 -0700 Subject: [PATCH] Add fenc prefetching to adaptive quant Many fewer cache misses, faster adaptive quant. --- encoder/ratecontrol.c | 1 + 1 file changed, 1 insertion(+) 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 -- 2.47.3