diff options
Diffstat (limited to 'include/uapi/linux')
| -rw-r--r-- | include/uapi/linux/videodev2.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/uapi/linux/videodev2.h b/include/uapi/linux/videodev2.h index 22bad8c741fe..0ec15222a6ca 100644 --- a/include/uapi/linux/videodev2.h +++ b/include/uapi/linux/videodev2.h | |||
| @@ -345,8 +345,8 @@ enum v4l2_quantization { | |||
| 345 | /* | 345 | /* |
| 346 | * The default for R'G'B' quantization is always full range, except | 346 | * The default for R'G'B' quantization is always full range, except |
| 347 | * for the BT2020 colorspace. For Y'CbCr the quantization is always | 347 | * for the BT2020 colorspace. For Y'CbCr the quantization is always |
| 348 | * limited range, except for COLORSPACE_JPEG, SYCC, XV601 or XV709: | 348 | * limited range, except for COLORSPACE_JPEG, SRGB, ADOBERGB, |
| 349 | * those are full range. | 349 | * XV601 or XV709: those are full range. |
| 350 | */ | 350 | */ |
| 351 | V4L2_QUANTIZATION_DEFAULT = 0, | 351 | V4L2_QUANTIZATION_DEFAULT = 0, |
| 352 | V4L2_QUANTIZATION_FULL_RANGE = 1, | 352 | V4L2_QUANTIZATION_FULL_RANGE = 1, |
| @@ -361,7 +361,8 @@ enum v4l2_quantization { | |||
| 361 | #define V4L2_MAP_QUANTIZATION_DEFAULT(is_rgb, colsp, ycbcr_enc) \ | 361 | #define V4L2_MAP_QUANTIZATION_DEFAULT(is_rgb, colsp, ycbcr_enc) \ |
| 362 | (((is_rgb) && (colsp) == V4L2_COLORSPACE_BT2020) ? V4L2_QUANTIZATION_LIM_RANGE : \ | 362 | (((is_rgb) && (colsp) == V4L2_COLORSPACE_BT2020) ? V4L2_QUANTIZATION_LIM_RANGE : \ |
| 363 | (((is_rgb) || (ycbcr_enc) == V4L2_YCBCR_ENC_XV601 || \ | 363 | (((is_rgb) || (ycbcr_enc) == V4L2_YCBCR_ENC_XV601 || \ |
| 364 | (ycbcr_enc) == V4L2_YCBCR_ENC_XV709 || (colsp) == V4L2_COLORSPACE_JPEG) ? \ | 364 | (ycbcr_enc) == V4L2_YCBCR_ENC_XV709 || (colsp) == V4L2_COLORSPACE_JPEG) || \ |
| 365 | (colsp) == V4L2_COLORSPACE_ADOBERGB || (colsp) == V4L2_COLORSPACE_SRGB ? \ | ||
| 365 | V4L2_QUANTIZATION_FULL_RANGE : V4L2_QUANTIZATION_LIM_RANGE)) | 366 | V4L2_QUANTIZATION_FULL_RANGE : V4L2_QUANTIZATION_LIM_RANGE)) |
| 366 | 367 | ||
| 367 | enum v4l2_priority { | 368 | enum v4l2_priority { |
