diff options
Diffstat (limited to 'setup.h')
-rw-r--r-- | setup.h | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -52,15 +52,18 @@ public: VideoParameters() : framing(0), resolution(0), - frameRate(0) { } + frameRate(0), + advancedDeinterlacer(1){ } int framing; int resolution; int frameRate; + int advancedDeinterlacer; bool operator!=(const VideoParameters& a) { return (a.framing != framing) || (a.resolution != resolution) || - (a.frameRate != frameRate); + (a.frameRate != frameRate) || + (a.advancedDeinterlacer != advancedDeinterlacer); } }; @@ -126,6 +129,12 @@ public: cVideoFrameRate::eDontChange; } + static bool UseAdvancedDeinterlacer(int width, int height) { + return !GetInstance()->m_video.advancedDeinterlacer ? false : + GetInstance()->m_video.advancedDeinterlacer == 1 && + (width * height <= 576 * 720) ? true : true; + } + static bool IsAudioFormatSupported(cAudioCodec::eCodec codec, int channels, int samplingRate); |