2017-10-21 13:13:14 -04:00
|
|
|
///////////////////////////////////////////////////////////////////////////////////
|
2023-11-18 00:36:53 -05:00
|
|
|
// Copyright (C) 2017-2020, 2022 Edouard Griffiths, F4EXB <f4exb06@gmail.com> //
|
|
|
|
// Copyright (C) 2021 Jon Beniston, M7RCE <jon@beniston.com> //
|
2017-10-21 13:13:14 -04:00
|
|
|
// //
|
|
|
|
// This program is free software; you can redistribute it and/or modify //
|
|
|
|
// it under the terms of the GNU General Public License as published by //
|
|
|
|
// the Free Software Foundation as version 3 of the License, or //
|
2019-04-11 00:39:30 -04:00
|
|
|
// (at your option) any later version. //
|
2017-10-21 13:13:14 -04:00
|
|
|
// //
|
|
|
|
// This program is distributed in the hope that it will be useful, //
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of //
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
|
|
|
|
// GNU General Public License V3 for more details. //
|
|
|
|
// //
|
|
|
|
// You should have received a copy of the GNU General Public License //
|
|
|
|
// along with this program. If not, see <http://www.gnu.org/licenses/>. //
|
|
|
|
///////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef PLUGINS_CHANNELTX_MODATV_ATVMODSETTINGS_H_
|
|
|
|
#define PLUGINS_CHANNELTX_MODATV_ATVMODSETTINGS_H_
|
|
|
|
|
|
|
|
#include <QByteArray>
|
|
|
|
#include <QString>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
2018-03-03 19:47:51 -05:00
|
|
|
class Serializable;
|
2017-10-21 13:13:14 -04:00
|
|
|
|
|
|
|
struct ATVModSettings
|
|
|
|
{
|
|
|
|
typedef enum
|
|
|
|
{
|
2020-07-30 22:04:16 -04:00
|
|
|
ATVStdPAL625, //!< standard 625 lines B, D, G, H, I, K, K1 and N
|
|
|
|
ATVStdPAL525, //!< standard 525 lines M
|
|
|
|
ATVStd819, //!< standard 819 lines F (Belgium)
|
|
|
|
ATVStdShortInterlaced, //!< non-standard with mimimal vertical sync sequences permitted by SDR technology
|
|
|
|
ATVStdShort, //!< same as above
|
|
|
|
ATVStdHSkip //!< first introduced vertical sync by skipping horizontal sync to indicate start of image
|
2017-10-21 13:13:14 -04:00
|
|
|
} ATVStd;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
ATVModInputUniform,
|
|
|
|
ATVModInputHBars,
|
|
|
|
ATVModInputVBars,
|
|
|
|
ATVModInputChessboard,
|
|
|
|
ATVModInputHGradient,
|
|
|
|
ATVModInputVGradient,
|
2020-07-21 17:52:30 -04:00
|
|
|
ATVModInputDiagonal,
|
2017-10-21 13:13:14 -04:00
|
|
|
ATVModInputImage,
|
|
|
|
ATVModInputVideo,
|
|
|
|
ATVModInputCamera
|
|
|
|
} ATVModInput;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
ATVModulationAM,
|
|
|
|
ATVModulationFM,
|
|
|
|
ATVModulationUSB,
|
|
|
|
ATVModulationLSB,
|
|
|
|
ATVModulationVestigialUSB,
|
|
|
|
ATVModulationVestigialLSB
|
|
|
|
} ATVModulation;
|
|
|
|
|
|
|
|
qint64 m_inputFrequencyOffset; //!< offset from baseband center frequency
|
|
|
|
Real m_rfBandwidth; //!< Bandwidth of modulated signal or direct sideband for SSB / vestigial SSB
|
|
|
|
Real m_rfOppBandwidth; //!< Bandwidth of opposite sideband for vestigial SSB
|
|
|
|
ATVStd m_atvStd; //!< Standard
|
|
|
|
int m_nbLines; //!< Number of lines per full frame
|
|
|
|
int m_fps; //!< Number of frames per second
|
|
|
|
ATVModInput m_atvModInput; //!< Input source type
|
|
|
|
Real m_uniformLevel; //!< Percentage between black and white for uniform screen display
|
|
|
|
ATVModulation m_atvModulation; //!< RF modulation type
|
|
|
|
bool m_videoPlayLoop; //!< Play video in a loop
|
|
|
|
bool m_videoPlay; //!< True to play video and false to pause
|
|
|
|
bool m_cameraPlay; //!< True to play camera video and false to pause
|
|
|
|
bool m_channelMute; //!< Mute channel baseband output
|
|
|
|
bool m_invertedVideo; //!< True if video signal is inverted before modulation
|
|
|
|
float m_rfScalingFactor; //!< Scaling factor from +/-1 to +/-2^15
|
|
|
|
float m_fmExcursion; //!< FM excursion factor relative to full bandwidth
|
|
|
|
bool m_forceDecimator; //!< Forces decimator even when channel and source sample rates are equal
|
2018-04-14 19:34:46 -04:00
|
|
|
bool m_showOverlayText; //!< Show overlay text on image
|
2017-10-21 13:13:14 -04:00
|
|
|
QString m_overlayText;
|
|
|
|
quint32 m_rgbColor;
|
2017-11-19 13:14:33 -05:00
|
|
|
QString m_title;
|
2019-08-01 17:21:57 -04:00
|
|
|
QString m_imageFileName;
|
|
|
|
QString m_videoFileName;
|
2019-11-17 05:09:07 -05:00
|
|
|
int m_streamIndex;
|
2018-12-20 19:15:15 -05:00
|
|
|
bool m_useReverseAPI;
|
|
|
|
QString m_reverseAPIAddress;
|
|
|
|
uint16_t m_reverseAPIPort;
|
|
|
|
uint16_t m_reverseAPIDeviceIndex;
|
|
|
|
uint16_t m_reverseAPIChannelIndex;
|
2022-04-12 10:20:45 -04:00
|
|
|
int m_workspaceIndex;
|
|
|
|
QByteArray m_geometryBytes;
|
2022-04-12 12:27:27 -04:00
|
|
|
bool m_hidden;
|
2017-10-21 13:13:14 -04:00
|
|
|
|
|
|
|
Serializable *m_channelMarker;
|
2022-01-08 23:27:12 -05:00
|
|
|
Serializable *m_rollupState;
|
2017-10-21 13:13:14 -04:00
|
|
|
|
|
|
|
ATVModSettings();
|
|
|
|
void resetToDefaults();
|
|
|
|
void setChannelMarker(Serializable *channelMarker) { m_channelMarker = channelMarker; }
|
2022-01-08 23:27:12 -05:00
|
|
|
void setRollupState(Serializable *rollupState) { m_rollupState = rollupState; }
|
2017-10-21 13:13:14 -04:00
|
|
|
QByteArray serialize() const;
|
|
|
|
bool deserialize(const QByteArray& data);
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* PLUGINS_CHANNELTX_MODATV_ATVMODSETTINGS_H_ */
|