media: amphion: decoder implement display delay enable
authorMing Qian <ming.qian@nxp.com>
Thu, 2 Mar 2023 05:34:10 +0000 (06:34 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Sun, 19 Mar 2023 21:54:56 +0000 (22:54 +0100)
commitffa331d9bf9407655fc4c4d57dcc92ed2868e326
tree38c2238ef65c52e7916fbc626bd8795b37b75136
parent46ff24efe04ac96a129dd01138640c3447a525e1
media: amphion: decoder implement display delay enable

amphion vpu support a low latency mode,
when V4L2_CID_MPEG_VIDEO_DEC_DISPLAY_DELAY_ENABLE is enabled,
decoder can display frame immediately after it's decoded.
Only h264 is support yet.

Fixes: 6de8d628df6e ("media: amphion: add v4l2 m2m vpu decoder stateful driver")
Signed-off-by: Ming Qian <ming.qian@nxp.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/platform/amphion/vdec.c
drivers/media/platform/amphion/vpu_codec.h
drivers/media/platform/amphion/vpu_malone.c