summaryrefslogtreecommitdiff
path: root/libavfilter/x86
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2018-11-15 13:41:45 +0100
committerPaul B Mahol <onemda@gmail.com>2018-11-15 14:44:24 +0100
commitc98a32e4adec0a2289d1f82929d8f57f5c1ca38f (patch)
treee666d860c8911bcd226665bd552686464c20e4ce /libavfilter/x86
parent02809e7b061eabbe6e67254dac4a6d75c548b06d (diff)
downloadffmpeg-c98a32e4adec0a2289d1f82929d8f57f5c1ca38f.tar.gz
avfilter/vf_blend: add 10bit support
Diffstat (limited to 'libavfilter/x86')
-rw-r--r--libavfilter/x86/vf_blend_init.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavfilter/x86/vf_blend_init.c b/libavfilter/x86/vf_blend_init.c
index acf28559ff..84bc55cc87 100644
--- a/libavfilter/x86/vf_blend_init.c
+++ b/libavfilter/x86/vf_blend_init.c
@@ -100,11 +100,11 @@ BLEND_FUNC(xor_16, sse2)
BLEND_FUNC(xor_16, avx2)
#endif /* ARCH_X86_64 */
-av_cold void ff_blend_init_x86(FilterParams *param, int is_16bit)
+av_cold void ff_blend_init_x86(FilterParams *param, int depth)
{
int cpu_flags = av_get_cpu_flags();
- if (!is_16bit) {
+ if (depth == 8) {
if (EXTERNAL_SSE2(cpu_flags) && param->opacity == 1) {
switch (param->mode) {
case BLEND_ADDITION: param->blend = ff_blend_addition_sse2; break;
@@ -156,7 +156,7 @@ av_cold void ff_blend_init_x86(FilterParams *param, int is_16bit)
case BLEND_NEGATION: param->blend = ff_blend_negation_avx2; break;
}
}
- } else { /* is_16_bit */
+ } else if (depth == 16) {
#if ARCH_X86_64
if (EXTERNAL_SSE2(cpu_flags) && param->opacity == 1) {
switch (param->mode) {