"Ronald S. Bultje" <[email protected]> writes:

> From: "Ronald S. Bultje" <[email protected]>
>
> Based on work (for GCI) by Aneesh Dogra <[email protected]>, and
> inspired by patch in Chromium by Chris Evans <[email protected]>.
>
> When turned on, H264/CAVLC gets ~15% (CVPCMNL1_SVA_C.264) slower for
> ultra-high-bitrate files, or ~2.5% (CVFI1_SVA_C.264) for lower-bitrate
> files. Other codecs are affected to a lesser extent because they are
> less optimized; e.g., VC-1 slows down by less than 1% (all on x86).
> The patch generated 3 extra instructions (cmp, cmovae and mov) per
> call to get_bits().
> ---
>  configure             |    2 +
>  libavcodec/get_bits.h |   51 +++++++++++++++++++++++++++++++++++++++++++++++-
>  libavcodec/wmavoice.c |    2 +
>  3 files changed, 53 insertions(+), 2 deletions(-)

[...]

> +#if UNCHECKED_BITSTREAM_READER
>  #   define SKIP_COUNTER(name, gb, num) name##_index += (num)
> +#else
> +#   define SKIP_COUNTER(name, gb, num) name##_index = \
> +               FFMIN((gb)->size_in_bits, name##_index + num)
> +#endif

Not +1 any more?

-- 
Måns Rullgård
[email protected]
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to