TSDuck Version 3.22-1919 (TSDuck - The MPEG Transport Stream Toolkit)
tsModulation.h File Reference

Definition for MPEG transport modulations. More...

Namespaces

 ts
 TSDuck namespace, containing all TSDuck classes and functions.
 

Enumerations

enum  ts::BandWidth {
  ts::BW_AUTO,
  ts::BW_1_712_MHZ,
  ts::BW_5_MHZ,
  ts::BW_6_MHZ,
  ts::BW_7_MHZ,
  ts::BW_8_MHZ,
  ts::BW_10_MHZ
}
 Bandwidth (OFDM, DVB-T/T2) More...
 
enum  ts::GuardInterval {
  ts::GUARD_AUTO,
  ts::GUARD_1_32,
  ts::GUARD_1_16,
  ts::GUARD_1_8,
  ts::GUARD_1_4,
  ts::GUARD_1_128,
  ts::GUARD_19_128,
  ts::GUARD_19_256,
  ts::GUARD_PN420,
  ts::GUARD_PN595,
  ts::GUARD_PN945
}
 Guard interval (OFDM) More...
 
enum  ts::Hierarchy {
  ts::HIERARCHY_AUTO,
  ts::HIERARCHY_NONE,
  ts::HIERARCHY_1,
  ts::HIERARCHY_2,
  ts::HIERARCHY_4
}
 Hierarchy (OFDM) More...
 
enum  ts::InnerFEC {
  ts::FEC_NONE,
  ts::FEC_AUTO,
  ts::FEC_1_2,
  ts::FEC_2_3,
  ts::FEC_3_4,
  ts::FEC_4_5,
  ts::FEC_5_6,
  ts::FEC_6_7,
  ts::FEC_7_8,
  ts::FEC_8_9,
  ts::FEC_9_10,
  ts::FEC_3_5,
  ts::FEC_1_3,
  ts::FEC_1_4,
  ts::FEC_2_5,
  ts::FEC_5_11
}
 Inner Forward Error Correction. More...
 
enum  ts::Modulation {
  ts::QPSK,
  ts::PSK_8,
  ts::QAM_AUTO,
  ts::QAM_16,
  ts::QAM_32,
  ts::QAM_64,
  ts::QAM_128,
  ts::QAM_256,
  ts::VSB_8,
  ts::VSB_16,
  ts::APSK_16,
  ts::APSK_32,
  ts::DQPSK,
  ts::QAM_4_NR
}
 Modulation types. More...
 
enum  ts::Pilot {
  ts::PILOT_AUTO,
  ts::PILOT_ON,
  ts::PILOT_OFF
}
 Pilot (DVB-S2) More...
 
enum  ts::PLSMode {
  ts::PLS_ROOT = 0,
  ts::PLS_GOLD = 1,
  ts::PLS_COMBO = 2
}
 Physical Layer Scrambling (PLS) modes for DVB-S2. More...
 
enum  ts::Polarization {
  ts::POL_NONE,
  ts::POL_AUTO,
  ts::POL_HORIZONTAL,
  ts::POL_VERTICAL,
  ts::POL_LEFT,
  ts::POL_RIGHT
}
 Polarization. More...
 
enum  ts::RollOff {
  ts::ROLLOFF_AUTO,
  ts::ROLLOFF_35,
  ts::ROLLOFF_25,
  ts::ROLLOFF_20
}
 Roll-off (DVB-S2) More...
 
enum  ts::SpectralInversion {
  ts::SPINV_OFF,
  ts::SPINV_ON,
  ts::SPINV_AUTO
}
 Spectral inversion. More...
 
enum  ts::TransmissionMode {
  ts::TM_AUTO,
  ts::TM_2K,
  ts::TM_4K,
  ts::TM_8K,
  ts::TM_2KI,
  ts::TM_4KI,
  ts::TM_1K,
  ts::TM_16K,
  ts::TM_32K,
  ts::TM_C1,
  ts::TM_C3780
}
 Transmission mode (OFDM) More...
 

Functions

BandWidth ts::BandWidthCodeFromHz (uint32_t hz)
 Get the bandwidth code from a value in Hz. More...
 
uint32_t ts::BandWidthValueHz (BandWidth bw)
 Get the bandwidth value in Hz. More...
 
uint32_t ts::BitsPerSymbol (Modulation mod)
 Compute the number of bits per symbol for a specified modulation. More...
 
bool ts::CheckModEnum (int value, const UString &name, const Enumeration &conv, Report &report)
 Check if an enumeration value is supported by the native implementation. More...
 
template<typename ENUM , typename std::enable_if< std::is_integral< ENUM >::value||std::is_enum< ENUM >::value >::type * = nullptr>
bool ts::CheckModVar (const Variable< ENUM > &value, const UString &name, const Enumeration &conv, Report &report)
 Check if an optional enumeration value is supported by the native implementation. More...
 
uint32_t ts::FECDivider (InnerFEC fec)
 Compute the divider of a FEC value. More...
 
uint32_t ts::FECMultiplier (InnerFEC fec)
 Compute the multiplier of a FEC value. More...
 
uint32_t ts::GuardIntervalDivider (GuardInterval g)
 Compute the divider of a guard interval value. More...
 
uint32_t ts::GuardIntervalMultiplier (GuardInterval g)
 Compute the multiplier of a guard interval value. More...
 

Variables

const Enumeration ts::BandWidthEnum
 Enumeration description of ts::BandWidth.
 
const Enumeration ts::GuardIntervalEnum
 Enumeration description of ts::GuardInterval.
 
const Enumeration ts::HierarchyEnum
 Enumeration description of ts::Hierarchy.
 
const Enumeration ts::InnerFECEnum
 Enumeration description of ts::InnerFEC.
 
constexpr uint32_t ts::ISI_DISABLE = 0xFFFFFFFF
 Special ISI value meaning "disable multistream selection".
 
constexpr uint32_t ts::ISI_MAX = 0xFF
 Maximum Input Stream Id (ISI) value for DVB-S2.
 
const Enumeration ts::ModulationEnum
 Enumeration description of ts::Modulation.
 
const Enumeration ts::PilotEnum
 Enumeration description of ts::Pilot.
 
constexpr uint32_t ts::PLP_DISABLE = 0xFFFFFFFF
 Special PLP value meaning "disable PLP selection".
 
constexpr uint32_t ts::PLP_MAX = 0xFF
 Maximum Physical Layer Pipe (PLP) value for DVB-T2.
 
constexpr uint32_t ts::PLS_CODE_MAX = 0x3FFFF
 Maximum Physical Layer Scrambling (PLS) code value for DVB-S2.
 
const Enumeration ts::PLSModeEnum
 Enumeration description of ts::PLSMode.
 
const Enumeration ts::PolarizationEnum
 Enumeration description of ts::Polarization.
 
const Enumeration ts::RollOffEnum
 Enumeration description of ts::RollOff.
 
const Enumeration ts::SpectralInversionEnum
 Enumeration description of ts::SpectralInversion.
 
constexpr uint32_t ts::STREAM_ID_DISABLE = 0xFFFFFFFF
 Special Stream Id value meaning "disable multistream selection".
 
constexpr uint32_t ts::STREAM_ID_MAX = 0xFFFF
 Maximum Stream Id value (same as inner TS id) for ISDB-S.
 
const Enumeration ts::TransmissionModeEnum
 Enumeration description of ts::TransmissionMode.
 

Detailed Description

Definition for MPEG transport modulations.