checkasm: add unit tests for v210enc
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
This commit is contained in:
committed by
Luca Barbato
parent
599fe93a84
commit
3cdda78deb
@@ -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;
|
||||
}
|
||||
|
||||
@@ -30,6 +30,8 @@ typedef struct V210EncContext {
|
||||
const uint16_t *v, uint8_t *dst, ptrdiff_t width);
|
||||
} V210EncContext;
|
||||
|
||||
void ff_v210enc_init(V210EncContext *s);
|
||||
|
||||
void ff_v210enc_init_x86(V210EncContext *s);
|
||||
|
||||
#endif /* AVCODEC_V210ENC_H */
|
||||
|
||||
Reference in New Issue
Block a user