aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/videodev2.h
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2015-05-15 08:29:05 -0400
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2015-05-30 10:37:20 -0400
commite01dfc01914ab9a078ca8d08287c19c6663b5438 (patch)
treed34630677d631ed4d28a114d7c957aeca0ccf09f /include/uapi/linux/videodev2.h
parent3725d53149e190c6d8da80d458795a396705010e (diff)
[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>
Diffstat (limited to 'include/uapi/linux/videodev2.h')
-rw-r--r--include/uapi/linux/videodev2.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/uapi/linux/videodev2.h b/include/uapi/linux/videodev2.h
index bda496adb50b..c5e89ab21cd9 100644
--- a/include/uapi/linux/videodev2.h
+++ b/include/uapi/linux/videodev2.h
@@ -178,6 +178,12 @@ enum v4l2_memory {
178 178
179/* see also http://vektor.theorem.ca/graphics/ycbcr/ */ 179/* see also http://vektor.theorem.ca/graphics/ycbcr/ */
180enum v4l2_colorspace { 180enum v4l2_colorspace {
181 /*
182 * Default colorspace, i.e. let the driver figure it out.
183 * Can only be used with video capture.
184 */
185 V4L2_COLORSPACE_DEFAULT = 0,
186
181 /* SMPTE 170M: used for broadcast NTSC/PAL SDTV */ 187 /* SMPTE 170M: used for broadcast NTSC/PAL SDTV */
182 V4L2_COLORSPACE_SMPTE170M = 1, 188 V4L2_COLORSPACE_SMPTE170M = 1,
183 189