> 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 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel