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/v210enc.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libavcodec/v210enc.h') diff --git a/libavcodec/v210enc.h b/libavcodec/v210enc.h index 74b0514f2e..ee3637a584 100644 --- a/libavcodec/v210enc.h +++ b/libavcodec/v210enc.h @@ -28,7 +28,8 @@ typedef struct V210EncContext { const uint8_t *v, uint8_t *dst, ptrdiff_t width); void (*pack_line_10)(const uint16_t *y, const uint16_t *u, const uint16_t *v, uint8_t *dst, ptrdiff_t width); - int sample_factor; + int sample_factor_8; + int sample_factor_10; } V210EncContext; void ff_v210enc_init(V210EncContext *s); -- cgit v1.2.3