mac-virtualcam: Don't convert color space when converting color format
Converting the color space was likely accidental as it isn't explicitly set. Unfortunately, not setting it means that it gets set to the default, which is Rec. 709 and thus a conversion takes place when having any other space. This conversion leads to a massive performance penalty that isn't necessary.master
parent
d9c4c0f5da
commit
a9b83c7ffd
|
@ -178,6 +178,8 @@ static bool virtualcam_output_start(void *data)
|
|||
conversion.format = VIDEO_FORMAT_NV12;
|
||||
conversion.width = vcam->videoInfo.output_width;
|
||||
conversion.height = vcam->videoInfo.output_height;
|
||||
conversion.colorspace = vcam->videoInfo.colorspace;
|
||||
conversion.range = vcam->videoInfo.range;
|
||||
obs_output_set_video_conversion(vcam->output, &conversion);
|
||||
|
||||
video_format = convert_video_format_to_mac(conversion.format);
|
||||
|
|
Loading…
Reference in New Issue