MythTV
master
|
C++ wrapper for AVBufferRef. More...
#include <libmythtv/mythavbufferref.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 18 of file mythavbufferref.h.
|
inlineexplicit |
buf | The AVBufferRef* to reference, may be NULL. |
Definition at line 23 of file mythavbufferref.h.
|
inline |
Definition at line 24 of file mythavbufferref.h.
|
inline |
Definition at line 27 of file mythavbufferref.h.
|
inlinenoexcept |
Definition at line 29 of file mythavbufferref.h.
|
inline |
Definition at line 31 of file mythavbufferref.h.
|
inlinenoexcept |
Definition at line 37 of file mythavbufferref.h.
|
inline |
Definition at line 51 of file mythavbufferref.h.
|
inline |
Definition at line 53 of file mythavbufferref.h.
|
inline |
Definition at line 54 of file mythavbufferref.h.
|
staticprivate |
Definition at line 5 of file mythavbufferref.cpp.
|
inlineprivate |
Definition at line 57 of file mythavbufferref.h.
Referenced by ~MythAVBufferRef().
|
friend |
Definition at line 45 of file mythavbufferref.h.
Referenced by MythAVBufferRef(), and operator=().
|
private |
Definition at line 59 of file mythavbufferref.h.
Referenced by data(), has_buffer(), size(), and unref().