瀏覽代碼

[media] videodev2.h: add COLORSPACE_DEFAULT

V4L2_COLORSPACE_DEFAULT is added so we have a specific define for
the default case where applications do not set it but leave it to 0.
In that case the driver will set the colorspace based on what it
captures.

This is already used, but we never had a define for the value 0.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Hans Verkuil 10 年之前
父節點
當前提交
e01dfc0191
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      include/uapi/linux/videodev2.h

+ 6 - 0
include/uapi/linux/videodev2.h

@@ -178,6 +178,12 @@ enum v4l2_memory {
 
 
 /* see also http://vektor.theorem.ca/graphics/ycbcr/ */
 /* see also http://vektor.theorem.ca/graphics/ycbcr/ */
 enum v4l2_colorspace {
 enum v4l2_colorspace {
+	/*
+	 * Default colorspace, i.e. let the driver figure it out.
+	 * Can only be used with video capture.
+	 */
+	V4L2_COLORSPACE_DEFAULT       = 0,
+
 	/* SMPTE 170M: used for broadcast NTSC/PAL SDTV */
 	/* SMPTE 170M: used for broadcast NTSC/PAL SDTV */
 	V4L2_COLORSPACE_SMPTE170M     = 1,
 	V4L2_COLORSPACE_SMPTE170M     = 1,