From e280fe13291e9c712a5f4aa13b5263f3e8afed45 Mon Sep 17 00:00:00 2001 From: Luca Barbato Date: Thu, 28 Jan 2016 01:01:46 +0100 Subject: v210: Use separate sample_factors The 10bit and the 8bit functions can now be implemented to process a different amount of samples. And while at it simplify a little the code. --- libavcodec/x86/v210enc_init.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'libavcodec/x86') diff --git a/libavcodec/x86/v210enc_init.c b/libavcodec/x86/v210enc_init.c index 33f2e4113f..c4d2745b6f 100644 --- a/libavcodec/x86/v210enc_init.c +++ b/libavcodec/x86/v210enc_init.c @@ -46,8 +46,9 @@ av_cold void ff_v210enc_init_x86(V210EncContext *s) s->pack_line_8 = ff_v210_planar_pack_8_avx; if (EXTERNAL_AVX2(cpu_flags)) { - s->sample_factor = 2; - s->pack_line_8 = ff_v210_planar_pack_8_avx2; - s->pack_line_10 = ff_v210_planar_pack_10_avx2; + s->sample_factor_8 = 2; + s->pack_line_8 = ff_v210_planar_pack_8_avx2; + s->sample_factor_10 = 2; + s->pack_line_10 = ff_v210_planar_pack_10_avx2; } } -- cgit v1.2.3