libobs: Add Rec. 2020 video_colorspace enum values

One for PQ, and one for HLG. Including transfer function as part of the
color space simplifies logic by avoid invalid combinations.
This commit is contained in:
jpark37
2022-03-24 20:56:19 -07:00
committed by Jim
parent ba68eda590
commit 692ca7efce
5 changed files with 87 additions and 23 deletions
+6 -4
View File
@@ -39,10 +39,12 @@ Video Handler
YUV color space. Can be one of the following values:
- VIDEO_CS_DEFAULT - Equivalent to VIDEO_CS_709
- VIDEO_CS_601 - 601 color space
- VIDEO_CS_709 - 709 color space
- VIDEO_CS_SRGB - sRGB color space
- VIDEO_CS_DEFAULT - Equivalent to VIDEO_CS_709
- VIDEO_CS_601 - Rec. 601 color space
- VIDEO_CS_709 - Rec. 709 color space
- VIDEO_CS_SRGB - sRGB color space
- VIDEO_CS_2020_PQ - Rec. 2020 color space, PQ transfer
- VIDEO_CS_2020_HLG - Rec. 2020 color space, HLG transfer
---------------------
+20
View File
@@ -695,6 +695,24 @@ Functions used by outputs
/* planar 4:4:4 */
VIDEO_FORMAT_I444,
/* more packed uncompressed formats */
VIDEO_FORMAT_BGR3,
/* planar 4:2:2 */
VIDEO_FORMAT_I422,
/* planar 4:2:0 with alpha */
VIDEO_FORMAT_I40A,
/* planar 4:2:2 with alpha */
VIDEO_FORMAT_I42A,
/* planar 4:4:4 with alpha */
VIDEO_FORMAT_YUVA,
/* packed 4:4:4 with alpha */
VIDEO_FORMAT_AYUV,
};
enum video_colorspace {
@@ -702,6 +720,8 @@ Functions used by outputs
VIDEO_CS_601,
VIDEO_CS_709,
VIDEO_CS_SRGB,
VIDEO_CS_2020_PQ,
VIDEO_CS_2020_HLG,
};
enum video_range_type {