SDRAngel  4.11.5
Developer docs for <a href="https://github.com/f4exb/sdrangel">SDRangel<\a>, an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware.
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
ATVDemodSettings Struct Reference

#include <atvdemodsettings.h>

+ Collaboration diagram for ATVDemodSettings:

Public Types

enum  ATVModulation {
  ATV_FM1, ATV_FM2, ATV_FM3, ATV_AM,
  ATV_USB, ATV_LSB
}
 
enum  ATVStd {
  ATVStdPAL625, ATVStdPAL525, ATVStd405, ATVStdShortInterleaved,
  ATVStdShort, ATVStdHSkip
}
 

Public Member Functions

 ATVDemodSettings ()
 
void resetToDefaults ()
 
void setChannelMarker (Serializable *channelMarker)
 
QByteArray serialize () const
 
bool deserialize (const QByteArray &data)
 
int getEffectiveSampleRate ()
 
float getLineTime ()
 
int getLineTimeFactor ()
 
float getTopTime ()
 
int getTopTimeFactor ()
 
int getRFSliderDivisor ()
 
void convertFromUIValues ()
 
void convertToUIValues ()
 

Static Public Member Functions

static float getFps (int fpsIndex)
 
static int getNumberOfLines (int nbLinesIndex)
 
static int getFpsIndex (float fps)
 
static int getNumberOfLinesIndex (int nbLines)
 
static float getNominalLineTime (int nbLinesIndex, int fpsIndex)
 

Public Attributes

int m_lineTimeFactor
 added: +/- 100 something More...
 
int m_topTimeFactor
 added: +/- 30 something More...
 
int m_fpsIndex
 added: FPS list index More...
 
bool m_halfImage
 added: true => m_fltRatioOfRowsToDisplay = 0.5, false => m_fltRatioOfRowsToDisplay = 1.0 More...
 
int m_RFBandwidthFactor
 added: [1:100] More...
 
int m_OppBandwidthFactor
 added: [0:100] More...
 
int m_nbLinesIndex
 added: #lines list index More...
 
int m_intFrequencyOffset
 
ATVModulation m_enmModulation
 
float m_fltRFBandwidth
 
float m_fltRFOppBandwidth
 
bool m_blnFFTFiltering
 
bool m_blndecimatorEnable
 
float m_fltBFOFrequency
 
float m_fmDeviation
 
int m_intSampleRate
 
ATVStd m_enmATVStandard
 
int m_intNumberOfLines
 
float m_fltLineDuration
 
float m_fltTopDuration
 
float m_fltFramePerS
 
float m_fltRatioOfRowsToDisplay
 
float m_fltVoltLevelSynchroTop
 
float m_fltVoltLevelSynchroBlack
 
bool m_blnHSync
 
bool m_blnVSync
 
bool m_blnInvertVideo
 
int m_intVideoTabIndex
 
int m_intTVSampleRate
 
int m_intNumberSamplePerLine
 
quint32 m_rgbColor
 
QString m_title
 
QString m_udpAddress
 
uint16_t m_udpPort
 
Serializablem_channelMarker
 

Private Member Functions

void lineTimeUpdate ()
 
void topTimeUpdate ()
 

Private Attributes

float m_fltLineTimeMultiplier
 
float m_fltTopTimeMultiplier
 
int m_rfSliderDivisor
 

Detailed Description

Definition at line 27 of file atvdemodsettings.h.

Member Enumeration Documentation

◆ ATVModulation

Enumerator
ATV_FM1 

Classical frequency modulation with discriminator #1.

ATV_FM2 

Classical frequency modulation with discriminator #2.

ATV_FM3 

Classical frequency modulation with phase derivative discriminator.

ATV_AM 

Classical amplitude modulation.

ATV_USB 

AM with vestigial lower side band (main signal is in the upper side)

ATV_LSB 

AM with vestigial upper side band (main signal is in the lower side)

Definition at line 29 of file atvdemodsettings.h.

29  {
30  ATV_FM1,
31  ATV_FM2,
32  ATV_FM3,
33  ATV_AM,
34  ATV_USB,
35  ATV_LSB
36  };
Classical frequency modulation with discriminator #2.
Classical amplitude modulation.
Classical frequency modulation with discriminator #1.
AM with vestigial upper side band (main signal is in the lower side)
AM with vestigial lower side band (main signal is in the upper side)
Classical frequency modulation with phase derivative discriminator.

◆ ATVStd

Constructor & Destructor Documentation

◆ ATVDemodSettings()

ATVDemodSettings::ATVDemodSettings ( )

Definition at line 25 of file atvdemodsettings.cpp.

References resetToDefaults().

25  :
27 {
29 }
Serializable * m_channelMarker
+ Here is the call graph for this function:

Member Function Documentation

◆ convertFromUIValues()

void ATVDemodSettings::convertFromUIValues ( )

Definition at line 366 of file atvdemodsettings.cpp.

References getFps(), getLineTime(), getNumberOfLines(), getRFSliderDivisor(), getTopTime(), lineTimeUpdate(), m_fltFramePerS, m_fltLineDuration, m_fltRFBandwidth, m_fltRFOppBandwidth, m_fltTopDuration, m_fpsIndex, m_intNumberOfLines, m_nbLinesIndex, m_OppBandwidthFactor, m_RFBandwidthFactor, and topTimeUpdate().

Referenced by setChannelMarker().

367 {
368  lineTimeUpdate();
370  topTimeUpdate();
376 }
static float getFps(int fpsIndex)
int m_fpsIndex
added: FPS list index
int m_nbLinesIndex
added: #lines list index
static int getNumberOfLines(int nbLinesIndex)
int m_RFBandwidthFactor
added: [1:100]
int m_OppBandwidthFactor
added: [0:100]
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ convertToUIValues()

void ATVDemodSettings::convertToUIValues ( )

Definition at line 378 of file atvdemodsettings.cpp.

References getFpsIndex(), getNumberOfLinesIndex(), getRFSliderDivisor(), getTopTimeFactor(), m_fltFramePerS, m_fltRFBandwidth, m_fltRFOppBandwidth, m_fpsIndex, m_intNumberOfLines, m_lineTimeFactor, m_nbLinesIndex, m_OppBandwidthFactor, m_RFBandwidthFactor, and m_topTimeFactor.

Referenced by setChannelMarker().

379 {
387 }
static int getFpsIndex(float fps)
static int getNumberOfLinesIndex(int nbLines)
int m_topTimeFactor
added: +/- 30 something
int m_lineTimeFactor
added: +/- 100 something
int m_fpsIndex
added: FPS list index
int m_nbLinesIndex
added: #lines list index
int m_RFBandwidthFactor
added: [1:100]
int m_OppBandwidthFactor
added: [0:100]
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ deserialize()

bool ATVDemodSettings::deserialize ( const QByteArray &  data)

Definition at line 108 of file atvdemodsettings.cpp.

References SimpleDeserializer::getVersion(), SimpleDeserializer::isValid(), m_blnHSync, m_blnInvertVideo, m_blnVSync, m_enmATVStandard, m_enmModulation, m_fltBFOFrequency, m_fltVoltLevelSynchroBlack, m_fltVoltLevelSynchroTop, m_fmDeviation, m_fpsIndex, m_halfImage, m_intFrequencyOffset, m_lineTimeFactor, m_nbLinesIndex, m_OppBandwidthFactor, m_RFBandwidthFactor, m_topTimeFactor, SimpleDeserializer::readBool(), SimpleDeserializer::readS32(), and resetToDefaults().

Referenced by setChannelMarker().

109 {
110  SimpleDeserializer d(arrData);
111 
112  if (!d.isValid())
113  {
114  resetToDefaults();
115  return false;
116  }
117 
118  if (d.getVersion() == 1)
119  {
120  QByteArray bytetmp;
121  int tmp;
122 
123  d.readS32(1, &m_intFrequencyOffset, 0);
124  // TODO: rgb color
125  d.readS32(3, &tmp, 100);
126  m_fltVoltLevelSynchroTop = tmp / 1000.0f;
127  d.readS32(4, &tmp, 310);
128  m_fltVoltLevelSynchroBlack = tmp / 1000.0f;
129  d.readS32(5, &m_lineTimeFactor, 0); // added UI
130  d.readS32(6, &m_topTimeFactor, 0); // added UI
131  d.readS32(7, &tmp, 0);
132  m_enmModulation = static_cast<ATVModulation>(tmp);
133  d.readS32(8, &m_fpsIndex, 1); // added UI
134  d.readBool(9, &m_blnHSync, false);
135  d.readBool(10, &m_blnVSync, false);
136  d.readBool(11, &m_halfImage, false); // added UI
137  d.readS32(12, &m_RFBandwidthFactor, 10); // added UI
138  d.readS32(13, &m_OppBandwidthFactor, 10); // added UI
139  d.readS32(14, &tmp, 10);
140  m_fltBFOFrequency = static_cast<float>(tmp);
141  d.readBool(15, &m_blnInvertVideo, false);
142  d.readS32(16, &m_nbLinesIndex, 1); // added UI
143  d.readS32(17, &tmp, 250);
144  m_fmDeviation = tmp / 500.0f;
145  d.readS32(18, &tmp, 1);
146  m_enmATVStandard = static_cast<ATVStd>(tmp);
147 
148  // TODO: calculate values from UI values
149 
150  return true;
151  }
152  else
153  {
154  resetToDefaults();
155  return false;
156  }
157 }
ATVModulation m_enmModulation
float m_fltVoltLevelSynchroTop
int m_topTimeFactor
added: +/- 30 something
int m_lineTimeFactor
added: +/- 100 something
int m_fpsIndex
added: FPS list index
float m_fltVoltLevelSynchroBlack
bool m_halfImage
added: true => m_fltRatioOfRowsToDisplay = 0.5, false => m_fltRatioOfRowsToDisplay = 1...
int m_nbLinesIndex
added: #lines list index
int m_RFBandwidthFactor
added: [1:100]
int m_OppBandwidthFactor
added: [0:100]
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getEffectiveSampleRate()

int ATVDemodSettings::getEffectiveSampleRate ( )

Definition at line 159 of file atvdemodsettings.cpp.

References m_blndecimatorEnable, m_intSampleRate, and m_intTVSampleRate.

Referenced by getRFSliderDivisor(), lineTimeUpdate(), setChannelMarker(), and topTimeUpdate().

+ Here is the caller graph for this function:

◆ getFps()

float ATVDemodSettings::getFps ( int  fpsIndex)
static

Definition at line 165 of file atvdemodsettings.cpp.

Referenced by convertFromUIValues(), getNominalLineTime(), and setChannelMarker().

166 {
167  switch(fpsIndex)
168  {
169  case 0:
170  return 30.0f;
171  break;
172  case 2:
173  return 20.0f;
174  break;
175  case 3:
176  return 16.0f;
177  break;
178  case 4:
179  return 12.0f;
180  break;
181  case 5:
182  return 10.0f;
183  break;
184  case 6:
185  return 8.0f;
186  break;
187  case 7:
188  return 5.0f;
189  break;
190  case 8:
191  return 2.0f;
192  break;
193  case 9:
194  return 1.0f;
195  break;
196  case 1:
197  default:
198  return 25.0f;
199  break;
200  }
201 }
+ Here is the caller graph for this function:

◆ getFpsIndex()

int ATVDemodSettings::getFpsIndex ( float  fps)
static

Definition at line 203 of file atvdemodsettings.cpp.

Referenced by convertToUIValues(), and setChannelMarker().

204 {
205  int fpsi = roundf(fps);
206 
207  if (fpsi <= 1) {
208  return 9;
209  } else if (fps <= 2) {
210  return 8;
211  } else if (fps <= 5) {
212  return 7;
213  } else if (fps <= 8) {
214  return 6;
215  } else if (fps <= 10) {
216  return 5;
217  } else if (fps <= 12) {
218  return 4;
219  } else if (fps <= 16) {
220  return 3;
221  } else if (fps <= 20) {
222  return 2;
223  } else if (fps <= 25) {
224  return 1;
225  } else {
226  return 0;
227  }
228 }
+ Here is the caller graph for this function:

◆ getLineTime()

float ATVDemodSettings::getLineTime ( )

Definition at line 331 of file atvdemodsettings.cpp.

References getNominalLineTime(), m_fltLineTimeMultiplier, m_fpsIndex, m_lineTimeFactor, and m_nbLinesIndex.

Referenced by convertFromUIValues(), and setChannelMarker().

332 {
334 }
int m_lineTimeFactor
added: +/- 100 something
int m_fpsIndex
added: FPS list index
int m_nbLinesIndex
added: #lines list index
static float getNominalLineTime(int nbLinesIndex, int fpsIndex)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getLineTimeFactor()

int ATVDemodSettings::getLineTimeFactor ( )

Definition at line 336 of file atvdemodsettings.cpp.

References getNominalLineTime(), m_fltLineDuration, m_fltLineTimeMultiplier, m_fpsIndex, and m_nbLinesIndex.

Referenced by setChannelMarker().

337 {
339 }
int m_fpsIndex
added: FPS list index
int m_nbLinesIndex
added: #lines list index
static float getNominalLineTime(int nbLinesIndex, int fpsIndex)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getNominalLineTime()

float ATVDemodSettings::getNominalLineTime ( int  nbLinesIndex,
int  fpsIndex 
)
static

Definition at line 308 of file atvdemodsettings.cpp.

References getFps(), and getNumberOfLines().

Referenced by getLineTime(), getLineTimeFactor(), getTopTime(), getTopTimeFactor(), lineTimeUpdate(), setChannelMarker(), and topTimeUpdate().

309 {
310  float fps = getFps(fpsIndex);
311  int nbLines = getNumberOfLines(nbLinesIndex);
312 
313  return 1.0f / (nbLines * fps);
314 }
static float getFps(int fpsIndex)
static int getNumberOfLines(int nbLinesIndex)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getNumberOfLines()

int ATVDemodSettings::getNumberOfLines ( int  nbLinesIndex)
static

Definition at line 230 of file atvdemodsettings.cpp.

Referenced by convertFromUIValues(), getNominalLineTime(), and setChannelMarker().

231 {
232  switch(nbLinesIndex)
233  {
234  case 0:
235  return 640;
236  break;
237  case 2:
238  return 525;
239  break;
240  case 3:
241  return 480;
242  break;
243  case 4:
244  return 405;
245  break;
246  case 5:
247  return 360;
248  break;
249  case 6:
250  return 343;
251  break;
252  case 7:
253  return 240;
254  break;
255  case 8:
256  return 180;
257  break;
258  case 9:
259  return 120;
260  break;
261  case 10:
262  return 90;
263  break;
264  case 11:
265  return 60;
266  break;
267  case 12:
268  return 32;
269  break;
270  case 1:
271  default:
272  return 625;
273  break;
274  }
275 }
+ Here is the caller graph for this function:

◆ getNumberOfLinesIndex()

int ATVDemodSettings::getNumberOfLinesIndex ( int  nbLines)
static

Definition at line 277 of file atvdemodsettings.cpp.

Referenced by convertToUIValues(), and setChannelMarker().

278 {
279  if (nbLines <= 32) {
280  return 12;
281  } else if (nbLines <= 60) {
282  return 11;
283  } else if (nbLines <= 90) {
284  return 10;
285  } else if (nbLines <= 120) {
286  return 9;
287  } else if (nbLines <= 180) {
288  return 8;
289  } else if (nbLines <= 240) {
290  return 7;
291  } else if (nbLines <= 343) {
292  return 6;
293  } else if (nbLines <= 360) {
294  return 5;
295  } else if (nbLines <= 405) {
296  return 4;
297  } else if (nbLines <= 480) {
298  return 3;
299  } else if (nbLines <= 525) {
300  return 2;
301  } else if (nbLines <= 625) {
302  return 1;
303  } else {
304  return 0;
305  }
306 }
+ Here is the caller graph for this function:

◆ getRFSliderDivisor()

int ATVDemodSettings::getRFSliderDivisor ( )

Definition at line 389 of file atvdemodsettings.cpp.

References getEffectiveSampleRate().

Referenced by convertFromUIValues(), convertToUIValues(), and setChannelMarker().

390 {
391  int sampleRate = getEffectiveSampleRate();
392  int scaleFactor = (int) std::log10(sampleRate/2);
393  return std::pow(10.0, scaleFactor-1);
394 }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getTopTime()

float ATVDemodSettings::getTopTime ( )

Definition at line 356 of file atvdemodsettings.cpp.

References getNominalLineTime(), m_fltTopTimeMultiplier, m_fpsIndex, m_nbLinesIndex, and m_topTimeFactor.

Referenced by convertFromUIValues(), and setChannelMarker().

357 {
359 }
int m_topTimeFactor
added: +/- 30 something
int m_fpsIndex
added: FPS list index
int m_nbLinesIndex
added: #lines list index
static float getNominalLineTime(int nbLinesIndex, int fpsIndex)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getTopTimeFactor()

int ATVDemodSettings::getTopTimeFactor ( )

Definition at line 361 of file atvdemodsettings.cpp.

References getNominalLineTime(), m_fltLineTimeMultiplier, m_fltTopDuration, m_fpsIndex, and m_nbLinesIndex.

Referenced by convertToUIValues(), and setChannelMarker().

362 {
364 }
int m_fpsIndex
added: FPS list index
int m_nbLinesIndex
added: #lines list index
static float getNominalLineTime(int nbLinesIndex, int fpsIndex)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ lineTimeUpdate()

void ATVDemodSettings::lineTimeUpdate ( )
private

calculates m_fltLineTimeMultiplier

Definition at line 319 of file atvdemodsettings.cpp.

References getEffectiveSampleRate(), getNominalLineTime(), m_fltLineTimeMultiplier, m_fpsIndex, and m_nbLinesIndex.

Referenced by convertFromUIValues(), and setChannelMarker().

320 {
321  float nominalLineTime = getNominalLineTime(m_nbLinesIndex, m_fpsIndex);
322  int lineTimeScaleFactor = (int) std::log10(nominalLineTime);
323 
324  if (getEffectiveSampleRate() == 0) {
325  m_fltLineTimeMultiplier = std::pow(10.0, lineTimeScaleFactor-3);
326  } else {
328  }
329 }
int m_fpsIndex
added: FPS list index
int m_nbLinesIndex
added: #lines list index
static float getNominalLineTime(int nbLinesIndex, int fpsIndex)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ resetToDefaults()

void ATVDemodSettings::resetToDefaults ( )

Definition at line 31 of file atvdemodsettings.cpp.

References ATV_FM1, ATVStdPAL625, m_blndecimatorEnable, m_blnFFTFiltering, m_blnHSync, m_blnInvertVideo, m_blnVSync, m_enmATVStandard, m_enmModulation, m_fltBFOFrequency, m_fltFramePerS, m_fltLineDuration, m_fltLineTimeMultiplier, m_fltRatioOfRowsToDisplay, m_fltRFBandwidth, m_fltRFOppBandwidth, m_fltTopDuration, m_fltTopTimeMultiplier, m_fltVoltLevelSynchroBlack, m_fltVoltLevelSynchroTop, m_fmDeviation, m_fpsIndex, m_halfImage, m_intFrequencyOffset, m_intNumberOfLines, m_intNumberSamplePerLine, m_intSampleRate, m_intTVSampleRate, m_intVideoTabIndex, m_lineTimeFactor, m_nbLinesIndex, m_OppBandwidthFactor, m_RFBandwidthFactor, m_rfSliderDivisor, m_rgbColor, m_title, m_topTimeFactor, m_udpAddress, and m_udpPort.

Referenced by ATVDemodSettings(), and deserialize().

32 {
33  m_lineTimeFactor = 0;
34  m_topTimeFactor = 0;
35  m_fpsIndex = 1; // 25 FPS
36  m_halfImage = false; // m_fltRatioOfRowsToDisplay = 1.0
39  m_nbLinesIndex = 1; // 625 lines
40 
43  m_fltRFBandwidth = 0;
45  m_blnFFTFiltering = false;
46  m_blndecimatorEnable = false;
47  m_fltBFOFrequency = 0.0f;
48  m_fmDeviation = 0.5f;
49 
50  m_intSampleRate = 0;
52  m_intNumberOfLines = 625;
53  m_fltLineDuration = 0.0f;
54  m_fltTopDuration = 0.0f;
55  m_fltFramePerS = 25.0f;
59  m_blnHSync = false;
60  m_blnVSync = false;
61  m_blnInvertVideo = false;
66 
69 
70  m_rgbColor = QColor(255, 255, 255).rgb();
71  m_title = "ATV Demodulator";
72  m_udpAddress = "127.0.0.1";
73  m_udpPort = 9999;
74 }
ATVModulation m_enmModulation
float m_fltVoltLevelSynchroTop
int m_topTimeFactor
added: +/- 30 something
float m_fltRatioOfRowsToDisplay
int m_lineTimeFactor
added: +/- 100 something
Classical frequency modulation with discriminator #1.
int m_fpsIndex
added: FPS list index
float m_fltVoltLevelSynchroBlack
bool m_halfImage
added: true => m_fltRatioOfRowsToDisplay = 0.5, false => m_fltRatioOfRowsToDisplay = 1...
int m_nbLinesIndex
added: #lines list index
int m_RFBandwidthFactor
added: [1:100]
int m_OppBandwidthFactor
added: [0:100]
+ Here is the caller graph for this function:

◆ serialize()

QByteArray ATVDemodSettings::serialize ( ) const

Definition at line 76 of file atvdemodsettings.cpp.

References SimpleSerializer::final(), m_blnHSync, m_blnInvertVideo, m_blnVSync, m_channelMarker, m_enmATVStandard, m_enmModulation, m_fltBFOFrequency, m_fltVoltLevelSynchroBlack, m_fltVoltLevelSynchroTop, m_fmDeviation, m_fpsIndex, m_halfImage, m_intFrequencyOffset, m_lineTimeFactor, m_nbLinesIndex, m_OppBandwidthFactor, m_RFBandwidthFactor, m_rgbColor, m_title, m_topTimeFactor, Serializable::serialize(), SimpleSerializer::writeBlob(), SimpleSerializer::writeBool(), SimpleSerializer::writeS32(), SimpleSerializer::writeString(), and SimpleSerializer::writeU32().

Referenced by setChannelMarker().

77 {
78  SimpleSerializer s(1);
79 
80  s.writeS32(1, m_intFrequencyOffset);
81  s.writeU32(2, m_rgbColor);
82  s.writeS32(3, roundf(m_fltVoltLevelSynchroTop*1000.0)); // mV
83  s.writeS32(4, roundf(m_fltVoltLevelSynchroBlack*1000.0)); // mV
84  s.writeS32(5, m_lineTimeFactor); // added UI
85  s.writeS32(6, m_topTimeFactor); // added UI
86  s.writeS32(7, m_enmModulation);
87  s.writeS32(8, m_fpsIndex); // added UI
88  s.writeBool(9, m_blnHSync);
89  s.writeBool(10,m_blnVSync);
90  s.writeBool(11, m_halfImage); // added UI
91  s.writeS32(12, m_RFBandwidthFactor); // added UI
92  s.writeS32(13, m_OppBandwidthFactor); // added UI
93  s.writeS32(14, roundf(m_fltBFOFrequency));
94  s.writeBool(15, m_blnInvertVideo);
95  s.writeS32(16, m_nbLinesIndex); // added UI
96  s.writeS32(17, roundf(m_fmDeviation * 500.0));
97  s.writeS32(18, m_enmATVStandard);
98 
99  if (m_channelMarker) {
100  s.writeBlob(19, m_channelMarker->serialize());
101  }
102 
103  s.writeString(20, m_title);
104 
105  return s.final();
106 }
ATVModulation m_enmModulation
float m_fltVoltLevelSynchroTop
int m_topTimeFactor
added: +/- 30 something
int m_lineTimeFactor
added: +/- 100 something
int m_fpsIndex
added: FPS list index
float m_fltVoltLevelSynchroBlack
bool m_halfImage
added: true => m_fltRatioOfRowsToDisplay = 0.5, false => m_fltRatioOfRowsToDisplay = 1...
int m_nbLinesIndex
added: #lines list index
int m_RFBandwidthFactor
added: [1:100]
virtual QByteArray serialize() const =0
Serializable * m_channelMarker
int m_OppBandwidthFactor
added: [0:100]
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setChannelMarker()

void ATVDemodSettings::setChannelMarker ( Serializable channelMarker)
inline

◆ topTimeUpdate()

void ATVDemodSettings::topTimeUpdate ( )
private

calculates m_fltTopTimeMultiplier

Definition at line 344 of file atvdemodsettings.cpp.

References getEffectiveSampleRate(), getNominalLineTime(), m_fltTopTimeMultiplier, m_fpsIndex, and m_nbLinesIndex.

Referenced by convertFromUIValues(), and setChannelMarker().

345 {
346  float nominalTopTime = getNominalLineTime(m_nbLinesIndex, m_fpsIndex) * (4.7f / 64.0f);
347  int topTimeScaleFactor = (int) std::log10(nominalTopTime);
348 
349  if (getEffectiveSampleRate() == 0) {
350  m_fltTopTimeMultiplier = std::pow(10.0, topTimeScaleFactor-3);
351  } else {
353  }
354 }
int m_fpsIndex
added: FPS list index
int m_nbLinesIndex
added: #lines list index
static float getNominalLineTime(int nbLinesIndex, int fpsIndex)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ m_blndecimatorEnable

bool ATVDemodSettings::m_blndecimatorEnable

Definition at line 63 of file atvdemodsettings.h.

Referenced by getEffectiveSampleRate(), and resetToDefaults().

◆ m_blnFFTFiltering

bool ATVDemodSettings::m_blnFFTFiltering

Definition at line 62 of file atvdemodsettings.h.

Referenced by resetToDefaults().

◆ m_blnHSync

bool ATVDemodSettings::m_blnHSync

Definition at line 77 of file atvdemodsettings.h.

Referenced by deserialize(), resetToDefaults(), and serialize().

◆ m_blnInvertVideo

bool ATVDemodSettings::m_blnInvertVideo

Definition at line 79 of file atvdemodsettings.h.

Referenced by deserialize(), resetToDefaults(), and serialize().

◆ m_blnVSync

bool ATVDemodSettings::m_blnVSync

Definition at line 78 of file atvdemodsettings.h.

Referenced by deserialize(), resetToDefaults(), and serialize().

◆ m_channelMarker

Serializable* ATVDemodSettings::m_channelMarker

Definition at line 91 of file atvdemodsettings.h.

Referenced by serialize().

◆ m_enmATVStandard

ATVStd ATVDemodSettings::m_enmATVStandard

Definition at line 69 of file atvdemodsettings.h.

Referenced by deserialize(), resetToDefaults(), and serialize().

◆ m_enmModulation

ATVModulation ATVDemodSettings::m_enmModulation

Definition at line 59 of file atvdemodsettings.h.

Referenced by deserialize(), resetToDefaults(), and serialize().

◆ m_fltBFOFrequency

float ATVDemodSettings::m_fltBFOFrequency

Definition at line 64 of file atvdemodsettings.h.

Referenced by deserialize(), resetToDefaults(), and serialize().

◆ m_fltFramePerS

float ATVDemodSettings::m_fltFramePerS

Definition at line 73 of file atvdemodsettings.h.

Referenced by convertFromUIValues(), convertToUIValues(), and resetToDefaults().

◆ m_fltLineDuration

float ATVDemodSettings::m_fltLineDuration

Definition at line 71 of file atvdemodsettings.h.

Referenced by convertFromUIValues(), getLineTimeFactor(), and resetToDefaults().

◆ m_fltLineTimeMultiplier

float ATVDemodSettings::m_fltLineTimeMultiplier
private

◆ m_fltRatioOfRowsToDisplay

float ATVDemodSettings::m_fltRatioOfRowsToDisplay

Definition at line 74 of file atvdemodsettings.h.

Referenced by resetToDefaults().

◆ m_fltRFBandwidth

float ATVDemodSettings::m_fltRFBandwidth

Definition at line 60 of file atvdemodsettings.h.

Referenced by convertFromUIValues(), convertToUIValues(), and resetToDefaults().

◆ m_fltRFOppBandwidth

float ATVDemodSettings::m_fltRFOppBandwidth

Definition at line 61 of file atvdemodsettings.h.

Referenced by convertFromUIValues(), convertToUIValues(), and resetToDefaults().

◆ m_fltTopDuration

float ATVDemodSettings::m_fltTopDuration

Definition at line 72 of file atvdemodsettings.h.

Referenced by convertFromUIValues(), getTopTimeFactor(), and resetToDefaults().

◆ m_fltTopTimeMultiplier

float ATVDemodSettings::m_fltTopTimeMultiplier
private

Definition at line 120 of file atvdemodsettings.h.

Referenced by getTopTime(), resetToDefaults(), and topTimeUpdate().

◆ m_fltVoltLevelSynchroBlack

float ATVDemodSettings::m_fltVoltLevelSynchroBlack

Definition at line 76 of file atvdemodsettings.h.

Referenced by deserialize(), resetToDefaults(), and serialize().

◆ m_fltVoltLevelSynchroTop

float ATVDemodSettings::m_fltVoltLevelSynchroTop

Definition at line 75 of file atvdemodsettings.h.

Referenced by deserialize(), resetToDefaults(), and serialize().

◆ m_fmDeviation

float ATVDemodSettings::m_fmDeviation

Definition at line 65 of file atvdemodsettings.h.

Referenced by deserialize(), resetToDefaults(), and serialize().

◆ m_fpsIndex

int ATVDemodSettings::m_fpsIndex

◆ m_halfImage

bool ATVDemodSettings::m_halfImage

added: true => m_fltRatioOfRowsToDisplay = 0.5, false => m_fltRatioOfRowsToDisplay = 1.0

Definition at line 52 of file atvdemodsettings.h.

Referenced by deserialize(), resetToDefaults(), and serialize().

◆ m_intFrequencyOffset

int ATVDemodSettings::m_intFrequencyOffset

Definition at line 58 of file atvdemodsettings.h.

Referenced by deserialize(), resetToDefaults(), and serialize().

◆ m_intNumberOfLines

int ATVDemodSettings::m_intNumberOfLines

Definition at line 70 of file atvdemodsettings.h.

Referenced by convertFromUIValues(), convertToUIValues(), and resetToDefaults().

◆ m_intNumberSamplePerLine

int ATVDemodSettings::m_intNumberSamplePerLine

Definition at line 84 of file atvdemodsettings.h.

Referenced by resetToDefaults().

◆ m_intSampleRate

int ATVDemodSettings::m_intSampleRate

Definition at line 68 of file atvdemodsettings.h.

Referenced by getEffectiveSampleRate(), and resetToDefaults().

◆ m_intTVSampleRate

int ATVDemodSettings::m_intTVSampleRate

Definition at line 83 of file atvdemodsettings.h.

Referenced by getEffectiveSampleRate(), and resetToDefaults().

◆ m_intVideoTabIndex

int ATVDemodSettings::m_intVideoTabIndex

Definition at line 80 of file atvdemodsettings.h.

Referenced by resetToDefaults().

◆ m_lineTimeFactor

int ATVDemodSettings::m_lineTimeFactor

added: +/- 100 something

Definition at line 49 of file atvdemodsettings.h.

Referenced by convertToUIValues(), deserialize(), getLineTime(), resetToDefaults(), and serialize().

◆ m_nbLinesIndex

int ATVDemodSettings::m_nbLinesIndex

◆ m_OppBandwidthFactor

int ATVDemodSettings::m_OppBandwidthFactor

added: [0:100]

Definition at line 54 of file atvdemodsettings.h.

Referenced by convertFromUIValues(), convertToUIValues(), deserialize(), resetToDefaults(), and serialize().

◆ m_RFBandwidthFactor

int ATVDemodSettings::m_RFBandwidthFactor

added: [1:100]

Definition at line 53 of file atvdemodsettings.h.

Referenced by convertFromUIValues(), convertToUIValues(), deserialize(), resetToDefaults(), and serialize().

◆ m_rfSliderDivisor

int ATVDemodSettings::m_rfSliderDivisor
private

Definition at line 121 of file atvdemodsettings.h.

Referenced by resetToDefaults().

◆ m_rgbColor

quint32 ATVDemodSettings::m_rgbColor

Definition at line 87 of file atvdemodsettings.h.

Referenced by resetToDefaults(), and serialize().

◆ m_title

QString ATVDemodSettings::m_title

Definition at line 88 of file atvdemodsettings.h.

Referenced by resetToDefaults(), and serialize().

◆ m_topTimeFactor

int ATVDemodSettings::m_topTimeFactor

added: +/- 30 something

Definition at line 50 of file atvdemodsettings.h.

Referenced by convertToUIValues(), deserialize(), getTopTime(), resetToDefaults(), and serialize().

◆ m_udpAddress

QString ATVDemodSettings::m_udpAddress

Definition at line 89 of file atvdemodsettings.h.

Referenced by resetToDefaults().

◆ m_udpPort

uint16_t ATVDemodSettings::m_udpPort

Definition at line 90 of file atvdemodsettings.h.

Referenced by resetToDefaults().


The documentation for this struct was generated from the following files: