h264: don't store intra pcm samples in h->mb.
authorRonald S. Bultje <rsbultje@gmail.com>
Sun, 17 Feb 2013 22:52:24 +0000 (14:52 -0800)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 18 Feb 2013 00:21:23 +0000 (01:21 +0100)
commitc63f9fb37a7b7da03bed6d79115f7f2e36607808
treef405ac2af54069fd224ea5a06c071a023869efff
parent54b2bddd22fb32a67038848b8d2394bee671b143
h264: don't store intra pcm samples in h->mb.

Instead, keep them in the bitstream buffer until we read them verbatim,
this saves a memcpy() and a subsequent clearing of the target buffer.
decode_cabac+decode_mb for a sample file (CAPM3_Sony_D.jsv) goes from
6121.4 to 6095.5 cycles, i.e. 26 cycles faster.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/h264.c
libavcodec/h264.h
libavcodec/h264_cabac.c
libavcodec/h264_cavlc.c
libavcodec/h264_mb_template.c