diff options
author | Johns <johns98@gmx.net> | 2012-02-13 14:13:24 +0100 |
---|---|---|
committer | Johns <johns98@gmx.net> | 2012-02-13 14:13:24 +0100 |
commit | a98a4adc7eb3542ef246b10381863ae386d069a1 (patch) | |
tree | de753e15a71c942f2599f326cb0faebf5ba57916 /video.c | |
parent | f872f54e2a1429402ae1ba6768c2169443a81272 (diff) | |
download | vdr-plugin-softhddevice-a98a4adc7eb3542ef246b10381863ae386d069a1.tar.gz vdr-plugin-softhddevice-a98a4adc7eb3542ef246b10381863ae386d069a1.tar.bz2 |
Studio levels could be configured in setup menu.
Diffstat (limited to 'video.c')
-rw-r--r-- | video.c | 15 |
1 files changed, 11 insertions, 4 deletions
@@ -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; } |