1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-04 16:01:14 -05:00

ATV Demod: init simplification

This commit is contained in:
f4exb 2017-03-17 01:03:48 +01:00
parent 4af362c3ad
commit 6275581002

View File

@ -110,7 +110,6 @@ void ATVDemod::InitATVParameters(
// float fltImagesPerSeconds = (float) intFramePerS;
int intNumberSamplePerLine;
int intNumberOfLines;
bool blnNewOpenGLScreen = false;
m_objSettingsMutex.lock();
@ -120,12 +119,12 @@ void ATVDemod::InitATVParameters(
if((intNumberSamplePerLine != m_intNumberSamplePerLine)
|| (intNumberOfLines != m_intNumberOfLines))
{
blnNewOpenGLScreen = true;
m_intNumberSamplePerLine= intNumberSamplePerLine;
m_intNumberOfLines = intNumberOfLines;
m_objRegisteredATVScreen->resizeATVScreen(m_intNumberSamplePerLine, m_intNumberOfLines);
}
m_intNumberSamplePerLine= intNumberSamplePerLine;
m_intNumberSamplePerTop=(int)((fltTopDurationUs * intSampleRate) / m_fltSecondToUs);
m_intNumberOfLines = intNumberOfLines;
m_intNumberOfRowsToDisplay = (int) ((fltRatioOfRowsToDisplay * fltLineDurationUs * intSampleRate) / m_fltSecondToUs);
m_intRowsLimit = m_intNumberOfLines-1;
m_intImageIndex = 0;
@ -134,11 +133,6 @@ void ATVDemod::InitATVParameters(
m_intRowIndex=0;
m_intRowsLimit=0;
if(blnNewOpenGLScreen)
{
m_objRegisteredATVScreen->resizeATVScreen(m_intNumberSamplePerLine, m_intNumberOfLines);
}
//Mise à jour de la config
m_objRunning.m_fltFramePerS = fltFramePerS;
m_objRunning.m_fltLineDurationUs = fltLineDurationUs;