提交 fe1ee749 编写于 作者: J jpark37

UI: Add sRGB option to colorSpace output setting

Creates video streams/files with sRGB transfer specified.
上级 24e18c73
......@@ -4822,6 +4822,11 @@
</property>
<item>
<widget class="QComboBox" name="colorSpace">
<item>
<property name="text">
<string notr="true">sRGB</string>
</property>
</item>
<item>
<property name="text">
<string notr="true">709</string>
......
......@@ -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 =
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册