TSDuck v3.38-3691
MPEG Transport Stream Toolkit
Loading...
Searching...
No Matches
ts::AbstractAudioVideoAttributes Class Referenceabstract

Abstract base class for MPEG audio and video attributes. More...

#include <tsAbstractAudioVideoAttributes.h>

Inheritance diagram for ts::AbstractAudioVideoAttributes:
Collaboration diagram for ts::AbstractAudioVideoAttributes:

Public Member Functions

 AbstractAudioVideoAttributes ()=default
 Default constructor.
 
void invalidate ()
 Invalidate the content of this instance.
 
bool isValid () const
 Check if the values in the object are valid.
 
virtual bool moreBinaryData (const uint8_t *addr, size_t size)=0
 Provides an audio/video binary data to be analyzed by this instance.
 
virtual UString toString () const =0
 Convert to a string object.
 

Protected Attributes

bool _is_valid = false
 A flag which indicates if the content of this object is valid.
 

Detailed Description

Abstract base class for MPEG audio and video attributes.

Member Function Documentation

◆ isValid()

bool ts::AbstractAudioVideoAttributes::isValid ( ) const
inline

Check if the values in the object are valid.

Returns
True if the values in the object are valid.

◆ invalidate()

void ts::AbstractAudioVideoAttributes::invalidate ( )
inline

Invalidate the content of this instance.

It must be rebuilt using audio/video binary data.

◆ moreBinaryData()

virtual bool ts::AbstractAudioVideoAttributes::moreBinaryData ( const uint8_t *  addr,
size_t  size 
)
pure virtual

Provides an audio/video binary data to be analyzed by this instance.

The type of data (complete PES payload or some type of "frame" or "access unit") depends on the type of audio/video.

Parameters
[in]addrAddress of data to be analyzed.
[in]sizeSize of data to be analyzed.
Returns
True if the attributes object becomes valid or has new values.

Implemented in ts::AC3Attributes, ts::AVCAttributes, ts::HEVCAttributes, ts::MPEG2AudioAttributes, and ts::MPEG2VideoAttributes.

◆ toString()

Member Data Documentation

◆ _is_valid

bool ts::AbstractAudioVideoAttributes::_is_valid = false
protected

A flag which indicates if the content of this object is valid.

It is the responsibility of the subclasses to set it.


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