History

[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.

Hans Verkuil committed 11 years ago

Commit e01dfc01 parent 3725d531 file · +6 −0Browse files

Unified · Split

include/uapi/linux/videodev2.h+6−0
@@ -178,6 +178,12 @@ enum v4l2_memory { · 177 unmodified lines
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