media: mtk-vcodec: support single-buffer frames
authorYunfei Dong <yunfei.dong@mediatek.com>
Tue, 4 Jun 2019 09:37:37 +0000 (05:37 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Wed, 5 Jun 2019 19:24:53 +0000 (15:24 -0400)
commit0c6280b3c353868a1a40596585db43af756b0617
tree5458372ef8abae91e8ec1c0bc6ef9efccc75a60f
parent0a7ff71e223fbf8d22a6db156a67482c77d5121a
media: mtk-vcodec: support single-buffer frames

MT8183 will use a multi-planar format backed by a single buffer. Adapt
the existing code to be able to handle such frames instead of assuming
each frame is backed by two buffers.

Co-developed-by: Alexandre Courbot <acourbot@chromium.org>
[acourbot: refactor, cleanup and split]

Signed-off-by: Yunfei Dong <yunfei.dong@mediatek.com>
Signed-off-by: Alexandre Courbot <acourbot@chromium.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
[hverkuil-cisco@xs4all.nl: fix checkpatch alignment warning]
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c