From cade50d9f0ee600681b3e9f8514e6e4b437dd148 Mon Sep 17 00:00:00 2001 From: f4exb Date: Thu, 16 Mar 2017 21:07:51 +0100 Subject: [PATCH] ATV Demod: added config object --- plugins/channelrx/demodatv/atvdemod.cpp | 10 ++++++++++ plugins/channelrx/demodatv/atvdemod.h | 1 + 2 files changed, 11 insertions(+) diff --git a/plugins/channelrx/demodatv/atvdemod.cpp b/plugins/channelrx/demodatv/atvdemod.cpp index 0cd0524b8..60c07ee89 100644 --- a/plugins/channelrx/demodatv/atvdemod.cpp +++ b/plugins/channelrx/demodatv/atvdemod.cpp @@ -570,6 +570,16 @@ bool ATVDemod::handleMessage(const Message& cmd) { MsgConfigureATVDemod& objCfg = (MsgConfigureATVDemod&) cmd; + m_objConfig.m_enmModulation = objCfg.m_objMsgConfig.m_enmModulation; + m_objConfig.m_fltVoltLevelSynchroBlack = objCfg.m_objMsgConfig.m_fltVoltLevelSynchroBlack; + m_objConfig.m_fltVoltLevelSynchroTop = objCfg.m_objMsgConfig.m_fltVoltLevelSynchroTop; + m_objConfig.m_intFramePerS = objCfg.m_objMsgConfig.m_intFramePerS; + m_objConfig.m_intLineDurationUs = objCfg.m_objMsgConfig.m_intLineDurationUs; + m_objConfig.m_intPercentOfRowsToDisplay = objCfg.m_objMsgConfig.m_intPercentOfRowsToDisplay; + m_objConfig.m_intTopDurationUs = objCfg.m_objMsgConfig.m_intTopDurationUs; + m_objConfig.m_blnHSync = objCfg.m_objMsgConfig.m_blnHSync; + m_objConfig.m_blnVSync = objCfg.m_objMsgConfig.m_blnVSync; + if((objCfg.m_objMsgConfig.m_enmModulation != m_objRunning.m_enmModulation) || (objCfg.m_objMsgConfig.m_fltVoltLevelSynchroBlack != m_objRunning.m_fltVoltLevelSynchroBlack) || (objCfg.m_objMsgConfig.m_fltVoltLevelSynchroTop != m_objRunning.m_fltVoltLevelSynchroTop) diff --git a/plugins/channelrx/demodatv/atvdemod.h b/plugins/channelrx/demodatv/atvdemod.h index 656aa7786..c64e55b8a 100644 --- a/plugins/channelrx/demodatv/atvdemod.h +++ b/plugins/channelrx/demodatv/atvdemod.h @@ -210,6 +210,7 @@ private: ATVConfig m_objRunning; + ATVConfig m_objConfig; QMutex m_objSettingsMutex;