Linux Media Controller development
 help / color / mirror / Atom feed
* [PATCH 1/2] v4l: Add resolution change event.
@ 2014-04-16 12:59 Arun Kumar K
  2014-04-16 12:59 ` [PATCH 2/2] [media] s5p-mfc: Add support for " Arun Kumar K
  2014-04-16 14:09 ` [PATCH 1/2] v4l: Add " Laurent Pinchart
  0 siblings, 2 replies; 5+ messages in thread
From: Arun Kumar K @ 2014-04-16 12:59 UTC (permalink / raw)
  To: linux-media, linux-samsung-soc
  Cc: k.debski, s.nawrocki, hverkuil, posciak, arunkk.samsung

From: Pawel Osciak <posciak@chromium.org>

This event indicates that the decoder has reached a point in the stream,
at which the resolution changes. The userspace is expected to provide a new
set of CAPTURE buffers for the new format before decoding can continue.

Signed-off-by: Pawel Osciak <posciak@chromium.org>
Signed-off-by: Arun Kumar K <arun.kk@samsung.com>
---
 .../DocBook/media/v4l/vidioc-subscribe-event.xml   |    8 ++++++++
 include/uapi/linux/videodev2.h                     |    1 +
 2 files changed, 9 insertions(+)

diff --git a/Documentation/DocBook/media/v4l/vidioc-subscribe-event.xml b/Documentation/DocBook/media/v4l/vidioc-subscribe-event.xml
index 5c70b61..d848628 100644
--- a/Documentation/DocBook/media/v4l/vidioc-subscribe-event.xml
+++ b/Documentation/DocBook/media/v4l/vidioc-subscribe-event.xml
@@ -155,6 +155,14 @@
 	    </entry>
 	  </row>
 	  <row>
+	    <entry><constant>V4L2_EVENT_RESOLUTION_CHANGE</constant></entry>
+	    <entry>5</entry>
+	    <entry>This event is triggered when a resolution change is detected
+	    during runtime by the video decoder. Application may need to
+	    reinitialize buffers before proceeding further.
+	    </entry>
+	  </row>
+	  <row>
 	    <entry><constant>V4L2_EVENT_PRIVATE_START</constant></entry>
 	    <entry>0x08000000</entry>
 	    <entry>Base event number for driver-private events.</entry>
diff --git a/include/uapi/linux/videodev2.h b/include/uapi/linux/videodev2.h
index 6ae7bbe..58488b7 100644
--- a/include/uapi/linux/videodev2.h
+++ b/include/uapi/linux/videodev2.h
@@ -1733,6 +1733,7 @@ struct v4l2_streamparm {
 #define V4L2_EVENT_EOS				2
 #define V4L2_EVENT_CTRL				3
 #define V4L2_EVENT_FRAME_SYNC			4
+#define V4L2_EVENT_RESOLUTION_CHANGE		5
 #define V4L2_EVENT_PRIVATE_START		0x08000000
 
 /* Payload for V4L2_EVENT_VSYNC */
-- 
1.7.9.5


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

end of thread, other threads:[~2014-04-16 14:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-16 12:59 [PATCH 1/2] v4l: Add resolution change event Arun Kumar K
2014-04-16 12:59 ` [PATCH 2/2] [media] s5p-mfc: Add support for " Arun Kumar K
2014-04-16 14:09 ` [PATCH 1/2] v4l: Add " Laurent Pinchart
2014-04-16 14:16   ` Hans Verkuil
2014-04-16 14:36     ` Arun Kumar K

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