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

#include <frame.h>

Inheritance diagram for av::Frame< T >:
Inheritance graph
[legend]
Collaboration diagram for av::Frame< T >:
Collaboration graph
[legend]

Public Member Functions

 Frame ()
 
 ~Frame ()
 
 Frame (const AVFrame *frame)
 
 Frame (const T &other)
 
 Frame (T &&other)
 
void operator= (const Frame &)=delete
 
void swap (Frame &other)
 
void copyInfoFrom (const T &other)
 
bool isReferenced () const
 
int refCount () const
 
AVFrame * makeRef () const
 
clone (size_t align=1) const
 
Timestamp pts () const
 
attribute_deprecated void setPts (int64_t pts, Rational ptsTimeBase)
 
void setPts (const Timestamp &ts)
 
const RationaltimeBase () const
 
void setTimeBase (const Rational &value)
 
int streamIndex () const
 
void setStreamIndex (int streamIndex)
 
void setComplete (bool isComplete)
 
bool isComplete () const
 
bool isValid () const
 
 operator bool () const
 
uint8_t * data (size_t plane=0)
 
const uint8_t * data (size_t plane=0) const
 
size_t size (size_t plane) const
 
size_t size () const
 
void dump () const
 
- Public Member Functions inherited from FFWrapperPtr< AVFrame >
 FFWrapperPtr ()=default
 
 FFWrapperPtr (AVFrame *raw)
 
const AVFrame * raw () const
 
AVFrame * raw ()
 
void reset (AVFrame *raw=nullptr)
 
bool isNull () const
 
void _log (int level, const char *fmt) const
 
void _log (int level, const char *fmt, const Args &... args) const
 

Static Public Member Functions

static T null ()
 

Protected Member Functions

T & assignOperator (const T &rhs)
 
T & moveOperator (T &&rhs)
 

Protected Attributes

Rational m_timeBase {}
 
int m_streamIndex {-1}
 
bool m_isComplete {false}
 
- Protected Attributes inherited from FFWrapperPtr< AVFrame >
AVFrame * m_raw
 

Constructor & Destructor Documentation

◆ Frame() [1/4]

template<typename T >
av::Frame< T >::Frame ( )
inline

◆ ~Frame()

template<typename T >
av::Frame< T >::~Frame ( )
inline

◆ Frame() [2/4]

template<typename T >
av::Frame< T >::Frame ( const AVFrame< T > *  frame)
inline

◆ Frame() [3/4]

template<typename T >
av::Frame< T >::Frame ( const T &  other)
inline

◆ Frame() [4/4]

template<typename T >
av::Frame< T >::Frame ( T &&  other)
inline

Member Function Documentation

◆ assignOperator()

template<typename T >
T& av::Frame< T >::assignOperator ( const T &  rhs)
inlineprotected

◆ clone()

template<typename T >
T av::Frame< T >::clone ( size_t  align = 1) const
inline

◆ copyInfoFrom()

template<typename T >
void av::Frame< T >::copyInfoFrom ( const T &  other)
inline

◆ data() [1/2]

template<typename T >
uint8_t* av::Frame< T >::data ( size_t  plane = 0)
inline

◆ data() [2/2]

template<typename T >
const uint8_t* av::Frame< T >::data ( size_t  plane = 0) const
inline

◆ dump()

template<typename T >
void av::Frame< T >::dump ( ) const
inline

◆ isComplete()

template<typename T >
bool av::Frame< T >::isComplete ( ) const
inline

◆ isReferenced()

template<typename T >
bool av::Frame< T >::isReferenced ( ) const
inline

◆ isValid()

template<typename T >
bool av::Frame< T >::isValid ( ) const
inline

◆ makeRef()

template<typename T >
AVFrame* av::Frame< T >::makeRef ( ) const
inline

◆ moveOperator()

template<typename T >
T& av::Frame< T >::moveOperator ( T &&  rhs)
inlineprotected

◆ null()

template<typename T >
static T av::Frame< T >::null ( )
inlinestatic

◆ operator bool()

template<typename T >
av::Frame< T >::operator bool ( ) const
inline

◆ operator=()

template<typename T >
void av::Frame< T >::operator= ( const Frame< T > &  )
delete

◆ pts()

template<typename T >
Timestamp av::Frame< T >::pts ( ) const
inline

◆ refCount()

template<typename T >
int av::Frame< T >::refCount ( ) const
inline

◆ setComplete()

template<typename T >
void av::Frame< T >::setComplete ( bool  isComplete)
inline

◆ setPts() [1/2]

template<typename T >
void av::Frame< T >::setPts ( const Timestamp ts)
inline

◆ setPts() [2/2]

template<typename T >
attribute_deprecated void av::Frame< T >::setPts ( int64_t  pts,
Rational  ptsTimeBase 
)
inline

◆ setStreamIndex()

template<typename T >
void av::Frame< T >::setStreamIndex ( int  streamIndex)
inline

◆ setTimeBase()

template<typename T >
void av::Frame< T >::setTimeBase ( const Rational value)
inline

◆ size() [1/2]

template<typename T >
size_t av::Frame< T >::size ( ) const
inline

◆ size() [2/2]

template<typename T >
size_t av::Frame< T >::size ( size_t  plane) const
inline

◆ streamIndex()

template<typename T >
int av::Frame< T >::streamIndex ( ) const
inline

◆ swap()

template<typename T >
void av::Frame< T >::swap ( Frame< T > &  other)
inline

◆ timeBase()

template<typename T >
const Rational& av::Frame< T >::timeBase ( ) const
inline

Member Data Documentation

◆ m_isComplete

template<typename T >
bool av::Frame< T >::m_isComplete {false}
protected

◆ m_streamIndex

template<typename T >
int av::Frame< T >::m_streamIndex {-1}
protected

◆ m_timeBase

template<typename T >
Rational av::Frame< T >::m_timeBase {}
protected

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