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 <mythavutil.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
 

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 42 of file mythavutil.h.

Constructor & Destructor Documentation

◆ MythAVFrame()

MythAVFrame::MythAVFrame ( void  )
inline

Definition at line 45 of file mythavutil.h.

◆ ~MythAVFrame()

MythAVFrame::~MythAVFrame ( void  )
inline

Definition at line 49 of file mythavutil.h.

Member Function Documentation

◆ operator!()

bool MythAVFrame::operator! ( ) const
inline

Definition at line 53 of file mythavutil.h.

◆ operator->()

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

Definition at line 57 of file mythavutil.h.

◆ operator*()

AVFrame& MythAVFrame::operator* ( ) const
inline

Definition at line 61 of file mythavutil.h.

◆ operator AVFrame *()

MythAVFrame::operator AVFrame * ( ) const
inline

Definition at line 65 of file mythavutil.h.

◆ operator const AVFrame *()

MythAVFrame::operator const AVFrame * ( ) const
inline

Definition at line 69 of file mythavutil.h.

Member Data Documentation

◆ m_frame

AVFrame* MythAVFrame::m_frame
private

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