Explorar el Código

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.
gxalpha hace 3 años
padre
commit
a9b83c7ffd
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      plugins/mac-virtualcam/src/obs-plugin/plugin-main.mm

+ 2 - 0
plugins/mac-virtualcam/src/obs-plugin/plugin-main.mm

@@ -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);