aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/vaapi_encode.h
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-08-01 11:54:25 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-08-05 03:28:45 +0200
commit57d305207a30131172e1c07c99e2cba833c1add1 (patch)
tree8eaefcb072537115a8878e426d87666e67a32ba0 /libavcodec/vaapi_encode.h
parente081358e8d838b9d83c75fe58780b66cbbf3153d (diff)
downloadffmpeg-57d305207a30131172e1c07c99e2cba833c1add1.tar.gz
avcodec/aacenc_quantization: Deduplicate quantization functions
Up until now, there were four copies of quantize_and_encode_band_cost_(ZERO|[SU]QUAD|[SU]PAIR|ESC|NONE|NOISE|STEREO) (namely in aaccoder.o, aacenc_is.o, aacenc_ltp.o, aacenc_pred.o). As 43b378a0d321e3d01f196cec95e13acfac80d464 says, this is meant to enable more optimizations. Yet neither GCC nor Clang performed such optimizations: The functions in the aforementioned files are not optimized according to the specifics of the calls in the respective file. Therefore duplicating them is a waste of space; this commit therefore stops doing so. The remaining copy is placed into aaccoder.c (which is the only place where the "round to zero" variant of quantize_and_encode_band() is used, so that this can be completely internal to aaccoder.c). Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/vaapi_encode.h')
0 files changed, 0 insertions, 0 deletions