[FFmpeg-devel] [PATCH 4/4] avfilter/vf_framerate: add SIMD functions for frame blending
Martin Vignali
martin.vignali at gmail.com
Thu Jan 18 13:39:38 EET 2018
> if (s->bitdepth == 8) {
> s->blend_factor_max = 1 << BLEND_FACTOR_DEPTH8;
> - s->blend = blend_frames_c;
> + if (ARCH_X86 && EXTERNAL_AVX2(cpu_flags))
> + s->blend = ff_blend_frames_avx2;
>
I think it's :
if (EXTERNAL_AVX2_FAST(cpu_flags)
> + else if (ARCH_X86 && EXTERNAL_SSSE3(cpu_flags))
> + s->blend = ff_blend_frames_ssse3;
> + else
> + s->blend = blend_frames_c;
> } else {
> s->blend_factor_max = 1 << BLEND_FACTOR_DEPTH16;
> - s->blend = blend_frames16_c;
> + if (ARCH_X86 && EXTERNAL_AVX2(cpu_flags))
> + s->blend = ff_blend_frames16_avx2;
>
same here
+ else if (ARCH_X86 && EXTERNAL_SSE4(cpu_flags))
> + s->blend = ff_blend_frames16_sse4;
> + else
> + s->blend = blend_frames16_c;
> }
>
>
+
> +
> +INIT_XMM ssse3
> +BLEND_FRAMES
> +
> +INIT_YMM avx2
> +BLEND_FRAMES
>
Probably need
%if HAVE_AVX2_EXTERNAL
%end if (around INIT_YMM avx2....)
> +
> +INIT_XMM sse4
> +BLEND_FRAMES16
> +
> +INIT_YMM avx2
> +BLEND_FRAMES16
> --
>
>
Martin
More information about the ffmpeg-devel
mailing list