summaryrefslogtreecommitdiff
path: root/libavcodec/v210enc.h
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/v210enc.h
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/v210enc.h')
-rw-r--r--libavcodec/v210enc.h3
1 files changed, 2 insertions, 1 deletions
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);