Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
FFmpegExtraData Class Reference

#include <FFmpeg.h>

Public Member Functions

 FFmpegExtraData ()=default
 
 FFmpegExtraData (size_t size)
 
 FFmpegExtraData (const uint8_t *data, size_t size)
 
 FFmpegExtraData (const FFmpegExtraData &other)
 
 FFmpegExtraData (FFmpegExtraData &&other) noexcept
 
 ~FFmpegExtraData ()
 
FFmpegExtraDataoperator= (const FFmpegExtraData &other)
 
FFmpegExtraDataoperator= (FFmpegExtraData &&other) noexcept
 
bool operator== (const FFmpegExtraData &other) const
 
bool operator!= (const FFmpegExtraData &other) const
 
 operator bool () const
 
uint8_tGetData ()
 
const uint8_tGetData () const
 
size_t GetSize () const
 
uint8_tTakeData ()
 Take ownership over the extra data buffer.
 

Constructor & Destructor Documentation

◆ FFmpegExtraData() [1/5]

FFmpegExtraData::FFmpegExtraData ( )
default

◆ FFmpegExtraData() [2/5]

FFmpegExtraData::FFmpegExtraData ( size_t size)
explicit

◆ FFmpegExtraData() [3/5]

FFmpegExtraData::FFmpegExtraData ( const uint8_t * data,
size_t size )

◆ FFmpegExtraData() [4/5]

FFmpegExtraData::FFmpegExtraData ( const FFmpegExtraData & other)

◆ FFmpegExtraData() [5/5]

FFmpegExtraData::FFmpegExtraData ( FFmpegExtraData && other)
noexcept

◆ ~FFmpegExtraData()

FFmpegExtraData::~FFmpegExtraData ( )

Member Function Documentation

◆ GetData() [1/2]

uint8_t * FFmpegExtraData::GetData ( )
inline

◆ GetData() [2/2]

const uint8_t * FFmpegExtraData::GetData ( ) const
inline

◆ GetSize()

size_t FFmpegExtraData::GetSize ( ) const
inline

◆ operator bool()

FFmpegExtraData::operator bool ( ) const
inline

◆ operator!=()

bool FFmpegExtraData::operator!= ( const FFmpegExtraData & other) const

◆ operator=() [1/2]

FFmpegExtraData & FFmpegExtraData::operator= ( const FFmpegExtraData & other)

◆ operator=() [2/2]

FFmpegExtraData & FFmpegExtraData::operator= ( FFmpegExtraData && other)
noexcept

◆ operator==()

bool FFmpegExtraData::operator== ( const FFmpegExtraData & other) const

◆ TakeData()

uint8_t * FFmpegExtraData::TakeData ( )

Take ownership over the extra data buffer.

It's in the responsibility of the caller to free the buffer with av_free. After the call FFmpegExtraData is empty.

Returns
The extra data buffer or nullptr if FFmpegExtraData is empty.

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