@@ -369,6 +369,18 @@ call.
loss of signal and so restarting streaming I/O is required in order for
the hardware to synchronize to the video signal.
+ * - ``V4L2_EVENT_SRC_CH_COLORSPACE``
+ - 0x0002
+ - This event gets triggered when a colorspace change is detected at
+ an input. This can come from a video decoder or a video receiver.
+ Applications will query the new colorspace information
+ (if any, the signal may also have been lost). If the signal is lost,
+ then that is a CH_RESOLUTION change, not CH_COLORSPACE.
+
+ For stateful decoders follow the guidelines in :ref:`decoder`.
+ If CH_COLORSPACE is set, but not CH_RESOLUTION, then only the
+ colorspace changed and there is no need to reallocate buffers.
+
Return Value
============
@@ -526,6 +526,7 @@ replace define V4L2_EVENT_CTRL_CH_RANGE ctrl-changes-flags
replace define V4L2_EVENT_CTRL_CH_DIMENSIONS ctrl-changes-flags
replace define V4L2_EVENT_SRC_CH_RESOLUTION src-changes-flags
+replace define V4L2_EVENT_SRC_CH_COLORSPACE src-changes-flags
replace define V4L2_EVENT_MD_FL_HAVE_FRAME_SEQ :c:type:`v4l2_event_motion_det`
@@ -2559,6 +2559,7 @@ struct v4l2_event_frame_sync {
};
#define V4L2_EVENT_SRC_CH_RESOLUTION (1 << 0)
+#define V4L2_EVENT_SRC_CH_COLORSPACE (1 << 1)
struct v4l2_event_src_change {
__u32 changes;