summaryrefslogtreecommitdiff
path: root/setup.h
diff options
context:
space:
mode:
Diffstat (limited to 'setup.h')
-rw-r--r--setup.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/setup.h b/setup.h
index a91b8e1..39224c4 100644
--- a/setup.h
+++ b/setup.h
@@ -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);