![]() |
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.
|
#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) |
Private Member Functions | |
| void | lineTimeUpdate () |
| void | topTimeUpdate () |
Private Attributes | |
| float | m_fltLineTimeMultiplier |
| float | m_fltTopTimeMultiplier |
| int | m_rfSliderDivisor |
Definition at line 27 of file atvdemodsettings.h.
Definition at line 29 of file atvdemodsettings.h.
| Enumerator | |
|---|---|
| ATVStdPAL625 | |
| ATVStdPAL525 | |
| ATVStd405 | |
| ATVStdShortInterleaved | |
| ATVStdShort | |
| ATVStdHSkip | |
Definition at line 38 of file atvdemodsettings.h.
| ATVDemodSettings::ATVDemodSettings | ( | ) |
Definition at line 25 of file atvdemodsettings.cpp.
References resetToDefaults().
Here is the call graph for this function:| 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().
Here is the call graph for this function:
Here is the caller graph for this function:| 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().
Here is the call graph for this function:
Here is the caller graph for this function:| 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().
Here is the call graph for this function:
Here is the caller graph for this function:| 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:
|
static |
Definition at line 165 of file atvdemodsettings.cpp.
Referenced by convertFromUIValues(), getNominalLineTime(), and setChannelMarker().
Here is the caller graph for this function:
|
static |
Definition at line 203 of file atvdemodsettings.cpp.
Referenced by convertToUIValues(), and setChannelMarker().
Here is the caller graph for this function:| 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().
Here is the call graph for this function:
Here is the caller graph for this function:| 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().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 308 of file atvdemodsettings.cpp.
References getFps(), and getNumberOfLines().
Referenced by getLineTime(), getLineTimeFactor(), getTopTime(), getTopTimeFactor(), lineTimeUpdate(), setChannelMarker(), and topTimeUpdate().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 230 of file atvdemodsettings.cpp.
Referenced by convertFromUIValues(), getNominalLineTime(), and setChannelMarker().
Here is the caller graph for this function:
|
static |
Definition at line 277 of file atvdemodsettings.cpp.
Referenced by convertToUIValues(), and setChannelMarker().
Here is the caller graph for this function:| int ATVDemodSettings::getRFSliderDivisor | ( | ) |
Definition at line 389 of file atvdemodsettings.cpp.
References getEffectiveSampleRate().
Referenced by convertFromUIValues(), convertToUIValues(), and setChannelMarker().
Here is the call graph for this function:
Here is the caller graph for this function:| 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().
Here is the call graph for this function:
Here is the caller graph for this function:| 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().
Here is the call graph for this function:
Here is the caller graph for this function:
|
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().
Here is the call graph for this function:
Here is the caller graph for this function:| 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().
Here is the caller graph for this function:| 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().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 95 of file atvdemodsettings.h.
References convertFromUIValues(), convertToUIValues(), deserialize(), getEffectiveSampleRate(), getFps(), getFpsIndex(), getLineTime(), getLineTimeFactor(), getNominalLineTime(), getNumberOfLines(), getNumberOfLinesIndex(), getRFSliderDivisor(), getTopTime(), getTopTimeFactor(), lineTimeUpdate(), serialize(), and topTimeUpdate().
Here is the call graph for this function:
|
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().
Here is the call graph for this function:
Here is the caller graph for this function:| bool ATVDemodSettings::m_blndecimatorEnable |
Definition at line 63 of file atvdemodsettings.h.
Referenced by getEffectiveSampleRate(), and resetToDefaults().
| bool ATVDemodSettings::m_blnFFTFiltering |
Definition at line 62 of file atvdemodsettings.h.
Referenced by resetToDefaults().
| bool ATVDemodSettings::m_blnHSync |
Definition at line 77 of file atvdemodsettings.h.
Referenced by deserialize(), resetToDefaults(), and serialize().
| bool ATVDemodSettings::m_blnInvertVideo |
Definition at line 79 of file atvdemodsettings.h.
Referenced by deserialize(), resetToDefaults(), and serialize().
| bool ATVDemodSettings::m_blnVSync |
Definition at line 78 of file atvdemodsettings.h.
Referenced by deserialize(), resetToDefaults(), and serialize().
| Serializable* ATVDemodSettings::m_channelMarker |
Definition at line 91 of file atvdemodsettings.h.
Referenced by serialize().
| ATVStd ATVDemodSettings::m_enmATVStandard |
Definition at line 69 of file atvdemodsettings.h.
Referenced by deserialize(), resetToDefaults(), and serialize().
| ATVModulation ATVDemodSettings::m_enmModulation |
Definition at line 59 of file atvdemodsettings.h.
Referenced by deserialize(), resetToDefaults(), and serialize().
| float ATVDemodSettings::m_fltBFOFrequency |
Definition at line 64 of file atvdemodsettings.h.
Referenced by deserialize(), resetToDefaults(), and serialize().
| float ATVDemodSettings::m_fltFramePerS |
Definition at line 73 of file atvdemodsettings.h.
Referenced by convertFromUIValues(), convertToUIValues(), and resetToDefaults().
| float ATVDemodSettings::m_fltLineDuration |
Definition at line 71 of file atvdemodsettings.h.
Referenced by convertFromUIValues(), getLineTimeFactor(), and resetToDefaults().
|
private |
Definition at line 119 of file atvdemodsettings.h.
Referenced by getLineTime(), getLineTimeFactor(), getTopTimeFactor(), lineTimeUpdate(), and resetToDefaults().
| float ATVDemodSettings::m_fltRatioOfRowsToDisplay |
Definition at line 74 of file atvdemodsettings.h.
Referenced by resetToDefaults().
| float ATVDemodSettings::m_fltRFBandwidth |
Definition at line 60 of file atvdemodsettings.h.
Referenced by convertFromUIValues(), convertToUIValues(), and resetToDefaults().
| float ATVDemodSettings::m_fltRFOppBandwidth |
Definition at line 61 of file atvdemodsettings.h.
Referenced by convertFromUIValues(), convertToUIValues(), and resetToDefaults().
| float ATVDemodSettings::m_fltTopDuration |
Definition at line 72 of file atvdemodsettings.h.
Referenced by convertFromUIValues(), getTopTimeFactor(), and resetToDefaults().
|
private |
Definition at line 120 of file atvdemodsettings.h.
Referenced by getTopTime(), resetToDefaults(), and topTimeUpdate().
| float ATVDemodSettings::m_fltVoltLevelSynchroBlack |
Definition at line 76 of file atvdemodsettings.h.
Referenced by deserialize(), resetToDefaults(), and serialize().
| float ATVDemodSettings::m_fltVoltLevelSynchroTop |
Definition at line 75 of file atvdemodsettings.h.
Referenced by deserialize(), resetToDefaults(), and serialize().
| float ATVDemodSettings::m_fmDeviation |
Definition at line 65 of file atvdemodsettings.h.
Referenced by deserialize(), resetToDefaults(), and serialize().
| int ATVDemodSettings::m_fpsIndex |
added: FPS list index
Definition at line 51 of file atvdemodsettings.h.
Referenced by convertFromUIValues(), convertToUIValues(), deserialize(), getLineTime(), getLineTimeFactor(), getTopTime(), getTopTimeFactor(), lineTimeUpdate(), resetToDefaults(), serialize(), and topTimeUpdate().
| 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().
| int ATVDemodSettings::m_intFrequencyOffset |
Definition at line 58 of file atvdemodsettings.h.
Referenced by deserialize(), resetToDefaults(), and serialize().
| int ATVDemodSettings::m_intNumberOfLines |
Definition at line 70 of file atvdemodsettings.h.
Referenced by convertFromUIValues(), convertToUIValues(), and resetToDefaults().
| int ATVDemodSettings::m_intNumberSamplePerLine |
Definition at line 84 of file atvdemodsettings.h.
Referenced by resetToDefaults().
| int ATVDemodSettings::m_intSampleRate |
Definition at line 68 of file atvdemodsettings.h.
Referenced by getEffectiveSampleRate(), and resetToDefaults().
| int ATVDemodSettings::m_intTVSampleRate |
Definition at line 83 of file atvdemodsettings.h.
Referenced by getEffectiveSampleRate(), and resetToDefaults().
| int ATVDemodSettings::m_intVideoTabIndex |
Definition at line 80 of file atvdemodsettings.h.
Referenced by resetToDefaults().
| int ATVDemodSettings::m_lineTimeFactor |
added: +/- 100 something
Definition at line 49 of file atvdemodsettings.h.
Referenced by convertToUIValues(), deserialize(), getLineTime(), resetToDefaults(), and serialize().
| int ATVDemodSettings::m_nbLinesIndex |
added: #lines list index
Definition at line 55 of file atvdemodsettings.h.
Referenced by convertFromUIValues(), convertToUIValues(), deserialize(), getLineTime(), getLineTimeFactor(), getTopTime(), getTopTimeFactor(), lineTimeUpdate(), resetToDefaults(), serialize(), and topTimeUpdate().
| int ATVDemodSettings::m_OppBandwidthFactor |
added: [0:100]
Definition at line 54 of file atvdemodsettings.h.
Referenced by convertFromUIValues(), convertToUIValues(), deserialize(), resetToDefaults(), and serialize().
| int ATVDemodSettings::m_RFBandwidthFactor |
added: [1:100]
Definition at line 53 of file atvdemodsettings.h.
Referenced by convertFromUIValues(), convertToUIValues(), deserialize(), resetToDefaults(), and serialize().
|
private |
Definition at line 121 of file atvdemodsettings.h.
Referenced by resetToDefaults().
| quint32 ATVDemodSettings::m_rgbColor |
Definition at line 87 of file atvdemodsettings.h.
Referenced by resetToDefaults(), and serialize().
| QString ATVDemodSettings::m_title |
Definition at line 88 of file atvdemodsettings.h.
Referenced by resetToDefaults(), and serialize().
| int ATVDemodSettings::m_topTimeFactor |
added: +/- 30 something
Definition at line 50 of file atvdemodsettings.h.
Referenced by convertToUIValues(), deserialize(), getTopTime(), resetToDefaults(), and serialize().
| QString ATVDemodSettings::m_udpAddress |
Definition at line 89 of file atvdemodsettings.h.
Referenced by resetToDefaults().
| uint16_t ATVDemodSettings::m_udpPort |
Definition at line 90 of file atvdemodsettings.h.
Referenced by resetToDefaults().
1.8.13