MythTV
master
|
C++ wrapper for AVBufferRef. More...
#include <mythavutil.h>
Public Member Functions | |
MythAVBufferRef (AVBufferRef *buf) | |
~MythAVBufferRef () | |
bool | has_buffer () |
const uint8_t * | data () |
size_t | size () |
Private Attributes | |
AVBufferRef * | m_buffer {nullptr} |
C++ wrapper for AVBufferRef.
Using this avoids littering the code with manual memory management.
You must verify that the instance has_buffer() before calling any other function.
Definition at line 121 of file mythavutil.h.
|
inlineexplicit |
buf | The AVBufferRef* to reference, must be non-NULL. |
Definition at line 126 of file mythavutil.h.
|
inline |
Definition at line 133 of file mythavutil.h.
|
inline |
Definition at line 141 of file mythavutil.h.
|
inline |
Definition at line 143 of file mythavutil.h.
|
inline |
Definition at line 144 of file mythavutil.h.
|
private |
Definition at line 146 of file mythavutil.h.