mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-08-09 17:22:27 -04:00
ATV Demod: reviiewed horizontal sync
This commit is contained in:
parent
7ad19f0140
commit
e650f6d5bb
@ -56,7 +56,7 @@ ATVDemod::ATVDemod(BasebandSampleSink* objScopeSink) :
|
|||||||
m_DSBFilter(0),
|
m_DSBFilter(0),
|
||||||
m_DSBFilterBuffer(0),
|
m_DSBFilterBuffer(0),
|
||||||
m_DSBFilterBufferIndex(0),
|
m_DSBFilterBufferIndex(0),
|
||||||
m_objAvgColIndex(2)
|
m_objAvgColIndex(3)
|
||||||
{
|
{
|
||||||
setObjectName("ATVDemod");
|
setObjectName("ATVDemod");
|
||||||
|
|
||||||
@ -449,16 +449,19 @@ void ATVDemod::demod(Complex& c)
|
|||||||
m_intColIndex = 0;
|
m_intColIndex = 0;
|
||||||
blnNewLine = true;
|
blnNewLine = true;
|
||||||
}
|
}
|
||||||
else if (m_blnSynchroDetected // Valid H sync detected
|
else if (m_objRunning.m_blnHSync && m_blnSynchroDetected // Valid H sync detected
|
||||||
&& (m_intColIndex > m_intNumberSamplePerLine - m_intNumberSamplePerTop)
|
&& (m_intColIndex > m_intNumberSamplePerLine - m_intNumberSamplePerTop)
|
||||||
&& (m_intColIndex < m_intNumberSamplePerLine + m_intNumberSamplePerTop))
|
&& (m_intColIndex < m_intNumberSamplePerLine + m_intNumberSamplePerTop))
|
||||||
{
|
{
|
||||||
|
// qDebug("HSync: %d", m_intColIndex);
|
||||||
|
// m_intColIndex = 0;
|
||||||
m_intAvgColIndex = m_objAvgColIndex.run(m_intColIndex);
|
m_intAvgColIndex = m_objAvgColIndex.run(m_intColIndex);
|
||||||
m_intColIndex = m_intColIndex - m_intAvgColIndex;
|
m_intColIndex = m_intColIndex - m_intAvgColIndex;
|
||||||
blnNewLine = true;
|
blnNewLine = true;
|
||||||
}
|
}
|
||||||
else if (m_intColIndex >= m_intNumberSamplePerLine + 2) // No valid H sync
|
else if (m_intColIndex >= m_intNumberSamplePerLine + m_intNumberSamplePerTop) // No valid H sync
|
||||||
{
|
{
|
||||||
|
//qDebug("HLine: %d", m_intColIndex);
|
||||||
m_intColIndex = 0;
|
m_intColIndex = 0;
|
||||||
blnNewLine = true;
|
blnNewLine = true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user