TSDuck v3.40-4033
MPEG Transport Stream Toolkit
Loading...
Searching...
No Matches
ts::BitrateDifferenceDVBT Class Reference

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

#include <tsBitrateDifferenceDVBT.h>

Collaboration diagram for ts::BitrateDifferenceDVBT:

Public Member Functions

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

Static Public Member Functions

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

Public Attributes

BitRate bitrate_diff = 0
 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,
const 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: