]> git.baikalelectronics.ru Git - kernel.git/commit
media: mediatek: vcodec: decoder: Skip alignment for default resolution
authorChen-Yu Tsai <wenst@chromium.org>
Wed, 6 Jul 2022 08:21:35 +0000 (09:21 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 8 Jul 2022 17:07:40 +0000 (18:07 +0100)
commitc47b570bfb1d19bd8c4eebd033804878b05daf5b
treea6a66db3d8715f8566c3d6f32d85a792ca310844
parentfd37e34f471a5172dd9e8cccd0f345e9f74e2c6d
media: mediatek: vcodec: decoder: Skip alignment for default resolution

The default resolution of 64x64 is already aligned, according to the
call to v4l_bound_align_image() in mtk_vcodec_dec_set_default_params().

Drop the redundant v4l_bound_align_image() call. This also removes one
usage of ctx->max_{width,height}.

Signed-off-by: Chen-Yu Tsai <wenst@chromium.org>
Tested-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/platform/mediatek/vcodec/mtk_vcodec_dec.c