diff options
author | Henrik Gramner <henrik@gramner.com> | 2015-09-06 01:06:12 +0200 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2015-09-06 10:36:24 +0200 |
commit | 3cdda78deb19b39dbbf8961ae0aec44dbb19bf6d (patch) | |
tree | c90bd89080d15b8dde1f27c0c132e04cab083514 /libavcodec/v210enc.c | |
parent | 599fe93a840397f551d94db406d0bad42b46b94b (diff) | |
download | ffmpeg-3cdda78deb19b39dbbf8961ae0aec44dbb19bf6d.tar.gz |
checkasm: add unit tests for v210enc
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Diffstat (limited to 'libavcodec/v210enc.c')
-rw-r--r-- | libavcodec/v210enc.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/libavcodec/v210enc.c b/libavcodec/v210enc.c index 42cbb862e4..ca6ad2ee2f 100644 --- a/libavcodec/v210enc.c +++ b/libavcodec/v210enc.c @@ -82,6 +82,15 @@ static void v210_planar_pack_10_c(const uint16_t *y, const uint16_t *u, } } +av_cold void ff_v210enc_init(V210EncContext *s) +{ + s->pack_line_8 = v210_planar_pack_8_c; + s->pack_line_10 = v210_planar_pack_10_c; + + if (ARCH_X86) + ff_v210enc_init_x86(s); +} + static av_cold int encode_init(AVCodecContext *avctx) { V210EncContext *s = avctx->priv_data; @@ -97,11 +106,7 @@ FF_DISABLE_DEPRECATION_WARNINGS FF_ENABLE_DEPRECATION_WARNINGS #endif - s->pack_line_8 = v210_planar_pack_8_c; - s->pack_line_10 = v210_planar_pack_10_c; - - if (ARCH_X86) - ff_v210enc_init_x86(s); + ff_v210enc_init(s); return 0; } |