diff options
author | James Darnley <james.darnley@gmail.com> | 2016-01-15 20:35:06 +0100 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2016-02-01 13:40:07 +0100 |
commit | 15ec7aa4170ed05ad1b17000ef1e3940d0a0c5e7 (patch) | |
tree | d6f2196721a51809d931883aa7039096991a112c /libavcodec/x86/v210enc_init.c | |
parent | d29237e5578a187c5a8d91338cd70ce0fd6f6003 (diff) |
v210: Add avx2 version of the 10-bit line encoder
Around 25% faster than the ssse3 version.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Diffstat (limited to 'libavcodec/x86/v210enc_init.c')
-rw-r--r-- | libavcodec/x86/v210enc_init.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/x86/v210enc_init.c b/libavcodec/x86/v210enc_init.c index fd8508b43e..33f2e4113f 100644 --- a/libavcodec/x86/v210enc_init.c +++ b/libavcodec/x86/v210enc_init.c @@ -29,6 +29,9 @@ void ff_v210_planar_pack_8_avx2(const uint8_t *y, const uint8_t *u, void ff_v210_planar_pack_10_ssse3(const uint16_t *y, const uint16_t *u, const uint16_t *v, uint8_t *dst, ptrdiff_t width); +void ff_v210_planar_pack_10_avx2(const uint16_t *y, const uint16_t *u, + const uint16_t *v, uint8_t *dst, + ptrdiff_t width); av_cold void ff_v210enc_init_x86(V210EncContext *s) { @@ -45,5 +48,6 @@ av_cold void ff_v210enc_init_x86(V210EncContext *s) 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; } } |