TSDuck Version 3.16-1064 (TSDuck - The MPEG Transport Stream Toolkit)
ts::AbstractAudioVideoAttributes Class Referenceabstract

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

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

Public Member Functions

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

Protected Attributes

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

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 void *  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::AVCAttributes, ts::VideoAttributes, ts::AC3Attributes, and ts::AudioAttributes.

◆ toString()

virtual UString ts::StringifyInterface::toString ( ) const
pure virtualinherited

Member Data Documentation

◆ _is_valid

bool ts::AbstractAudioVideoAttributes::_is_valid
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: