[FFmpeg-devel] [PATCH] h264: don't store intra pcm samples in h->mb.

Ronald S. Bultje rsbultje at gmail.com
Sat Feb 16 18:37:32 CET 2013


Hi,

On Sat, Feb 16, 2013 at 9:35 AM, Ronald S. Bultje <rsbultje at gmail.com> wrote:
> From: "Ronald S. Bultje" <rsbultje at gmail.com>
>
> 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.
> ---
>  libavcodec/h264.c             |  2 +-
>  libavcodec/h264.h             |  1 +
>  libavcodec/h264_cabac.c       |  3 ++-
>  libavcodec/h264_cavlc.c       | 11 +++--------
>  libavcodec/h264_mb_template.c | 29 +++++++++++++++--------------
>  5 files changed, 22 insertions(+), 24 deletions(-)

This one updates 444 decoding also, I somehow forgot that in my earlier patch.

Ronald


More information about the ffmpeg-devel mailing list