1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-12-23 01:55:48 -05:00

ATV Demod: horizontal sync code simplification

This commit is contained in:
f4exb 2017-03-28 19:27:30 +02:00
parent 553a06635d
commit d373993ba0

View File

@ -526,31 +526,20 @@ void ATVDemod::demod(Complex& c)
if((m_intColIndex>=m_intNumberSamplePerLine)
|| (m_blnSynchroDetected==true))
{
m_blnSynchroDetected=false;
m_blnImageDetecting=true;
m_intColIndex=0;
if((m_blnSynchroDetected==false) || (m_blnLineSynchronized==true))
{
//New line + Interleaving
m_intRowIndex ++;
m_intRowIndex ++;
if(m_intRowIndex<m_intNumberOfLines)
{
m_objRegisteredATVScreen->selectRow(m_intRowIndex - m_intNumberOfSyncLines);
}
m_blnLineSynchronized=false;
}
else
{
m_blnLineSynchronized=m_blnSynchroDetected;
}
m_blnImageDetecting=true;
m_blnSynchroDetected=false;
m_blnLineSynchronized=false;
m_fltAmpLineAverage=0.0f;
//New line + Interleaving
m_intRowIndex ++;
m_intRowIndex ++;
if(m_intRowIndex<m_intNumberOfLines)
{
m_objRegisteredATVScreen->selectRow(m_intRowIndex - m_intNumberOfSyncLines);
}
}
//////////////////////