]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
[media] v4l: Add input and output capability flags for native size setting
authorSakari Ailus <sakari.ailus@iki.fi>
Tue, 18 Nov 2014 05:27:00 +0000 (02:27 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Thu, 4 Dec 2014 14:38:09 +0000 (12:38 -0200)
Add input and output capability flags for setting native size of the device,
and document them.

Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi>
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Documentation/DocBook/media/v4l/vidioc-enuminput.xml
Documentation/DocBook/media/v4l/vidioc-enumoutput.xml
include/uapi/linux/videodev2.h

index 493a39a8ef21073609efc0f81ff50e6e81b620d7..603fecef9083cf38c2787ad92d3cd8bdf1d939fa 100644 (file)
@@ -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>
index 2654e097df3967771650a23a74f83304dbf901f4..773fb1258c24dc9f5c0c7da2bc3213ec29bad464 100644 (file)
@@ -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>
index ced659e1b9f6c61ee8af91ad59cad8e5a070e061..d279c1b75cf7d3ef28910727d1a9daa0c8a1ba7a 100644 (file)
@@ -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