From: Eugene Syromyatnikov Date: Sun, 20 Oct 2019 20:01:15 +0000 (+0200) Subject: xlat: update V4L2_COLORSPACE_* constants X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9c971b9ca26ad7f90dabdd93a439995cdd7ac8b3;p=strace xlat: update V4L2_COLORSPACE_* constants * xlat/v4l2_colorspaces.in: Add #value_indexed. (V4L2_COLORSPACE_DEFAULT): New constant introduced by Linux commit v4.2-rc1~107^2~184. (V4L2_COLORSPACE_ADOBERGB): Rename to V4L2_COLORSPACE_OPRGB, per Linux commit v4.20-rc1~69^2~122. (V4L2_COLORSPACE_SMPTE170M, V4L2_COLORSPACE_SMPTE240M, V4L2_COLORSPACE_REC709, V4L2_COLORSPACE_BT878, V4L2_COLORSPACE_470_SYSTEM_M, V4L2_COLORSPACE_470_SYSTEM_BG, V4L2_COLORSPACE_JPEG, V4L2_COLORSPACE_SRGB, V4L2_COLORSPACE_OPRGB, V4L2_COLORSPACE_BT2020, V4L2_COLORSPACE_RAW, V4L2_COLORSPACE_DCI_P3): Add fallback definitions. --- diff --git a/xlat/v4l2_colorspaces.in b/xlat/v4l2_colorspaces.in index 1d227e49..6b0e7eac 100644 --- a/xlat/v4l2_colorspaces.in +++ b/xlat/v4l2_colorspaces.in @@ -1,12 +1,14 @@ -V4L2_COLORSPACE_SMPTE170M -V4L2_COLORSPACE_SMPTE240M -V4L2_COLORSPACE_REC709 -V4L2_COLORSPACE_BT878 -V4L2_COLORSPACE_470_SYSTEM_M -V4L2_COLORSPACE_470_SYSTEM_BG -V4L2_COLORSPACE_JPEG -V4L2_COLORSPACE_SRGB -V4L2_COLORSPACE_ADOBERGB -V4L2_COLORSPACE_BT2020 -V4L2_COLORSPACE_RAW -V4L2_COLORSPACE_DCI_P3 +#value_indexed +V4L2_COLORSPACE_DEFAULT 0 +V4L2_COLORSPACE_SMPTE170M 1 +V4L2_COLORSPACE_SMPTE240M 2 +V4L2_COLORSPACE_REC709 3 +V4L2_COLORSPACE_BT878 4 +V4L2_COLORSPACE_470_SYSTEM_M 5 +V4L2_COLORSPACE_470_SYSTEM_BG 6 +V4L2_COLORSPACE_JPEG 7 +V4L2_COLORSPACE_SRGB 8 +V4L2_COLORSPACE_OPRGB 9 +V4L2_COLORSPACE_BT2020 10 +V4L2_COLORSPACE_RAW 11 +V4L2_COLORSPACE_DCI_P3 12