HEVC HRD (Hypothetical Reference Decoder) parameters.
More...
#include <tsHEVCHRDParameters.h>
|
class | CPBParams |
| CPB parameter set in sub-layer HRD (Hypothetical Reference Decoder) parameters. More...
|
|
class | SubLayerParams |
| Sub-layer HRD (Hypothetical Reference Decoder) parameters. More...
|
|
|
| HEVCHRDParameters (const uint8_t *data=nullptr, size_t size=0, bool commonInfPresentFlag=false, size_t maxNumSubLayersMinus1=0) |
| Constructor from a binary area.
|
|
virtual void | clear () override |
| Clear all values.
|
|
virtual std::ostream & | display (std::ostream &=std::cout, const UString &margin=UString(), int level=Severity::Info) const override |
| Display the content of this object to a stream.
|
|
virtual bool | parse (AVCParser &, std::initializer_list< uint32_t >=std::initializer_list< uint32_t >()) override |
| Parse the structure.
|
|
virtual bool | parse (const uint8_t *, size_t, std::initializer_list< uint32_t >=std::initializer_list< uint32_t >()) override |
| Parse a memory area containing binary video data of the expected type.
|
|
|
uint8_t | au_cpb_removal_delay_length_minus1 = 0 |
| au_cpb_removal_delay_length_minus1
|
|
uint8_t | bit_rate_scale = 0 |
| bit_rate_scale
|
|
bool | common_inf_present_flag = false |
| from parent structure
|
|
uint8_t | cpb_size_du_scale = 0 |
| cpb_size_du_scale
|
|
uint8_t | cpb_size_scale = 0 |
| cpb_size_scale
|
|
uint8_t | dpb_output_delay_du_length_minus1 = 0 |
| dpb_output_delay_du_length_minus1
|
|
uint8_t | dpb_output_delay_length_minus1 = 0 |
| dpb_output_delay_length_minus1
|
|
uint8_t | du_cpb_removal_delay_increment_length_minus1 = 0 |
| du_cpb_removal_delay_increment_length_minus1
|
|
uint8_t | initial_cpb_removal_delay_length_minus1 = 0 |
| initial_cpb_removal_delay_length_minus1
|
|
uint8_t | nal_hrd_parameters_present_flag = 0 |
| nal_hrd_parameters_present_flag
|
|
std::vector< SubLayerParams > | sub_layers {} |
| Per-sub-layer parameters.
|
|
uint8_t | sub_pic_cpb_params_in_pic_timing_sei_flag = 0 |
| uint8_t sub_pic_cpb_params_in_pic_timing_sei_flag
|
|
uint8_t | sub_pic_hrd_params_present_flag = 0 |
| sub_pic_hrd_params_present_flag
|
|
uint8_t | tick_divisor_minus2 = 0 |
| tick_divisor_minus2
|
|
bool | valid = false |
| Valid flag.
|
|
uint8_t | vcl_hrd_parameters_present_flag = 0 |
| vcl_hrd_parameters_present_flag
|
|
|
template<typename INT >
requires std::integral<INT> |
void | disp (std::ostream &out, const UString &margin, const UChar *name, INT n) const |
| Display helper for subclasses.
|
|
template<typename INT >
requires std::integral<INT> |
void | disp (std::ostream &out, const UString &margin, const UChar *name, std::vector< INT > n) const |
| Display helper for subclasses.
|
|
HEVC HRD (Hypothetical Reference Decoder) parameters.
- See also
- ITU-T Rec. H.265, E.2.2
◆ HEVCHRDParameters()
ts::HEVCHRDParameters::HEVCHRDParameters |
( |
const uint8_t * |
data = nullptr , |
|
|
size_t |
size = 0 , |
|
|
bool |
commonInfPresentFlag = false , |
|
|
size_t |
maxNumSubLayersMinus1 = 0 |
|
) |
| |
Constructor from a binary area.
Note: the two parameters commonInfPresentFlag and maxNumSubLayersMinus1 must be passed in the initializer list of the parse() methods.
- Parameters
-
[in] | data | Address of binary data to analyze. |
[in] | size | Size in bytes of binary data to analyze. |
[in] | commonInfPresentFlag | HRD common info present (depends on parent structure). |
[in] | maxNumSubLayersMinus1 | Number of sub-layers minus 1 (depends on parent structure). |
◆ clear()
virtual void ts::HEVCHRDParameters::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::HEVCHRDParameters::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] | addr | Address of the binary data to parse. |
[in] | size | Size in bytes of the binary data to parse. |
[in] | params | Additional parameters. May be needed by some structures. |
- Returns
- The valid flag.
Reimplemented from ts::AbstractVideoStructure.
◆ parse() [2/2]
virtual bool ts::HEVCHRDParameters::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] | parser | The parser of an AVC stream. |
[in] | params | Additional parameters. May be needed by some structures. |
- Returns
- The valid flag.
Implements ts::AbstractVideoStructure.
◆ display()
virtual std::ostream & ts::HEVCHRDParameters::display |
( |
std::ostream & |
stream = std::cout , |
|
|
const UString & |
margin = UString() , |
|
|
int |
level = Severity::Info |
|
) |
| const |
|
overridevirtual |
Display the content of this object to a stream.
- Parameters
-
[in,out] | stream | The stream where to print the content. Standard output by default. |
[in] | margin | The prefix string on each line, empty by default. |
[in] | level | Severity 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 >
requires std::integral<
INT>
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
-
- Parameters
-
[in,out] | out | The stream where to print the content. |
[in] | margin | The prefix string on each line. |
[in] | name | A name to display for the value. |
[in] | n | The integer value to display. |
◆ disp() [2/2]
template<typename
INT >
requires std::integral<
INT>
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
-
- Parameters
-
[in,out] | out | The stream where to print the content. |
[in] | margin | The prefix string on each line. |
[in] | name | A name to display for the value. |
[in] | n | The integer values to display. |
◆ valid
bool ts::AbstractVideoData::valid = false |
|
inherited |
Valid flag.
Other fields are significant only if valid is true.
The documentation for this class was generated from the following file: