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.
Showing the changes to include (1 of 1 file). Show all
Unified · Split
| @@ -178,6 +178,12 @@ enum v4l2_memory { · 177 unmodified lines | ||
| 178 | 178 | |
| 179 | 179 | /* see also http://vektor.theorem.ca/graphics/ycbcr/ */ |
| 180 | 180 | enum 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 | 187 | /* SMPTE 170M: used for broadcast NTSC/PAL SDTV */ |
| 182 | 188 | V4L2_COLORSPACE_SMPTE170M = 1, |
| 183 | 189 | |