summaryrefslogtreecommitdiffstats
path: root/drivers/staging/media/hantro/rk3399_vpu_hw_vp8_dec.c
diff options
context:
space:
mode:
authorEzequiel Garcia <ezequiel@collabora.com>2019-09-03 15:17:08 -0300
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2019-10-01 16:57:05 -0300
commit05e58c83d6311f95677038cf816062234630727e (patch)
treef190c6c96cab5c6c376dd24cc41bc3261b31f489 /drivers/staging/media/hantro/rk3399_vpu_hw_vp8_dec.c
parent5adff604a51ef13edd00656f26a9ba66865b42af (diff)
downloadlinux-stable-05e58c83d6311f95677038cf816062234630727e.tar.gz
linux-stable-05e58c83d6311f95677038cf816062234630727e.tar.bz2
linux-stable-05e58c83d6311f95677038cf816062234630727e.zip
media: hantro: Simplify macroblock macros
It seems all codecs are using a 16x16 size macroblock, and so it's possible to have just one set of macroblock macros. Signed-off-by: Ezequiel Garcia <ezequiel@collabora.com> Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/staging/media/hantro/rk3399_vpu_hw_vp8_dec.c')
-rw-r--r--drivers/staging/media/hantro/rk3399_vpu_hw_vp8_dec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/media/hantro/rk3399_vpu_hw_vp8_dec.c b/drivers/staging/media/hantro/rk3399_vpu_hw_vp8_dec.c
index f17e32620b08..7d32a0283d93 100644
--- a/drivers/staging/media/hantro/rk3399_vpu_hw_vp8_dec.c
+++ b/drivers/staging/media/hantro/rk3399_vpu_hw_vp8_dec.c
@@ -563,8 +563,8 @@ void rk3399_vpu_vp8_dec_run(struct hantro_ctx *ctx)
hantro_reg_write(vpu, &vp8_dec_filter_disable, 1);
/* Frame dimensions */
- mb_width = VP8_MB_WIDTH(width);
- mb_height = VP8_MB_HEIGHT(height);
+ mb_width = MB_WIDTH(width);
+ mb_height = MB_HEIGHT(height);
hantro_reg_write(vpu, &vp8_dec_mb_width, mb_width);
hantro_reg_write(vpu, &vp8_dec_mb_height, mb_height);