mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH RFC 0/2] media: amphion: Clarify and restore V4L2_FMT_FLAG_DYN_RESOLUTION for VC1L
@ 2026-06-08  3:56 Ming Qian
  2026-06-08  3:56 ` [PATCH RFC 1/2] media: docs: Clarify V4L2_FMT_FLAG_DYN_RESOLUTION usage Ming Qian
  2026-06-08  3:56 ` [PATCH RFC 2/2] media: amphion: Add V4L2_FMT_FLAG_DYN_RESOLUTION for VC1L Ming Qian
  0 siblings, 2 replies; 11+ messages in thread
From: Ming Qian @ 2026-06-08  3:56 UTC (permalink / raw)
  To: Mauro Carvalho Chehab, Hans Verkuil, Nicolas Dufresne
  Cc: Zhou Peng, Elliot Chen, Frank Li, linux-imx, imx, linux-media,
	linux-kernel, Ming Qian

The V4L2_FMT_FLAG_DYN_RESOLUTION flag was removed from the VC1 Annex L
format in commit e670f5d672ef ("media: amphion: only insert the first
sequence startcode for vc1l format") because the amphion VPU does not
support mid-stream dynamic resolution changes for this format.

However, the flag also serves another purpose: it indicates to userspace
that the decoder will emit an initial V4L2_EVENT_SOURCE_CHANGE event
during the Initialization phase (as described in the V4L2 stateful
decoder specification, section 4.5.1.5). Without this flag, userspace
frameworks like GStreamer will not subscribe to or wait for the initial
source change event, causing the CAPTURE queue setup to fail.

This was discussed in the original patch review:
https://lore.kernel.org/lkml/7f19f803-4af4-f90d-48d5-63fc0fc780a5@xs4all.nl

The GStreamer side of the issue is tracked here:
https://gitlab.freedesktop.org/gstreamer/gstreamer/-/work_items/5126

This series:
1. Clarifies in the decoder documentation that
   V4L2_FMT_FLAG_DYN_RESOLUTION also indicates the driver will emit an
   initial source change event during initialization.
2. Restores the flag for the amphion VC1 Annex L format so that
   userspace can properly detect and wait for the initial resolution
   event.

Signed-off-by: Ming Qian <ming.qian@oss.nxp.com>
---
Ming Qian (2):
      media: docs: Clarify V4L2_FMT_FLAG_DYN_RESOLUTION usage
      media: amphion: Add V4L2_FMT_FLAG_DYN_RESOLUTION for VC1L

 Documentation/userspace-api/media/v4l/dev-decoder.rst | 8 ++++++++
 drivers/media/platform/amphion/vdec.c                 | 2 +-
 2 files changed, 9 insertions(+), 1 deletion(-)
---
base-commit: 06cb687a5132fcffe624c0070576ab852ac6b568
change-id: 20260608-flag-dyn-resolution-f39fd24a0ba2


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2026-06-11  4:32 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-08  3:56 [PATCH RFC 0/2] media: amphion: Clarify and restore V4L2_FMT_FLAG_DYN_RESOLUTION for VC1L Ming Qian
2026-06-08  3:56 ` [PATCH RFC 1/2] media: docs: Clarify V4L2_FMT_FLAG_DYN_RESOLUTION usage Ming Qian
     [not found]   ` <20260608040616.1A3EE1F00893@smtp.kernel.org>
2026-06-08  6:26     ` Ming Qian (OSS)
2026-06-09 18:00       ` Nicolas Dufresne
2026-06-10  2:49         ` Ming Qian(OSS)
2026-06-10  3:36           ` Ming Qian(OSS)
2026-06-10  6:15             ` Hans Verkuil
2026-06-10 14:00               ` Nicolas Dufresne
2026-06-10 13:20           ` Nicolas Dufresne
2026-06-11  4:32             ` Ming Qian(OSS)
2026-06-08  3:56 ` [PATCH RFC 2/2] media: amphion: Add V4L2_FMT_FLAG_DYN_RESOLUTION for VC1L Ming Qian

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®