TSDuck Version 3.15-964 (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.
 
 ts::UHF
 UHF (Ultra High Frequecy) band.
 
 ts::VHF
 VHF (Very High Frequency) band III.
 

Typedefs

typedef std::bitset< size_t(DS_COUNT)> ts::DeliverySystemSet
 A set of delivery system values (ts::DeliverySystem). More...
 

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::DeliverySystem {
  ts::DS_UNDEFINED,
  ts::DS_DVB_S,
  ts::DS_DVB_S2,
  ts::DS_DVB_T,
  ts::DS_DVB_T2,
  ts::DS_DVB_C,
  ts::DS_DVB_C_ANNEX_AC,
  ts::DS_DVB_C_ANNEX_B,
  ts::DS_DVB_C2,
  ts::DS_DVB_H,
  ts::DS_ISDB_S,
  ts::DS_ISDB_T,
  ts::DS_ISDB_C,
  ts::DS_ATSC,
  ts::DS_ATSC_MH,
  ts::DS_DMB_TH,
  ts::DS_CMMB,
  ts::DS_DAB,
  ts::DS_DSS,
  ts::DS_COUNT
}
 Delivery systems. More...
 
enum  ts::GuardInterval {
  ts::GUARD_AUTO,
  ts::GUARD_1_32,
  ts::GUARD_1_16,
  ts::GUARD_1_8,
  ts::GUARD_1_4
}
 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
}
 Modulation types. More...
 
enum  ts::Pilot {
  ts::PILOT_AUTO,
  ts::PILOT_ON,
  ts::PILOT_OFF
}
 Pilot (DVB-S2) More...
 
enum  ts::PLP : uint32_t { ts::PLP_DISABLE = 0xFFFFFFFF }
 Representation of a Physical Layer Pipe (PLP) id (DVB-T2). 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
}
 Transmission mode (OFDM) More...
 
enum  ts::TunerType {
  ts::DVB_S,
  ts::DVB_C,
  ts::DVB_T,
  ts::ATSC
}
 Known tuner types. 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...
 
int ts::UHF::Channel (uint64_t frequency)
 Compute a UHF channel number from a frequency. More...
 
int ts::VHF::Channel (uint64_t frequency)
 Compute a VHF channel number from a frequency. 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...
 
UString ts::UHF::Description (int channel, int offset, int strength=-1, int quality=-1)
 Return a human-readable description of a UHF channel. 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...
 
uint64_t ts::UHF::Frequency (int channel, int offset_count=0)
 Compute a UHF frequency from a channel number and optional offset count. More...
 
uint64_t ts::VHF::Frequency (int channel, int offset_count=0)
 Compute a VHF frequency from a channel number and optional offset count. 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...
 
bool ts::UHF::InBand (uint64_t frequency, int min_offset=-3, int max_offset=3)
 Check if a frequency is in the UHF band. More...
 
bool ts::VHF::InBand (uint64_t frequency, int min_offset=-3, int max_offset=3)
 Check if a frequency is in the UHF band III. More...
 
int ts::UHF::OffsetCount (uint64_t frequency)
 Compute a UHF offset count from frequency (approximate if necessary) More...
 
int ts::VHF::OffsetCount (uint64_t frequency)
 Compute a VHF offset count from frequency (approximate if necessary) More...
 

Variables

const Enumeration ts::BandWidthEnum
 Enumeration description of ts::BandWidth.
 
const uint64_t ts::UHF::CHANNEL_BASE = 306000000
 UHF band base (306 MHz).
 
const uint64_t ts::VHF::CHANNEL_BASE = 142500000
 VHF band base (142.5 MHz).
 
const uint64_t ts::UHF::CHANNEL_OFFSET = 166666
 Optional channel offset (~167 kHz).
 
const uint64_t ts::VHF::CHANNEL_OFFSET = 166666
 Optional channel offset (~167 kHz).
 
const uint64_t ts::UHF::CHANNEL_WIDTH = 8000000
 UHF channel width (8 MHz).
 
const uint64_t ts::VHF::CHANNEL_WIDTH = 7000000
 VHF channel width (7 MHz).
 
const Enumeration ts::DeliverySystemEnum
 Enumeration description of ts::DeliverySystem.
 
const int ts::UHF::FIRST_CHANNEL = 21
 First channel in UHF band.
 
const int ts::VHF::FIRST_CHANNEL = 5
 First channel in VHF band III.
 
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.
 
const int ts::UHF::LAST_CHANNEL = 69
 Last channel in UHF band.
 
const int ts::VHF::LAST_CHANNEL = 12
 Last channel in VHF band III.
 
const Enumeration ts::ModulationEnum
 Enumeration description of ts::Modulation.
 
const Enumeration ts::PilotEnum
 Enumeration description of ts::Pilot.
 
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.
 
const Enumeration ts::TransmissionModeEnum
 Enumeration description of ts::TransmissionMode.
 
const Enumeration ts::TunerTypeEnum
 Enumeration description of ts::TunerType.
 

Detailed Description

Definition for MPEG transport modulations.