MythTV  master
Public Member Functions | Private Attributes | List of all members
MythAVFrame Class Reference

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
 
AVFrameoperator-> () const
 
AVFrameoperator* () const
 
 operator AVFrame * () const
 
 operator const AVFrame * () const
 

Private Attributes

AVFramem_frame {nullptr}
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ MythAVFrame()

MythAVFrame::MythAVFrame ( void  )
inline

Definition at line 55 of file mythaverror.h.

◆ ~MythAVFrame()

MythAVFrame::~MythAVFrame ( void  )
inline

Definition at line 56 of file mythaverror.h.

Member Function Documentation

◆ operator!()

bool MythAVFrame::operator! ( ) const
inline

Definition at line 60 of file mythaverror.h.

◆ operator->()

AVFrame* MythAVFrame::operator-> ( ) const
inline

Definition at line 64 of file mythaverror.h.

◆ operator*()

AVFrame& MythAVFrame::operator* ( ) const
inline

Definition at line 68 of file mythaverror.h.

◆ operator AVFrame *()

MythAVFrame::operator AVFrame * ( ) const
inline

Definition at line 72 of file mythaverror.h.

◆ operator const AVFrame *()

MythAVFrame::operator const AVFrame * ( ) const
inline

Definition at line 76 of file mythaverror.h.

Member Data Documentation

◆ m_frame

AVFrame* MythAVFrame::m_frame {nullptr}
private

Definition at line 82 of file mythaverror.h.


The documentation for this class was generated from the following file: