TSDuck Version 3.22-1919 (TSDuck - The MPEG Transport Stream Toolkit)
ts::BitrateDifferenceDVBT Class Reference

A variant of DVB-T tuners parameters with an offset between a target bitrate and their theoretical bitrate. More...

Collaboration diagram for ts::BitrateDifferenceDVBT:

Public Member Functions

 BitrateDifferenceDVBT ()
 Default constructor.
 
bool operator< (const BitrateDifferenceDVBT &other) const
 Comparison operator for list sort. More...
 

Static Public Member Functions

static void EvaluateToBitrate (BitrateDifferenceDVBTList &params, BitRate bitrate)
 Build a list of all possible combinations of DVB-T parameters for a target bitrate. More...
 

Public Attributes

int bitrate_diff
 Difference between a target bitrate and the theoretial bitrate for these tuner parameters.
 
ModulationArgs tune
 Modulation parameters.
 

Detailed Description

A variant of DVB-T tuners parameters with an offset between a target bitrate and their theoretical bitrate.

Member Function Documentation

◆ operator<()

bool ts::BitrateDifferenceDVBT::operator< ( const BitrateDifferenceDVBT other) const

Comparison operator for list sort.

Sort criterion: increasing order of absolute value of bitrate_diff. This allow the creation of a list of parameters, from the closest to a target bitrate.

Parameters
[in]otherOther instance to compare.
Returns
True if this object is logically less than other.

◆ EvaluateToBitrate()

static void ts::BitrateDifferenceDVBT::EvaluateToBitrate ( BitrateDifferenceDVBTList params,
BitRate  bitrate 
)
static

Build a list of all possible combinations of DVB-T parameters for a target bitrate.

Parameters
[out]paramsList of all possible combinations of bandwidth, constellation, guard interval and high-priority FEC, sorted in increasing order of bitrate difference from a bitrate.
[in]bitrateTarget bitrate in bits/second.

The documentation for this class was generated from the following file: