Commit c98a32e4 authored by Paul B Mahol's avatar Paul B Mahol

avfilter/vf_blend: add 10bit support

parent 02809e7b
......@@ -74,7 +74,7 @@ typedef struct FilterParams {
struct FilterParams *param, double *values, int starty);
} FilterParams;
void ff_blend_init(FilterParams *param, int is_16bit);
void ff_blend_init_x86(FilterParams *param, int is_16bit);
void ff_blend_init(FilterParams *param, int depth);
void ff_blend_init_x86(FilterParams *param, int depth);
#endif /* AVFILTER_BLEND_H */
This diff is collapsed.
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment