media: meson: vdec: align stride on 32 bytes
authorNeil Armstrong <narmstrong@baylibre.com>
Wed, 4 Mar 2020 09:46:21 +0000 (10:46 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 5 Mar 2020 21:58:52 +0000 (22:58 +0100)
commit7624c9cd5b26417648d3b5fe50f5bdef4d057199
treeb469236bea98b3a07326011633cc475929d0435e
parentd7647e7c90f5f8990ee64d3a51af63b57faff5d5
media: meson: vdec: align stride on 32 bytes

The HEVC/VP9 aligns the plane stride on 32, so align the planes stride
for all codecs to 32 to satisfy HEVC/VP9 decoding using the "HEVC" HW.

This fixes VP9 decoding of streams with following (not limited) widths:
- 264
 -288
- 350
- 352
- 472
- 480
- 528
- 600
- 720
- 800
- 848
- 1440

Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Tested-by: Kevin Hilman <khilman@baylibre.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/meson/vdec/vdec.c
drivers/staging/media/meson/vdec/vdec_helpers.c