UI: Add sRGB option to colorSpace output setting
Creates video streams/files with sRGB transfer specified.
This commit is contained in:
parent
24e18c73f5
commit
fe1ee749b3
2 changed files with 10 additions and 2 deletions
|
|
@ -3760,8 +3760,11 @@ int OBSBasic::ResetVideo()
|
|||
ovi.output_height =
|
||||
(uint32_t)config_get_uint(basicConfig, "Video", "OutputCY");
|
||||
ovi.output_format = GetVideoFormatFromName(colorFormat);
|
||||
ovi.colorspace = astrcmpi(colorSpace, "601") == 0 ? VIDEO_CS_601
|
||||
: VIDEO_CS_709;
|
||||
ovi.colorspace = astrcmpi(colorSpace, "601") == 0
|
||||
? VIDEO_CS_601
|
||||
: (astrcmpi(colorSpace, "709") == 0
|
||||
? VIDEO_CS_709
|
||||
: VIDEO_CS_SRGB);
|
||||
ovi.range = astrcmpi(colorRange, "Full") == 0 ? VIDEO_RANGE_FULL
|
||||
: VIDEO_RANGE_PARTIAL;
|
||||
ovi.adapter =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue