MythTV
master
|
MythAVFrame little utility class that act as a safe way to allocate an AVFrame which can then be allocated on the heap. More...
#include <libmyth/mythavframe.h>
Public Member Functions | |
MythAVFrame (void) | |
~MythAVFrame (void) | |
bool | operator! () const |
AVFrame * | operator-> () const |
AVFrame & | operator* () const |
operator AVFrame * () const | |
operator const AVFrame * () const | |
Private Attributes | |
AVFrame * | m_frame {nullptr} |
MythAVFrame little utility class that act as a safe way to allocate an AVFrame which can then be allocated on the heap.
It simplifies the need to free the AVFrame once done with it. Example of usage: { MythAVFrame frame; if (!frame) { return false }
frame->width = 1080;
AVFrame *src = frame; }
Definition at line 26 of file mythavframe.h.
|
inline |
Definition at line 29 of file mythavframe.h.
|
inline |
Definition at line 30 of file mythavframe.h.
|
inline |
Definition at line 34 of file mythavframe.h.
|
inline |
Definition at line 38 of file mythavframe.h.
|
inline |
Definition at line 42 of file mythavframe.h.
|
inline |
Definition at line 46 of file mythavframe.h.
|
inline |
Definition at line 50 of file mythavframe.h.
|
private |
Definition at line 56 of file mythavframe.h.