avcpp  2.0
Wrapper for the FFmpeg that simplify usage from C++ projects.
Public Member Functions | Protected Attributes | List of all members
FFWrapperPtr< T > Struct Template Reference

#include <ffmpeg.h>

Inheritance diagram for FFWrapperPtr< T >:
Inheritance graph
[legend]

Public Member Functions

 FFWrapperPtr ()=default
 
 FFWrapperPtr (T *raw)
 
const T * raw () const
 
T * raw ()
 
void reset (T *raw=nullptr)
 
bool isNull () const
 
void _log (int level, const char *fmt) const
 
template<typename... Args>
void _log (int level, const char *fmt, const Args &... args) const
 

Protected Attributes

T * m_raw = nullptr
 

Constructor & Destructor Documentation

◆ FFWrapperPtr() [1/2]

template<typename T >
FFWrapperPtr< T >::FFWrapperPtr ( )
default

◆ FFWrapperPtr() [2/2]

template<typename T >
FFWrapperPtr< T >::FFWrapperPtr ( T *  raw)
inlineexplicit

Member Function Documentation

◆ _log() [1/2]

template<typename T >
void FFWrapperPtr< T >::_log ( int  level,
const char *  fmt 
) const
inline

◆ _log() [2/2]

template<typename T >
template<typename... Args>
void FFWrapperPtr< T >::_log ( int  level,
const char *  fmt,
const Args &...  args 
) const
inline

◆ isNull()

template<typename T >
bool FFWrapperPtr< T >::isNull ( ) const
inline

◆ raw() [1/2]

template<typename T >
T* FFWrapperPtr< T >::raw ( )
inline

◆ raw() [2/2]

template<typename T >
const T* FFWrapperPtr< T >::raw ( ) const
inline

◆ reset()

template<typename T >
void FFWrapperPtr< T >::reset ( T *  raw = nullptr)
inline

Member Data Documentation

◆ m_raw

template<typename T >
T* FFWrapperPtr< T >::m_raw = nullptr
protected

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