116 tmp = tmp < 0 ? 0 : tmp > (int)
DVB_S2 ? (
int)
DVB_S2 : tmp;
155 m_udpTSPort = utmp < 1024 ? 1024 : utmp > 65536 ? 65535 : utmp;
181 <<
" m_fec: " <<
m_fec 212 qDebug(
"DATVDemodSettings::validateSystemConfiguration: m_standard: %d m_modulation: %d m_fec: %d",
215 if (m_standard ==
DVB_S)
228 else if (m_standard ==
DVB_S2)
231 if ((m_modulation ==
BPSK) || (m_modulation ==
QAM16) || (m_modulation ==
QAM64) || (m_modulation ==
QAM256))
236 if (m_modulation ==
QPSK)
245 else if (m_modulation ==
PSK8)
252 else if (m_modulation ==
APSK16)
259 else if (m_modulation ==
APSK32)
267 else if (m_modulation ==
APSK64E)
280 }
else if (str ==
"QPSK") {
282 }
else if (str ==
"PSK8") {
284 }
else if (str ==
"APSK16") {
286 }
else if (str ==
"APSK32") {
288 }
else if (str ==
"APSK64E") {
290 }
else if (str ==
"QAM16") {
292 }
else if (str ==
"QAM64") {
294 }
else if (str ==
"QAM256") {
306 }
else if (str ==
"1/3") {
308 }
else if (str ==
"2/5") {
310 }
else if (str ==
"1/2") {
312 }
else if (str ==
"3/5") {
314 }
else if (str ==
"2/3") {
316 }
else if (str ==
"3/4") {
318 }
else if (str ==
"4/5") {
320 }
else if (str ==
"5/6") {
322 }
else if (str ==
"7/8") {
324 }
else if (str ==
"8/9") {
326 }
else if (str ==
"9/10") {
335 if (modulation ==
BPSK) {
337 }
else if (modulation ==
QPSK) {
339 }
else if (modulation ==
PSK8) {
341 }
else if (modulation ==
APSK16) {
343 }
else if (modulation ==
APSK32) {
345 }
else if (modulation ==
APSK64E) {
347 }
else if (modulation ==
QAM16) {
349 }
else if (modulation ==
QAM64) {
351 }
else if (modulation ==
QAM256) {
360 if (codeRate ==
FEC14) {
362 }
else if (codeRate ==
FEC13) {
364 }
else if (codeRate ==
FEC25) {
366 }
else if (codeRate ==
FEC12) {
368 }
else if (codeRate ==
FEC35) {
370 }
else if (codeRate ==
FEC23) {
372 }
else if (codeRate ==
FEC34) {
374 }
else if (codeRate ==
FEC45) {
376 }
else if (codeRate ==
FEC56) {
378 }
else if (codeRate ==
FEC78) {
380 }
else if (codeRate ==
FEC89) {
382 }
else if (codeRate ==
FEC910) {
393 if (dvbStandard ==
DVB_S)
395 modulations.push_back(
BPSK);
396 modulations.push_back(
QPSK);
397 modulations.push_back(
PSK8);
398 modulations.push_back(
QAM16);
399 modulations.push_back(
QAM64);
400 modulations.push_back(
QAM256);
402 else if (dvbStandard ==
DVB_S2)
404 modulations.push_back(
QPSK);
405 modulations.push_back(
PSK8);
406 modulations.push_back(
APSK16);
407 modulations.push_back(
APSK32);
408 modulations.push_back(
APSK64E);
416 if (dvbStandard ==
DVB_S)
418 codeRates.push_back(
FEC12);
419 codeRates.push_back(
FEC23);
420 codeRates.push_back(
FEC34);
421 codeRates.push_back(
FEC56);
422 codeRates.push_back(
FEC78);
424 else if (dvbStandard ==
DVB_S2)
426 if (modulation ==
QPSK)
428 codeRates.push_back(
FEC14);
429 codeRates.push_back(
FEC13);
430 codeRates.push_back(
FEC25);
431 codeRates.push_back(
FEC12);
433 if ((modulation ==
QPSK) || (modulation ==
PSK8))
435 codeRates.push_back(
FEC35);
437 if ((modulation ==
QPSK) || (modulation ==
PSK8) || (modulation ==
APSK16))
439 codeRates.push_back(
FEC23);
441 if ((modulation ==
QPSK) || (modulation ==
PSK8) || (modulation ==
APSK16) || (modulation ==
APSK32))
443 codeRates.push_back(
FEC34);
447 codeRates.push_back(
FEC45);
451 codeRates.push_back(
FEC56);
453 if ((modulation ==
QPSK) || (modulation ==
PSK8) || (modulation ==
APSK16) || (modulation ==
APSK32))
455 codeRates.push_back(
FEC89);
456 codeRates.push_back(
FEC910);
static QString getStrFromCodeRate(const DATVCodeRate codeRate)
bool isDifferent(const DATVDemodSettings &other)
static const QString m_defaultDeviceName
static DATVModulation getModulationFromStr(const QString &str)
bool readFloat(quint32 id, float *result, float def=0) const
static void getAvailableModulations(dvb_version dvbStandard, std::vector< DATVModulation > &modulations)
DATVModulation m_modulation
void writeFloat(quint32 id, float value)
void writeBlob(quint32 id, const QByteArray &value)
QByteArray serialize() const
void debug(const QString &msg) const
bool readU32(quint32 id, quint32 *result, quint32 def=0) const
bool readString(quint32 id, QString *result, const QString &def=QString::null) const
bool readBool(quint32 id, bool *result, bool def=false) const
QString m_audioDeviceName
bool readS32(quint32 id, qint32 *result, qint32 def=0) const
bool readBlob(quint32 id, QByteArray *result, const QByteArray &def=QByteArray()) const
void validateSystemConfiguration()
void writeS32(quint32 id, qint32 value)
quint32 getVersion() const
virtual bool deserialize(const QByteArray &data)=0
void writeU32(quint32 id, quint32 value)
Serializable * m_channelMarker
virtual QByteArray serialize() const =0
void writeBool(quint32 id, bool value)
static DATVCodeRate getCodeRateFromStr(const QString &str)
bool deserialize(const QByteArray &data)
void writeString(quint32 id, const QString &value)
static void getAvailableCodeRates(dvb_version dvbStandard, DATVModulation modulation, std::vector< DATVCodeRate > &codeRates)
const QByteArray & final()
static QString getStrFromModulation(const DATVModulation modulation)