TSDuck v3.40-4033
MPEG Transport Stream Toolkit
|
AVC VUI (Video Usability Information) parameters. More...
#include <tsAVCVUIParameters.h>
Public Types | |
using | SuperClass = AbstractVideoStructure |
Reference to the superclass. | |
Public Member Functions | |
AVCVUIParameters (const uint8_t *data=nullptr, size_t size=0) | |
Constructor from a binary area. | |
virtual void | clear () override |
Clear all values. | |
virtual std::ostream & | display (std::ostream &strm=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 &parser, std::initializer_list< uint32_t >=std::initializer_list< uint32_t >()) override |
Parse the structure. | |
virtual bool | parse (const uint8_t *data, size_t size, std::initializer_list< uint32_t >=std::initializer_list< uint32_t >()) override |
Parse a memory area containing binary video data of the expected type. | |
Public Attributes | |
uint8_t | aspect_ratio_idc = 0 |
aspect_ratio_idc | |
uint8_t | aspect_ratio_info_present_flag = 0 |
aspect_ratio_info_present_flag | |
uint8_t | bitstream_restriction_flag = 0 |
bitstream_restriction_flag | |
uint8_t | chroma_loc_info_present_flag = 0 |
chroma_loc_info_present_flag | |
uint32_t | chroma_sample_loc_type_bottom_field = 0 |
chroma_sample_loc_type_bottom_field | |
uint32_t | chroma_sample_loc_type_top_field = 0 |
chroma_sample_loc_type_top_field | |
uint8_t | colour_description_present_flag = 0 |
colour_description_present_flag | |
uint8_t | colour_primaries = 0 |
colour_primaries | |
uint8_t | fixed_frame_rate_flag = 0 |
fixed_frame_rate_flag | |
uint32_t | log2_max_mv_length_horizontal = 0 |
log2_max_mv_length_horizontal | |
uint32_t | log2_max_mv_length_vertical = 0 |
log2_max_mv_length_vertical | |
uint8_t | low_delay_hrd_flag = 0 |
low_delay_hrd_flag | |
uint8_t | matrix_coefficients = 0 |
matrix_coefficients | |
uint32_t | max_bits_per_mb_denom = 0 |
max_bits_per_mb_denom | |
uint32_t | max_bytes_per_pic_denom = 0 |
max_bytes_per_pic_denom | |
uint32_t | max_dec_frame_buffering = 0 |
max_dec_frame_buffering | |
uint8_t | motion_vectors_over_pic_boundaries_flag = 0 |
motion_vectors_over_pic_boundaries_flag | |
AVCHRDParameters | nal_hrd {} |
nal_hrd | |
uint8_t | nal_hrd_parameters_present_flag = 0 |
nal_hrd_parameters_present_flag | |
uint32_t | num_reorder_frames = 0 |
num_reorder_frames | |
uint32_t | num_units_in_tick = 0 |
num_units_in_tick | |
uint8_t | overscan_appropriate_flag = 0 |
overscan_appropriate_flag | |
uint8_t | overscan_info_present_flag = 0 |
overscan_info_present_flag | |
uint8_t | pic_struct_present_flag = 0 |
pic_struct_present_flag | |
uint16_t | sar_height = 0 |
sar_height | |
uint16_t | sar_width = 0 |
sar_width | |
uint32_t | time_scale = 0 |
time_scale | |
uint8_t | timing_info_present_flag = 0 |
timing_info_present_flag | |
uint8_t | transfer_characteristics = 0 |
transfer_characteristics | |
bool | valid = false |
Valid flag. | |
AVCHRDParameters | vcl_hrd {} |
vcl_hrd | |
uint8_t | vcl_hrd_parameters_present_flag = 0 |
vcl_hrd_parameters_present_flag | |
uint8_t | video_format = 0 |
video_format | |
uint8_t | video_full_range_flag = 0 |
video_full_range_flag | |
uint8_t | video_signal_type_present_flag = 0 |
video_signal_type_present_flag | |
Protected Member Functions | |
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. | |
AVC VUI (Video Usability Information) parameters.
AVC is Advanced Video Coding, ISO 14496-10, ITU H.264.
ts::AVCVUIParameters::AVCVUIParameters | ( | const uint8_t * | data = nullptr , |
size_t | size = 0 |
||
) |
Constructor from a binary area.
[in] | data | Address of binary data to analyze. |
[in] | size | Size in bytes of binary data to analyze. |
|
overridevirtual |
Clear all values.
Should be reimplemented by subclasses. The data are marked invalid.
Reimplemented from ts::AbstractVideoData.
|
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.
[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. |
Reimplemented from ts::AbstractVideoStructure.
|
overridevirtual |
Parse the structure.
Must be reimplemented by subclasses. The data are marked as valid or invalid.
[in,out] | parser | The parser of an AVC stream. |
[in] | params | Additional parameters. May be needed by some structures. |
Implements ts::AbstractVideoStructure.
|
overridevirtual |
Display the content of this object to a stream.
[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). |
Implements ts::DisplayInterface.
|
inlineprotectedinherited |
Display helper for subclasses.
Display an integer value.
INT | An integer type. |
[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. |
|
inlineprotectedinherited |
Display helper for subclasses.
Display a vector of integer value.
INT | An integer type. |
[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. |
|
inherited |
Valid flag.
Other fields are significant only if valid is true.