summaryrefslogtreecommitdiff
path: root/video.c
diff options
context:
space:
mode:
Diffstat (limited to 'video.c')
-rw-r--r--video.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/video.c b/video.c
index bacc158..66e5356 100644
--- a/video.c
+++ b/video.c
@@ -283,6 +283,7 @@ static char VideoSurfaceModesChanged; ///< flag surface modes changed
static const char VideoTransparentOsd = 1;
static int VideoSkipLines; ///< skip video lines top/bottom
+static char VideoStudioLevels; ///< flag use studio levels
/// Default deinterlace mode.
static VideoDeinterlaceModes VideoDeinterlace[VideoResolutionMax];
@@ -308,9 +309,6 @@ static const VideoColorSpace VideoColorSpaces[VideoResolutionMax] = {
VideoColorSpaceBt709
};
- /// Flag use studio levels
-static char VideoStudioLevels;
-
/// Default scaling mode
static VideoScalingModes VideoScaling[VideoResolutionMax];
@@ -9109,6 +9107,16 @@ void VideoSetSkipLines(int lines)
}
///
+/// Set studio levels.
+///
+/// @param onoff flag on/off
+///
+void VideoSetStudioLevels(int onoff)
+{
+ VideoStudioLevels = onoff;
+}
+
+///
/// Set audio delay.
///
/// @param ms delay in ms
@@ -9261,7 +9269,6 @@ void VideoInit(const char *display_name)
if (getenv("NO_HW")) {
VideoHardwareDecoder = 0;
}
- VideoStudioLevels = 0;
if (getenv("STUDIO_LEVELS")) {
VideoStudioLevels = 1;
}