summaryrefslogtreecommitdiff
path: root/include/media/vp8-ctrls.h
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2020-11-09 17:22:43 +0100
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2020-12-03 07:42:54 +0100
commit8d48b611685cd64e8df366d6ccbaad8cf1a4260c (patch)
tree6c4d4fdeeaa850703d8ee591ed8fd3baf9232bcc /include/media/vp8-ctrls.h
parent040d31ccf2bd873b32961eb1cf4a0a78423caca8 (diff)
media: uapi: Expose VP8 probability lengths as defines
These values will be used by various drivers implementing the VP8 stateless API. This had been suggested by Ezequiel Garcia for the Cedrus VP8 driver. Signed-off-by: Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'include/media/vp8-ctrls.h')
-rw-r--r--include/media/vp8-ctrls.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/media/vp8-ctrls.h b/include/media/vp8-ctrls.h
index 53cba826e482..a920493361dc 100644
--- a/include/media/vp8-ctrls.h
+++ b/include/media/vp8-ctrls.h
@@ -53,11 +53,13 @@ struct v4l2_vp8_quantization_header {
__u16 padding;
};
+#define V4L2_VP8_COEFF_PROB_CNT 11
+#define V4L2_VP8_MV_PROB_CNT 19
struct v4l2_vp8_entropy_header {
- __u8 coeff_probs[4][8][3][11];
+ __u8 coeff_probs[4][8][3][V4L2_VP8_COEFF_PROB_CNT];
__u8 y_mode_probs[4];
__u8 uv_mode_probs[3];
- __u8 mv_probs[2][19];
+ __u8 mv_probs[2][V4L2_VP8_MV_PROB_CNT];
__u8 padding[3];
};