mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-05-24 11:12:27 -04:00
ATV Demod: moved pixel write position in code
This commit is contained in:
parent
5731aebf8b
commit
d8905b3e46
@ -423,22 +423,8 @@ void ATVDemod::demod(Complex& c)
|
|||||||
intVal=255;
|
intVal=255;
|
||||||
}
|
}
|
||||||
|
|
||||||
//********** Filling pixels **********
|
|
||||||
|
|
||||||
bool blnComputeImage = (m_objRunning.m_fltRatioOfRowsToDisplay != 0.5f); // TODO: review this
|
bool blnComputeImage = (m_objRunning.m_fltRatioOfRowsToDisplay != 0.5f); // TODO: review this
|
||||||
|
|
||||||
if (!blnComputeImage)
|
|
||||||
{
|
|
||||||
blnComputeImage = ((m_intImageIndex/2) % 2 == 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (blnComputeImage)
|
|
||||||
{
|
|
||||||
m_objRegisteredATVScreen->setDataColor(m_intColIndex - m_intNumberSaplesPerHSync + m_intNumberSamplePerTop, intVal, intVal, intVal);
|
|
||||||
}
|
|
||||||
|
|
||||||
m_intColIndex++;
|
|
||||||
|
|
||||||
//////////////////////
|
//////////////////////
|
||||||
|
|
||||||
// Horizontal Synchro detection
|
// Horizontal Synchro detection
|
||||||
@ -467,12 +453,15 @@ void ATVDemod::demod(Complex& c)
|
|||||||
{
|
{
|
||||||
m_blnVerticalSynchroDetected = true;
|
m_blnVerticalSynchroDetected = true;
|
||||||
|
|
||||||
|
//qDebug("0: %d: %d: %d", m_intLineIndex, m_intImageIndex%2, m_intNumberOfLines);
|
||||||
m_intRowIndex=m_intImageIndex%2;
|
m_intRowIndex=m_intImageIndex%2;
|
||||||
|
|
||||||
if(blnComputeImage)
|
if(blnComputeImage)
|
||||||
{
|
{
|
||||||
m_objRegisteredATVScreen->selectRow(m_intRowIndex - m_intNumberOfSyncLines);
|
m_objRegisteredATVScreen->selectRow(m_intRowIndex - m_intNumberOfSyncLines);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
m_intLineIndex = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -520,8 +509,7 @@ void ATVDemod::demod(Complex& c)
|
|||||||
m_intRowsLimit = m_intNumberOfLines % 2 == 1 ? m_intNumberOfLines : m_intNumberOfLines-2; // even image
|
m_intRowsLimit = m_intNumberOfLines % 2 == 1 ? m_intNumberOfLines : m_intNumberOfLines-2; // even image
|
||||||
}
|
}
|
||||||
|
|
||||||
//qDebug("%d: %d: %d", m_intLineIndex, m_intImageIndex%2, m_intNumberOfLines);
|
//qDebug("1: %d: %d: %d", m_intLineIndex, m_intImageIndex%2, m_intNumberOfLines);
|
||||||
m_intLineIndex = 0;
|
|
||||||
m_intImageIndex ++;
|
m_intImageIndex ++;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -564,6 +552,20 @@ void ATVDemod::demod(Complex& c)
|
|||||||
|
|
||||||
m_intLineIndex++;
|
m_intLineIndex++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//********** Filling pixels **********
|
||||||
|
|
||||||
|
if (!blnComputeImage)
|
||||||
|
{
|
||||||
|
blnComputeImage = ((m_intImageIndex/2) % 2 == 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (blnComputeImage)
|
||||||
|
{
|
||||||
|
m_objRegisteredATVScreen->setDataColor(m_intColIndex - m_intNumberSaplesPerHSync + m_intNumberSamplePerTop, intVal, intVal, intVal);
|
||||||
|
}
|
||||||
|
|
||||||
|
m_intColIndex++;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ATVDemod::start()
|
void ATVDemod::start()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user