summaryrefslogtreecommitdiff
path: root/libavcodec/v210enc.h
diff options
context:
space:
mode:
authorJames Darnley <james.darnley@gmail.com>2016-01-15 19:53:28 +0100
committerJames Darnley <james.darnley@gmail.com>2016-01-17 16:03:43 +0100
commit4c430738d9cc8a5712e681236aff4f36991fd48f (patch)
treed25e99eb4aa18ab281cfd798109c763e9550c3f8 /libavcodec/v210enc.h
parent2cba1825f70c301f5513a799302f755967680651 (diff)
avcodec/v210: document the requirement for sample_factor
The sample factor must be the same for both 8- and 10-bit functions chosen otherwise the output will be incorrect.
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 85f84f17b7..899a7d95c3 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; /* This value must be the same for both 8-and 10-bit
+ functions otherwise the output will be incorrect. */
} V210EncContext;
void ff_v210enc_init(V210EncContext *s);