TSDuck Version 3.32-2769 (TSDuck - The MPEG Transport Stream Toolkit)
ts::AVCHRDParameters Class Reference

AVC HRD (Hypothetical Reference Decoder) parameters. More...

Inheritance diagram for ts::AVCHRDParameters:
Collaboration diagram for ts::AVCHRDParameters:

Public Types

typedef AbstractVideoStructure SuperClass
 Reference to the superclass.
 

Public Member Functions

 AVCHRDParameters (const uint8_t *data=nullptr, size_t size=0)
 Constructor from a binary area. More...
 
virtual void clear () override
 Clear all values. More...
 
virtual std::ostream & display (std::ostream &strm, const UString &margin=UString(), int level=Severity::Info) const override
 Display the content of this object to a stream. More...
 
virtual bool parse (AVCParser &, std::initializer_list< uint32_t >=std::initializer_list< uint32_t >()) override
 Parse the structure. More...
 
virtual bool parse (const uint8_t *data, size_t siz, std::initializer_list< uint32_t >=std::initializer_list< uint32_t >()) override
 Parse a memory area containing binary video data of the expected type. More...
 

Public Attributes

uint8_t bit_rate_scale
 bit_rate_scale
 
std::vector< uint32_t > bit_rate_value_minus1
 bit_rate_value_minus1
 
std::vector< uint8_t > cbr_flag
 cbr_flag
 
uint32_t cpb_cnt_minus1
 cpb_cnt_minus1
 
uint8_t cpb_removal_delay_length_minus1
 cpb_removal_delay_length_minus1
 
uint8_t cpb_size_scale
 cpb_size_scale
 
std::vector< uint32_t > cpb_size_value_minus1
 cpb_size_value_minus1
 
uint8_t dpb_output_delay_length_minus1
 dpb_output_delay_length_minus1
 
uint8_t initial_cpb_removal_delay_length_minus1
 initial_cpb_removal_delay_length_minus1
 
uint8_t time_offset_length
 time_offset_length
 
bool valid
 Valid flag. More...
 

Protected Member Functions

template<typename INT , typename std::enable_if< std::is_integral< INT >::value >::type * = nullptr>
void disp (std::ostream &out, const UString &margin, const UChar *name, INT n) const
 Display helper for subclasses. More...
 
template<typename INT , typename std::enable_if< std::is_integral< INT >::value >::type * = nullptr>
void disp (std::ostream &out, const UString &margin, const UChar *name, std::vector< INT > n) const
 Display helper for subclasses. More...
 

Detailed Description

AVC HRD (Hypothetical Reference Decoder) parameters.

AVC is Advanced Video Coding, ISO 14496-10, ITU H.264.

Constructor & Destructor Documentation

◆ AVCHRDParameters()

ts::AVCHRDParameters::AVCHRDParameters ( const uint8_t *  data = nullptr,
size_t  size = 0 
)

Constructor from a binary area.

Parameters
[in]dataAddress of binary data to analyze.
[in]sizeSize in bytes of binary data to analyze.

Member Function Documentation

◆ clear()

virtual void ts::AVCHRDParameters::clear ( )
overridevirtual

Clear all values.

Should be reimplemented by subclasses. The data are marked invalid.

Reimplemented from ts::AbstractVideoData.

◆ parse() [1/2]

virtual bool ts::AVCHRDParameters::parse ( const uint8_t *  addr,
size_t  size,
std::initializer_list< uint32_t >  params = std::initializer_list< uint32_t >() 
)
overridevirtual

Parse a memory area containing binary video data of the expected type.

Must be reimplemented by subclasses. The data are marked as valid or invalid.

Parameters
[in]addrAddress of the binary data to parse.
[in]sizeSize in bytes of the binary data to parse.
[in]paramsAdditional parameters. May be needed by some structures.
Returns
The valid flag.

Reimplemented from ts::AbstractVideoStructure.

◆ parse() [2/2]

virtual bool ts::AVCHRDParameters::parse ( AVCParser parser,
std::initializer_list< uint32_t >  params = std::initializer_list< uint32_t >() 
)
overridevirtual

Parse the structure.

Must be reimplemented by subclasses. The data are marked as valid or invalid.

Parameters
[in,out]parserThe parser of an AVC stream.
[in]paramsAdditional parameters. May be needed by some structures.
Returns
The valid flag.

Implements ts::AbstractVideoStructure.

◆ display()

virtual std::ostream& ts::AVCHRDParameters::display ( std::ostream &  stream,
const UString margin = UString(),
int  level = Severity::Info 
) const
overridevirtual

Display the content of this object to a stream.

Parameters
[in,out]streamThe stream where to print the content. Standard output by default.
[in]marginThe prefix string on each line, empty by default.
[in]levelSeverity level (for instance, Severity::Info or Severity::Debug may display more information).
Returns
A reference to stream.

Implements ts::DisplayInterface.

◆ disp() [1/2]

template<typename INT , typename std::enable_if< std::is_integral< INT >::value >::type * = nullptr>
void ts::AbstractVideoData::disp ( std::ostream &  out,
const UString margin,
const UChar name,
INT  n 
) const
inlineprotectedinherited

Display helper for subclasses.

Display an integer value.

Template Parameters
INTAn integer type.
Parameters
[in,out]outThe stream where to print the content.
[in]marginThe prefix string on each line.
[in]nameA name to display for the value.
[in]nThe integer value to display.

◆ disp() [2/2]

template<typename INT , typename std::enable_if< std::is_integral< INT >::value >::type * = nullptr>
void ts::AbstractVideoData::disp ( std::ostream &  out,
const UString margin,
const UChar name,
std::vector< INT n 
) const
inlineprotectedinherited

Display helper for subclasses.

Display a vector of integer value.

Template Parameters
INTAn integer type.
Parameters
[in,out]outThe stream where to print the content.
[in]marginThe prefix string on each line.
[in]nameA name to display for the value.
[in]nThe integer values to display.

Member Data Documentation

◆ valid

bool ts::AbstractVideoData::valid
inherited

Valid flag.

Other fields are significant only if valid is true.


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