]> www.infradead.org Git - users/jedix/linux-maple.git/commit
media: mediatek: vcodec: support extended h264 decode
authorYunfei Dong <yunfei.dong@mediatek.com>
Sat, 8 Mar 2025 07:47:56 +0000 (15:47 +0800)
committerHans Verkuil <hverkuil@xs4all.nl>
Fri, 11 Apr 2025 11:21:13 +0000 (13:21 +0200)
commitc8c3bb1e54457eec538907a614fab3c9c9295ff8
tree40ec692d0dc9730992978ab54152821db836e259
parent80d45644d5f93d941ff127a0791362a0738c0745
media: mediatek: vcodec: support extended h264 decode

Add a new extended vsi_ext struct besides the existing vsi struct, to
enable calculating the end of the address range of the current working
buffer for architectures, where simply adding the buffer size to the
start of the address range isn't sufficient.
Additionally, on extended architectures, the NAL information can be
fetched directly from the firmware, which allows skipping the parsing
step within the kernel.

Signed-off-by: Yunfei Dong <yunfei.dong@mediatek.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
drivers/media/platform/mediatek/vcodec/decoder/mtk_vcodec_dec_drv.h
drivers/media/platform/mediatek/vcodec/decoder/vdec/vdec_h264_req_multi_if.c