Explorar o código

decklink: Set output range and color space

jpark37 %!s(int64=3) %!d(string=hai) anos
pai
achega
6a29cc5876
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      plugins/decklink/decklink-output.cpp

+ 3 - 0
plugins/decklink/decklink-output.cpp

@@ -84,11 +84,14 @@ static bool decklink_output_start(void *data)
 
 	if (decklink->keyerMode != 0) {
 		to.format = VIDEO_FORMAT_BGRA;
+		to.range = VIDEO_RANGE_FULL;
 	} else {
 		to.format = VIDEO_FORMAT_UYVY;
+		to.range = VIDEO_RANGE_PARTIAL;
 	}
 	to.width = mode->GetWidth();
 	to.height = mode->GetHeight();
+	to.colorspace = VIDEO_CS_709;
 
 	obs_output_set_video_conversion(decklink->GetOutput(), &to);