History

[media] videodev2.h: add support for the DCI-P3 colorspace

This colorspace is used for cinema projectors and is supported by the DisplayPort standard.

Hans Verkuil committed 11 years ago

Commit 529a7961 parent 2e94c191 file · +13 −5Browse files

Showing the changes to include/uapi (1 of 1 file). Show all

Unified · Split

include/uapi/linux/videodev2.h+13−5
@@ -229,6 +229,9 @@ enum v4l2_colorspace { · 228 unmodified lines
229229
230230 /* Raw colorspace: for RAW unprocessed images */
231231 V4L2_COLORSPACE_RAW = 11,
232+
233+ /* DCI-P3 colorspace, used by cinema projectors */
234+ V4L2_COLORSPACE_DCI_P3 = 12,
232235 };
233236
234237 /*
@@ -256,6 +259,8 @@ enum v4l2_xfer_func { · 21 unmodified lines
256259 * V4L2_COLORSPACE_SMPTE240M: V4L2_XFER_FUNC_SMPTE240M
257260 *
258261 * V4L2_COLORSPACE_RAW: V4L2_XFER_FUNC_NONE
262+ *
263+ * V4L2_COLORSPACE_DCI_P3: V4L2_XFER_FUNC_DCI_P3
259264 */
260265 V4L2_XFER_FUNC_DEFAULT = 0,
261266 V4L2_XFER_FUNC_709 = 1,
@@ -263,6 +268,7 @@ enum v4l2_xfer_func { · 1 unmodified line
263268 V4L2_XFER_FUNC_ADOBERGB = 3,
264269 V4L2_XFER_FUNC_SMPTE240M = 4,
265270 V4L2_XFER_FUNC_NONE = 5,
271+ V4L2_XFER_FUNC_DCI_P3 = 6,
266272 };
267273
268274 /*
@@ -272,9 +278,10 @@ enum v4l2_xfer_func { · 3 unmodified lines
272278 #define V4L2_MAP_XFER_FUNC_DEFAULT(colsp) \
273279 ((colsp) == V4L2_COLORSPACE_ADOBERGB ? V4L2_XFER_FUNC_ADOBERGB : \
274280 ((colsp) == V4L2_COLORSPACE_SMPTE240M ? V4L2_XFER_FUNC_SMPTE240M : \
275− ((colsp) == V4L2_COLORSPACE_RAW ? V4L2_XFER_FUNC_NONE : \
276− ((colsp) == V4L2_COLORSPACE_SRGB || (colsp) == V4L2_COLORSPACE_JPEG ? \
277− V4L2_XFER_FUNC_SRGB : V4L2_XFER_FUNC_709))))
281+ ((colsp) == V4L2_COLORSPACE_DCI_P3 ? V4L2_XFER_FUNC_DCI_P3 : \
282+ ((colsp) == V4L2_COLORSPACE_RAW ? V4L2_XFER_FUNC_NONE : \
283+ ((colsp) == V4L2_COLORSPACE_SRGB || (colsp) == V4L2_COLORSPACE_JPEG ? \
284+ V4L2_XFER_FUNC_SRGB : V4L2_XFER_FUNC_709)))))
278285
279286 enum v4l2_ycbcr_encoding {
280287 /*
@@ -285,7 +292,7 @@ enum v4l2_ycbcr_encoding { · 4 unmodified lines
285292 * V4L2_COLORSPACE_470_SYSTEM_BG, V4L2_COLORSPACE_ADOBERGB and
286293 * V4L2_COLORSPACE_JPEG: V4L2_YCBCR_ENC_601
287294 *
288− * V4L2_COLORSPACE_REC709: V4L2_YCBCR_ENC_709
295+ * V4L2_COLORSPACE_REC709 and V4L2_COLORSPACE_DCI_P3: V4L2_YCBCR_ENC_709
289296 *
290297 * V4L2_COLORSPACE_SRGB: V4L2_YCBCR_ENC_SYCC
291298 *
@@ -325,7 +332,8 @@ enum v4l2_ycbcr_encoding { · 33 unmodified lines
325332 * This depends on the colorspace.
326333 */
327334 #define V4L2_MAP_YCBCR_ENC_DEFAULT(colsp) \
328− ((colsp) == V4L2_COLORSPACE_REC709 ? V4L2_YCBCR_ENC_709 : \
335+ (((colsp) == V4L2_COLORSPACE_REC709 || \
336+ (colsp) == V4L2_COLORSPACE_DCI_P3) ? V4L2_YCBCR_ENC_709 : \
329337 ((colsp) == V4L2_COLORSPACE_BT2020 ? V4L2_YCBCR_ENC_BT2020 : \
330338 ((colsp) == V4L2_COLORSPACE_SMPTE240M ? V4L2_YCBCR_ENC_SMPTE240M : \
331339 V4L2_YCBCR_ENC_601)))

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t