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

#include <tsAbstractAudioVideoAttributes.h>

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

Public Member Functions

 AbstractAudioVideoAttributes ()=default
void invalidate ()
bool isValid () const
virtual bool moreBinaryData (const uint8_t *addr, size_t size)=0
virtual UString toString () const =0

Protected Attributes

bool _is_valid = false

Detailed Description

Abstract base class for MPEG audio and video attributes

Constructor & Destructor Documentation

◆ AbstractAudioVideoAttributes()

ts::AbstractAudioVideoAttributes::AbstractAudioVideoAttributes ( )
default

Default constructor

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: