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.
atvdemodsettings.h
Go to the documentation of this file.
1 // Copyright (C) 2017 F4EXB //
3 // //
4 // This program is free software; you can redistribute it and/or modify //
5 // it under the terms of the GNU General Public License as published by //
6 // the Free Software Foundation as version 3 of the License, or //
7 // (at your option) any later version. //
8 // //
9 // This program is distributed in the hope that it will be useful, //
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of //
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
12 // GNU General Public License V3 for more details. //
13 // //
14 // You should have received a copy of the GNU General Public License //
15 // along with this program. If not, see <http://www.gnu.org/licenses/>. //
17 
18 #ifndef PLUGINS_CHANNELRX_DEMODATV_ATVDEMODSETTINGS_H_
19 #define PLUGINS_CHANNELRX_DEMODATV_ATVDEMODSETTINGS_H_
20 
21 #include <QByteArray>
22 #include <QString>
23 #include <stdint.h>
24 
25 class Serializable;
26 
28 {
36  };
37 
38  enum ATVStd
39  {
46  };
47 
48  // Added fields that correspond directly to UI inputs
51  int m_fpsIndex;
52  bool m_halfImage;
56 
57  // Former RF
66 
67  // Former <none>
77  bool m_blnHSync;
78  bool m_blnVSync;
81 
82  // Former private
85 
86  // new
87  quint32 m_rgbColor;
88  QString m_title;
89  QString m_udpAddress;
92 
94  void resetToDefaults();
95  void setChannelMarker(Serializable *channelMarker) { m_channelMarker = channelMarker; }
96  QByteArray serialize() const;
97  bool deserialize(const QByteArray& data);
98 
100  float getLineTime();
101  int getLineTimeFactor();
102  float getTopTime();
103  int getTopTimeFactor();
104  int getRFSliderDivisor();
105 
106  void convertFromUIValues();
107  void convertToUIValues();
108 
109  static float getFps(int fpsIndex);
110  static int getNumberOfLines(int nbLinesIndex);
111  static int getFpsIndex(float fps);
112  static int getNumberOfLinesIndex(int nbLines);
113  static float getNominalLineTime(int nbLinesIndex, int fpsIndex);
114 
115 private:
116  void lineTimeUpdate();
117  void topTimeUpdate();
118 
122 };
123 
124 
125 
126 #endif /* PLUGINS_CHANNELRX_DEMODATV_ATVDEMODSETTINGS_H_ */
static int getFpsIndex(float fps)
ATVModulation m_enmModulation
void setChannelMarker(Serializable *channelMarker)
static int getNumberOfLinesIndex(int nbLines)
float m_fltVoltLevelSynchroTop
static float getFps(int fpsIndex)
bool deserialize(const QByteArray &data)
int m_topTimeFactor
added: +/- 30 something
QByteArray serialize() const
Classical frequency modulation with discriminator #2.
float m_fltRatioOfRowsToDisplay
int m_lineTimeFactor
added: +/- 100 something
Classical amplitude modulation.
unsigned short uint16_t
Definition: rtptypes_win.h:44
Classical frequency modulation with discriminator #1.
int m_fpsIndex
added: FPS list index
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)
float m_fltVoltLevelSynchroBlack
bool m_halfImage
added: true => m_fltRatioOfRowsToDisplay = 0.5, false => m_fltRatioOfRowsToDisplay = 1...
int m_nbLinesIndex
added: #lines list index
static int getNumberOfLines(int nbLinesIndex)
int m_RFBandwidthFactor
added: [1:100]
static float getNominalLineTime(int nbLinesIndex, int fpsIndex)
Classical frequency modulation with phase derivative discriminator.
Serializable * m_channelMarker
int m_OppBandwidthFactor
added: [0:100]