Re: [PATCH v2] media: mediatek: vcodec: Use 4K frame size when supported by stateful decoder

From: AngeloGioacchino Del Regno
Date: Tue Mar 14 2023 - 10:45:10 EST


Il 14/03/23 11:22, Pin-yen Lin ha scritto:
After commit b018be06f3c7 ("media: mediatek: vcodec: Read max resolution
from dec_capability"), the stateful video decoder driver never really
sets its output frame size to 4K.

Parse the decoder capability reported by the firmware, and update the
output frame size in mtk_init_vdec_params to enable 4K frame size when
available.

Fixes: b018be06f3c7 ("media: mediatek: vcodec: Read max resolution from dec_capability")
Signed-off-by: Pin-yen Lin <treapking@xxxxxxxxxxxx>


Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@xxxxxxxxxxxxx>