aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/x86/hpeldsp_rnd_template.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-01-10 17:24:44 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-01-13 08:27:52 +0100
commitc32f6b7f8abcfd9f671f80e423e92ee0408eaa08 (patch)
tree4da11e6b90a61874d9dfa591d150979fac1fb620 /libavcodec/x86/hpeldsp_rnd_template.c
parent0a6e000d75b5f721002b4e0bb7b87700472e30b2 (diff)
downloadffmpeg-c32f6b7f8abcfd9f671f80e423e92ee0408eaa08.tar.gz
avcodec/h264pred: Remove dead > 8 pixels checks for 8bit codecs
RV40, SVQ3 and VP7/VP8 are eight-bit only, so it makes no sense to check for them in the codepath initializing > eight bit contexts. Move the codec-specific code to a switch located after the eight-bit init code where this is easily possible; and add checks to the macro to enable the compiler to remove the remaining checks when initializing bitdepths > 8 at compile-time. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/x86/hpeldsp_rnd_template.c')
0 files changed, 0 insertions, 0 deletions