Representation of a VVC access unit delimiter (AUD).
More...
#include <tsVVCAccessUnitDelimiter.h>
|
| VVCAccessUnitDelimiter (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 (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 | aud_irap_or_gdr_flag = 0 |
| IRAP or GDR, 1 bit.
|
|
uint8_t | aud_pic_type = 0 |
| Picture type, 3 bits.
|
|
uint8_t | forbidden_zero_bit = 0 |
| 1 bit
|
|
uint8_t | nal_unit_type = 0 |
| 5 bits
|
|
uint8_t | nuh_layer_id = 0 |
| 6 bits
|
|
uint8_t | nuh_reserved_zero_bit = 0 |
| 1 bit
|
|
uint8_t | nuh_temporal_id_plus1 = 0 |
| 3 bits
|
|
size_t | rbsp_trailing_bits_count = 0 |
| rbsp_trailing_bits_count
|
|
bool | rbsp_trailing_bits_valid = false |
| rbsp_trailing_bits_valid
|
|
bool | valid = false |
| Valid flag.
|
|
|
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.
|
|
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.
|
|
virtual bool | parseBody (AVCParser &parser, std::initializer_list< uint32_t >=std::initializer_list< uint32_t >()) override |
| Parse the body of the access unit up to but not including the rbsp_trailing_bits.
|
|
virtual bool | parseHeader (const uint8_t *&, size_t &, std::initializer_list< uint32_t >=std::initializer_list< uint32_t >()) override |
| Parse the header of the access unit.
|
|
Representation of a VVC access unit delimiter (AUD).
- See also
- ITU-T Rec. H.266, section 7.3.2.10 and 7.4.3.10
◆ VVCAccessUnitDelimiter()
ts::VVCAccessUnitDelimiter::VVCAccessUnitDelimiter |
( |
const uint8_t * |
data = nullptr , |
|
|
size_t |
size = 0 |
|
) |
| |
Constructor from a binary area.
- Parameters
-
[in] | data | Address of binary data to analyze. |
[in] | size | Size in bytes of binary data to analyze. |
◆ clear()
virtual void ts::VVCAccessUnitDelimiter::clear |
( |
| ) |
|
|
overridevirtual |
Clear all values.
Should be reimplemented by subclasses. The data are marked invalid.
Reimplemented from ts::AbstractVVCAccessUnit.
◆ display()
virtual std::ostream & ts::VVCAccessUnitDelimiter::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.
◆ parseBody()
virtual bool ts::VVCAccessUnitDelimiter::parseBody |
( |
AVCParser & |
parser, |
|
|
std::initializer_list< uint32_t > |
params = std::initializer_list< uint32_t >() |
|
) |
| |
|
overrideprotectedvirtual |
Parse the body of the access unit up to but not including the rbsp_trailing_bits.
Must be reimplemented by subclasses. The data are marked as valid or invalid.
- Parameters
-
[in,out] | parser | The parser of an AVC-like video stream. |
[in] | params | Additional parameters. May be needed by some structures. |
- Returns
- The valid flag.
Implements ts::AbstractVideoAccessUnit.
◆ parseHeader()
virtual bool ts::AbstractVVCAccessUnit::parseHeader |
( |
const uint8_t *& |
addr, |
|
|
size_t & |
size, |
|
|
std::initializer_list< uint32_t > |
params = std::initializer_list< uint32_t >() |
|
) |
| |
|
overrideprotectedvirtualinherited |
Parse the header of the access unit.
Must be reimplemented by subclasses. The data are marked as valid or invalid.
- Parameters
-
[in,out] | addr | Address of the binary data to parse. Adjusted after header. |
[in,out] | size | Size in bytes of the binary data to parse. Adjusted as remaining size after header. |
[in] | params | Additional parameters. May be needed by some structures. |
- Returns
- The valid flag.
Implements ts::AbstractVideoAccessUnit.
◆ parse()
virtual bool ts::AbstractVideoAccessUnit::parse |
( |
const uint8_t * |
addr, |
|
|
size_t |
size, |
|
|
std::initializer_list< uint32_t > |
params = std::initializer_list< uint32_t >() |
|
) |
| |
|
overridevirtualinherited |
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.
Implements ts::AbstractVideoData.
◆ 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
-
- 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 , 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
-
- 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: