diff --git a/plugins/channelrx/demodatv/atvdemod.cpp b/plugins/channelrx/demodatv/atvdemod.cpp index 3608c4125..9f155d123 100644 --- a/plugins/channelrx/demodatv/atvdemod.cpp +++ b/plugins/channelrx/demodatv/atvdemod.cpp @@ -643,30 +643,35 @@ void ATVDemod::applyStandard() // what is left in a line for the image m_intNumberOfSyncLines = 0; m_intNumberOfBlackLines = 0; + m_intNumberOfEqLines = 0; // not applicable m_interleaved = false; break; case ATVStdShort: // what is left in a line for the image m_intNumberOfSyncLines = 4; m_intNumberOfBlackLines = 4; + m_intNumberOfEqLines = 0; m_interleaved = false; break; case ATVStdShortInterleaved: // what is left in a line for the image m_intNumberOfSyncLines = 4; m_intNumberOfBlackLines = 4; + m_intNumberOfEqLines = 0; m_interleaved = true; break; case ATVStd405: // Follows loosely the 405 lines standard // what is left in a ine for the image m_intNumberOfSyncLines = 24; // (15+7)*2 - 20 m_intNumberOfBlackLines = 28; // above + 4 + m_intNumberOfEqLines = 3; m_interleaved = true; break; case ATVStdPAL525: // Follows PAL-M standard // what is left in a 64/1.008 us line for the image m_intNumberOfSyncLines = 40; // (15+15)*2 - 20 m_intNumberOfBlackLines = 44; // above + 4 + m_intNumberOfEqLines = 3; m_interleaved = true; break; case ATVStdPAL625: // Follows PAL-B/G/H standard @@ -674,6 +679,7 @@ void ATVDemod::applyStandard() // what is left in a 64 us line for the image m_intNumberOfSyncLines = 44; // (15+17)*2 - 20 m_intNumberOfBlackLines = 48; // above + 4 + m_intNumberOfEqLines = 3; m_interleaved = true; } diff --git a/plugins/channelrx/demodatv/atvdemod.h b/plugins/channelrx/demodatv/atvdemod.h index 16183df92..7337e635c 100644 --- a/plugins/channelrx/demodatv/atvdemod.h +++ b/plugins/channelrx/demodatv/atvdemod.h @@ -350,6 +350,7 @@ private: int m_intNumberOfLines; int m_intNumberOfSyncLines; //!< this is the number of non displayable lines at the start of a frame. First displayable row comes next. int m_intNumberOfBlackLines; //!< this is the total number of lines not part of the image and is used for vertical screen size + int m_intNumberOfEqLines; //!< number of equalizing lines both whole and partial int m_intNumberSamplePerLineSignals; //!< number of samples in the non image part of the line (signals) int m_intNumberSaplesPerHSync; //!< number of samples per horizontal synchronization pattern (pulse + back porch) bool m_interleaved; //!< interleaved image