mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-19 06:41:47 -05:00
ATV Demod: horizontal sync code simplification
This commit is contained in:
parent
553a06635d
commit
d373993ba0
@ -526,13 +526,12 @@ void ATVDemod::demod(Complex& c)
|
|||||||
if((m_intColIndex>=m_intNumberSamplePerLine)
|
if((m_intColIndex>=m_intNumberSamplePerLine)
|
||||||
|| (m_blnSynchroDetected==true))
|
|| (m_blnSynchroDetected==true))
|
||||||
{
|
{
|
||||||
m_blnSynchroDetected=false;
|
|
||||||
m_blnImageDetecting=true;
|
|
||||||
|
|
||||||
m_intColIndex=0;
|
m_intColIndex=0;
|
||||||
|
m_blnImageDetecting=true;
|
||||||
|
m_blnSynchroDetected=false;
|
||||||
|
m_blnLineSynchronized=false;
|
||||||
|
m_fltAmpLineAverage=0.0f;
|
||||||
|
|
||||||
if((m_blnSynchroDetected==false) || (m_blnLineSynchronized==true))
|
|
||||||
{
|
|
||||||
//New line + Interleaving
|
//New line + Interleaving
|
||||||
m_intRowIndex ++;
|
m_intRowIndex ++;
|
||||||
m_intRowIndex ++;
|
m_intRowIndex ++;
|
||||||
@ -541,16 +540,6 @@ void ATVDemod::demod(Complex& c)
|
|||||||
{
|
{
|
||||||
m_objRegisteredATVScreen->selectRow(m_intRowIndex - m_intNumberOfSyncLines);
|
m_objRegisteredATVScreen->selectRow(m_intRowIndex - m_intNumberOfSyncLines);
|
||||||
}
|
}
|
||||||
|
|
||||||
m_blnLineSynchronized=false;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
m_blnLineSynchronized=m_blnSynchroDetected;
|
|
||||||
}
|
|
||||||
|
|
||||||
m_fltAmpLineAverage=0.0f;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//////////////////////
|
//////////////////////
|
||||||
|
Loading…
Reference in New Issue
Block a user