]> www.infradead.org Git - users/dwmw2/linux.git/commit
media: amphion: Add a frame flush mode for decoder
authorMing Qian <ming.qian@oss.nxp.com>
Tue, 1 Apr 2025 09:06:57 +0000 (17:06 +0800)
committerHans Verkuil <hverkuil@xs4all.nl>
Tue, 8 Apr 2025 07:21:21 +0000 (07:21 +0000)
commit9ea16ba6eaf93f25f61855751f71e2e701709ddf
tree6578e979766552e7775f14afcb5296c2fee5b935
parentb312ac33a593b64f23b0ddba59c429e89c479a54
media: amphion: Add a frame flush mode for decoder

By default the amphion decoder will pre-parse 3 frames before starting
to decode the first frame. Alternatively, a block of flush padding data
can be appended to the frame, which will ensure that the decoder can
start decoding immediately after parsing the flush padding data, thus
potentially reducing decoding latency.

This mode was previously only enabled, when the display delay was set to
0. Allow the user to manually toggle the use of that mode via a module
parameter called low_latency, which enables the mode without
changing the display order.

Signed-off-by: Ming Qian <ming.qian@oss.nxp.com>
Reviewed-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Signed-off-by: Sebastian Fricke <sebastian.fricke@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
drivers/media/platform/amphion/vpu_malone.c