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/mythaverror.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 52 of file mythaverror.h.
|
inline |
Definition at line 55 of file mythaverror.h.
|
inline |
Definition at line 56 of file mythaverror.h.
|
inline |
Definition at line 60 of file mythaverror.h.
|
inline |
Definition at line 64 of file mythaverror.h.
|
inline |
Definition at line 68 of file mythaverror.h.
|
inline |
Definition at line 72 of file mythaverror.h.
|
inline |
Definition at line 76 of file mythaverror.h.
|
private |
Definition at line 82 of file mythaverror.h.