mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-10-01 09:16:39 -04:00
ATV Demod: removed code to process only one image out of two
This commit is contained in:
parent
e270529167
commit
df1d5d38e0
@ -423,8 +423,6 @@ void ATVDemod::demod(Complex& c)
|
|||||||
intVal=255;
|
intVal=255;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool blnComputeImage = (m_objRunning.m_fltRatioOfRowsToDisplay != 0.5f); // TODO: review this
|
|
||||||
|
|
||||||
//////////////////////
|
//////////////////////
|
||||||
|
|
||||||
// Horizontal Synchro detection
|
// Horizontal Synchro detection
|
||||||
@ -484,15 +482,7 @@ void ATVDemod::demod(Complex& c)
|
|||||||
|
|
||||||
//********** Filling pixels **********
|
//********** Filling pixels **********
|
||||||
|
|
||||||
if (!blnComputeImage)
|
m_objRegisteredATVScreen->setDataColor(m_intColIndex - m_intNumberSaplesPerHSync + m_intNumberSamplePerTop, intVal, intVal, intVal);
|
||||||
{
|
|
||||||
blnComputeImage = ((m_intImageIndex/2) % 2 == 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (blnComputeImage)
|
|
||||||
{
|
|
||||||
m_objRegisteredATVScreen->setDataColor(m_intColIndex - m_intNumberSaplesPerHSync + m_intNumberSamplePerTop, intVal, intVal, intVal);
|
|
||||||
}
|
|
||||||
|
|
||||||
m_intColIndex++;
|
m_intColIndex++;
|
||||||
|
|
||||||
@ -509,12 +499,7 @@ void ATVDemod::demod(Complex& c)
|
|||||||
|
|
||||||
//qDebug("0: %d: %d: %d", m_intLineIndex, m_intImageIndex%2, m_intNumberOfLines);
|
//qDebug("0: %d: %d: %d", m_intLineIndex, m_intImageIndex%2, m_intNumberOfLines);
|
||||||
m_intRowIndex=m_intImageIndex%2;
|
m_intRowIndex=m_intImageIndex%2;
|
||||||
|
m_objRegisteredATVScreen->selectRow(m_intRowIndex - m_intNumberOfSyncLines);
|
||||||
if(blnComputeImage)
|
|
||||||
{
|
|
||||||
m_objRegisteredATVScreen->selectRow(m_intRowIndex - m_intNumberOfSyncLines);
|
|
||||||
}
|
|
||||||
|
|
||||||
m_intLineIndex = 0;
|
m_intLineIndex = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -535,10 +520,7 @@ void ATVDemod::demod(Complex& c)
|
|||||||
if(m_intImageIndex%2==1)
|
if(m_intImageIndex%2==1)
|
||||||
{
|
{
|
||||||
//interleave
|
//interleave
|
||||||
if(blnComputeImage)
|
m_objRegisteredATVScreen->renderImage(0);
|
||||||
{
|
|
||||||
m_objRegisteredATVScreen->renderImage(NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (m_objRFRunning.m_enmModulation == ATV_AM)
|
if (m_objRFRunning.m_enmModulation == ATV_AM)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user