OSDN Git Service

media: hantro: Use VP8 lengths defined in uapi
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>
Mon, 9 Nov 2020 16:22:44 +0000 (17:22 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 3 Dec 2020 06:43:14 +0000 (07:43 +0100)
Use the new defines instead of hardcoding the VP8 lengths.

[hverkuil: add commit log]

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>
drivers/staging/media/hantro/hantro_vp8.c

index 0e02d14..91ec9a0 100644 (file)
@@ -23,11 +23,11 @@ struct vp8_prob_tbl_packed {
        u8 padding1;
 
        /* mv prob */
-       u8 prob_mv_context[2][19];
+       u8 prob_mv_context[2][V4L2_VP8_MV_PROB_CNT];
        u8 padding2[2];
 
        /* coeff probs */
-       u8 prob_coeffs[4][8][3][11];
+       u8 prob_coeffs[4][8][3][V4L2_VP8_COEFF_PROB_CNT];
        u8 padding3[96];
 };