From: Ming Qian <ming.qian@oss.nxp.com>
If colorspace changes, the client needs to renegotiate the pipeline,
otherwise the decoded frame may not be displayed correctly.
A change in colorspace triggers a source change, allowing the client to
detect the specific reason and decide whether request buffer
reallocation.
Change logs:
v4
- Drop V4L2_EVENT_SRC_CH_COLORSPACE, to avoid backward compatibility
issues.
- Add cover-leter
v3
- Improve the description according to comments
v2
- Add V4L2_EVENT_SRC_CH_COLORSPACE for colorspace source change event
Ming Qian (3):
media: docs: dev-decoder: Trigger dynamic source change for colorspace
media: amphion: Clear last_buffer_dequeued flag for DEC_CMD_START
media: amphion: Trigger source change if colorspace changed
.../userspace-api/media/v4l/dev-decoder.rst | 5 +-
drivers/media/platform/amphion/vdec.c | 62 ++++++++++++-------
drivers/media/platform/amphion/vpu_v4l2.c | 1 -
3 files changed, 45 insertions(+), 23 deletions(-)
base-commit: f7231cff1f3ff8259bef02dc4999bc132abf29cf
prerequisite-patch-id: 0000000000000000000000000000000000000000
prerequisite-patch-id: f33b49b7c9c245b32701d1a6e8250da297ccc39b
--
2.52.0