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)
committerMartin Storsjö <martin@martin.st>
Tue, 19 Feb 2013 20:34:14 +0000 (22:34 +0200)
commit7ebfb466aec2c4628fcd42a72b29034efcaba4bc
treede856f2702d6366c7d5b22993d10a1fff2dca823
parent9918f57dcfc276cc8ecad3705875ca5877980c7a
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: Martin Storsjö <martin@martin.st>
libavcodec/h264.h
libavcodec/h264_cabac.c
libavcodec/h264_cavlc.c
libavcodec/h264_mb_template.c