summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Reufer <thomas@reufer.ch>2016-05-03 14:16:17 (GMT)
committerThomas Reufer <thomas@reufer.ch>2016-05-03 14:16:17 (GMT)
commit1fe1efdbfc19108bea66213d8f08ef1063cedf14 (patch)
tree708e88edfc1a65e3fbda9d0f2a38ac59b6846125
parentc95827d099f14dba991ada36b2aee350decd39d7 (diff)
downloadvdr-plugin-rpihddevice-1fe1efdbfc19108bea66213d8f08ef1063cedf14.tar.gz
vdr-plugin-rpihddevice-1fe1efdbfc19108bea66213d8f08ef1063cedf14.tar.bz2
fixed selection of deinterlacer mode
-rw-r--r--omx.c2
-rw-r--r--setup.h6
2 files changed, 5 insertions, 3 deletions
diff --git a/omx.c b/omx.c
index cc83a9c..eaba662 100644
--- a/omx.c
+++ b/omx.c
@@ -367,6 +367,8 @@ void cOmx::HandlePortSettingsChanged(unsigned int portId)
portdef.format.video.nFrameWidth,
portdef.format.video.nFrameHeight);
+ DBG("using %s deinterlacer", fastDeinterlace ? "fast" : "advanced");
+
filterparam.nNumParams = 4;
filterparam.nParams[0] = 3;
filterparam.nParams[1] = 0; // default frame interval
diff --git a/setup.h b/setup.h
index 39224c4..e99d5c9 100644
--- a/setup.h
+++ b/setup.h
@@ -130,9 +130,9 @@ public:
}
static bool UseAdvancedDeinterlacer(int width, int height) {
- return !GetInstance()->m_video.advancedDeinterlacer ? false :
- GetInstance()->m_video.advancedDeinterlacer == 1 &&
- (width * height <= 576 * 720) ? true : true;
+ return GetInstance()->m_video.advancedDeinterlacer == 0 ? false :
+ GetInstance()->m_video.advancedDeinterlacer == 1 ?
+ (width * height <= 576 * 720 ? true : false) : true;
}
static bool IsAudioFormatSupported(cAudioCodec::eCodec codec,