media: platform: Refactor mtk_jpeg_set_default_params()
authorXia Jiang <xia.jiang@mediatek.com>
Fri, 14 Aug 2020 07:11:55 +0000 (09:11 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Fri, 28 Aug 2020 13:35:04 +0000 (15:35 +0200)
commitbd627ff5d58507358759e76f1e8148ef3fdcda02
tree0d29fe5481d96b8dc33d5f78ef84ca749ab5f5f4
parent0b90056a39ed23284f27672497333e5a9d957d62
media: platform: Refactor mtk_jpeg_set_default_params()

Call mtk_jpeg_try_fmt_mplane() to replace the original computation of
sizeimage and bytesperline, because that mtk_jpeg_try_fmt_mplane()
already did it.

Reviewed-by: Tomasz Figa <tfiga@chromium.org>
Signed-off-by: Xia Jiang <xia.jiang@mediatek.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c