kodi
Public Member Functions | List of all members
FFmpegExtraData Class Reference

Public Member Functions

 FFmpegExtraData (size_t size)
 
 FFmpegExtraData (const uint8_t *data, size_t size)
 
 FFmpegExtraData (const FFmpegExtraData &other)
 
 FFmpegExtraData (FFmpegExtraData &&other) noexcept
 
FFmpegExtraDataoperator= (const FFmpegExtraData &other)
 
FFmpegExtraDataoperator= (FFmpegExtraData &&other) noexcept
 
bool operator== (const FFmpegExtraData &other) const
 
bool operator!= (const FFmpegExtraData &other) const
 
 operator bool () const
 
uint8_t * GetData ()
 
const uint8_t * GetData () const
 
size_t GetSize () const
 
uint8_t * TakeData ()
 Take ownership over the extra data buffer. More...
 

Member Function Documentation

◆ 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: