mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-24 23:31:36 +08:00
(API Change) Add colorspace info to obs_video_info
This was an important change because we were originally using an hard-coded 709/partial range color matrix for the output, which was causing problems for people wanting to use different formats or color spaces. This will now automatically generate the color matrix depending on the format, color space, and range, or use an identity matrix if the video format is RGB instead of YUV.
This commit is contained in:
@@ -1352,6 +1352,8 @@ int OBSBasic::ResetVideo()
|
||||
ovi.output_height = (uint32_t)config_get_uint(basicConfig,
|
||||
"Video", "OutputCY");
|
||||
ovi.output_format = VIDEO_FORMAT_NV12;
|
||||
ovi.colorspace = VIDEO_CS_709;
|
||||
ovi.range = VIDEO_RANGE_FULL;
|
||||
ovi.adapter = 0;
|
||||
ovi.gpu_conversion = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user