Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8af03459 authored by Sakari Ailus's avatar Sakari Ailus Committed by Mauro Carvalho Chehab
Browse files

[media] v4l: Add input and output capability flags for native size setting



Add input and output capability flags for setting native size of the device,
and document them.

Signed-off-by: default avatarSakari Ailus <sakari.ailus@iki.fi>
Acked-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent 0b4bc768
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -287,6 +287,14 @@ input/output interface to linux-media@vger.kernel.org on 19 Oct 2009.
	    <entry>0x00000004</entry>
	    <entry>This input supports setting the TV standard by using VIDIOC_S_STD.</entry>
	  </row>
	  <row>
	    <entry><constant>V4L2_IN_CAP_NATIVE_SIZE</constant></entry>
	    <entry>0x00000008</entry>
	    <entry>This input supports setting the native size using
	    the <constant>V4L2_SEL_TGT_NATIVE_SIZE</constant>
	    selection target, see <xref
	    linkend="v4l2-selections-common"/>.</entry>
	  </row>
	</tbody>
      </tgroup>
    </table>
+8 −0
Original line number Diff line number Diff line
@@ -172,6 +172,14 @@ input/output interface to linux-media@vger.kernel.org on 19 Oct 2009.
	    <entry>0x00000004</entry>
	    <entry>This output supports setting the TV standard by using VIDIOC_S_STD.</entry>
	  </row>
	  <row>
	    <entry><constant>V4L2_OUT_CAP_NATIVE_SIZE</constant></entry>
	    <entry>0x00000008</entry>
	    <entry>This output supports setting the native size using
	    the <constant>V4L2_SEL_TGT_NATIVE_SIZE</constant>
	    selection target, see <xref
	    linkend="v4l2-selections-common"/>.</entry>
	  </row>
	</tbody>
      </tgroup>
    </table>
+2 −0
Original line number Diff line number Diff line
@@ -1324,6 +1324,7 @@ struct v4l2_input {
#define V4L2_IN_CAP_DV_TIMINGS		0x00000002 /* Supports S_DV_TIMINGS */
#define V4L2_IN_CAP_CUSTOM_TIMINGS	V4L2_IN_CAP_DV_TIMINGS /* For compatibility */
#define V4L2_IN_CAP_STD			0x00000004 /* Supports S_STD */
#define V4L2_IN_CAP_NATIVE_SIZE		0x00000008 /* Supports setting native size */

/*
 *	V I D E O   O U T P U T S
@@ -1347,6 +1348,7 @@ struct v4l2_output {
#define V4L2_OUT_CAP_DV_TIMINGS		0x00000002 /* Supports S_DV_TIMINGS */
#define V4L2_OUT_CAP_CUSTOM_TIMINGS	V4L2_OUT_CAP_DV_TIMINGS /* For compatibility */
#define V4L2_OUT_CAP_STD		0x00000004 /* Supports S_STD */
#define V4L2_OUT_CAP_NATIVE_SIZE	0x00000008 /* Supports setting native size */

/*
 *	C O N T R O L S