mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-24 23:31:36 +08:00
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:
@@ -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
|
||||
|
||||
---------------------
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user