MythTV
master
|
C++ wrapper for AVBufferRef. More...
#include <libmythtv/mythavutil.h>
Public Member Functions | |
MythAVBufferRef (const AVBufferRef *buf=nullptr) | |
~MythAVBufferRef () | |
MythAVBufferRef (const MythAVBufferRef &other) | |
MythAVBufferRef (MythAVBufferRef &&other) noexcept | |
MythAVBufferRef & | operator= (MythAVBufferRef other) |
MythAVBufferRef & | operator= (MythAVBufferRef &&other) noexcept |
bool | has_buffer () |
const uint8_t * | data () |
size_t | size () |
Private Member Functions | |
void | unref () |
Static Private Member Functions | |
static AVBufferRef * | ref (const AVBufferRef *buf) |
Private Attributes | |
AVBufferRef * | m_buffer {nullptr} |
Friends | |
void | swap (MythAVBufferRef &a, MythAVBufferRef &b) noexcept |
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 115 of file mythavutil.h.
|
inlineexplicit |
buf | The AVBufferRef* to reference, may be NULL. |
Definition at line 120 of file mythavutil.h.
|
inline |
Definition at line 121 of file mythavutil.h.
|
inline |
Definition at line 124 of file mythavutil.h.
|
inlinenoexcept |
Definition at line 126 of file mythavutil.h.
|
inline |
Definition at line 128 of file mythavutil.h.
|
inlinenoexcept |
Definition at line 134 of file mythavutil.h.
|
inline |
Definition at line 148 of file mythavutil.h.
|
inline |
Definition at line 150 of file mythavutil.h.
|
inline |
Definition at line 151 of file mythavutil.h.
|
inlinestaticprivate |
Definition at line 153 of file mythavutil.h.
|
inlineprivate |
Definition at line 166 of file mythavutil.h.
|
friend |
Definition at line 142 of file mythavutil.h.
|
private |
Definition at line 168 of file mythavutil.h.