summaryrefslogtreecommitdiff
path: root/libavcodec/x86
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2016-01-28 01:01:46 +0100
committerLuca Barbato <lu_zero@gentoo.org>2016-02-01 13:40:07 +0100
commite280fe13291e9c712a5f4aa13b5263f3e8afed45 (patch)
tree1fbfbd0025e7b85b06a28edd467f69626f5824fa /libavcodec/x86
parent15ec7aa4170ed05ad1b17000ef1e3940d0a0c5e7 (diff)
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.
Diffstat (limited to 'libavcodec/x86')
-rw-r--r--libavcodec/x86/v210enc_init.c7
1 files changed, 4 insertions, 3 deletions
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;
}
}