# HG changeset patch # User lorenm # Date 1160602455 0 # Node ID eeab022510563a09ee96fd85dc5c4943e52c999c # Parent 6cbad3675632629b0d6a1e5963ddf23759cfe47c more prefetches, 2% faster h264 diff -r 6cbad3675632 -r eeab02251056 h264.c --- a/h264.c Wed Oct 11 17:59:40 2006 +0000 +++ b/h264.c Wed Oct 11 21:34:15 2006 +0000 @@ -3639,6 +3639,9 @@ dest_cb = s->current_picture.data[1] + (mb_y * 8 * s->uvlinesize) + mb_x * 8; dest_cr = s->current_picture.data[2] + (mb_y * 8 * s->uvlinesize) + mb_x * 8; + s->dsp.prefetch(dest_y + (s->mb_x&3)*4*s->linesize + 64, s->linesize, 4); + s->dsp.prefetch(dest_cb + (s->mb_x&7)*s->uvlinesize + 64, dest_cr - dest_cb, 2); + if (MB_FIELD) { linesize = h->mb_linesize = s->linesize * 2; uvlinesize = h->mb_uvlinesize = s->uvlinesize * 2;