avcpp  2.0
Wrapper for the FFmpeg that simplify usage from C++ projects.
Classes | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
av::FrameCommon Class Reference

#include <frame.h>

Inheritance diagram for av::FrameCommon:
Inheritance graph
[legend]
Collaboration diagram for av::FrameCommon:
Collaboration graph
[legend]

Classes

struct  wrap_data
 Wrap data and take owning. More...
 
struct  wrap_data_static
 Wrap static data, do not owning and free. More...
 

Public Member Functions

 FrameCommon ()
 
 FrameCommon (const AVFrame *frame)
 
 FrameCommon (const FrameCommon &other)
 
 FrameCommon (FrameCommon &&other)
 
 ~FrameCommon ()
 
bool isReferenced () const
 
int refCount () const
 
AVFrame * makeRef () 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
 
void operator= (const FrameCommon &)=delete
 
void swap (FrameCommon &other)
 
- 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
 

Protected Member Functions

void copyInfoFrom (const FrameCommon &other)
 
void clone (FrameCommon &dst, size_t align=1) const
 

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

◆ FrameCommon() [1/4]

av::FrameCommon::FrameCommon ( )

◆ FrameCommon() [2/4]

av::FrameCommon::FrameCommon ( const AVFrame *  frame)

◆ FrameCommon() [3/4]

av::FrameCommon::FrameCommon ( const FrameCommon other)

◆ FrameCommon() [4/4]

av::FrameCommon::FrameCommon ( FrameCommon &&  other)

◆ ~FrameCommon()

av::FrameCommon::~FrameCommon ( )

Member Function Documentation

◆ clone()

void av::FrameCommon::clone ( FrameCommon dst,
size_t  align = 1 
) const
protected

◆ copyInfoFrom()

void av::FrameCommon::copyInfoFrom ( const FrameCommon other)
protected

◆ data() [1/2]

uint8_t * av::FrameCommon::data ( size_t  plane = 0)

◆ data() [2/2]

const uint8_t * av::FrameCommon::data ( size_t  plane = 0) const

◆ dump()

void av::FrameCommon::dump ( ) const

◆ isComplete()

bool av::FrameCommon::isComplete ( ) const

◆ isReferenced()

bool av::FrameCommon::isReferenced ( ) const

◆ isValid()

bool av::FrameCommon::isValid ( ) const

◆ makeRef()

AVFrame * av::FrameCommon::makeRef ( ) const

◆ operator bool()

av::FrameCommon::operator bool ( ) const

◆ operator=()

void av::FrameCommon::operator= ( const FrameCommon )
delete

◆ pts()

Timestamp av::FrameCommon::pts ( ) const

◆ refCount()

int av::FrameCommon::refCount ( ) const

◆ setComplete()

void av::FrameCommon::setComplete ( bool  isComplete)

◆ setPts() [1/2]

void av::FrameCommon::setPts ( const Timestamp ts)

◆ setPts() [2/2]

void av::FrameCommon::setPts ( int64_t  pts,
Rational  ptsTimeBase 
)

◆ setStreamIndex()

void av::FrameCommon::setStreamIndex ( int  streamIndex)

◆ setTimeBase()

void av::FrameCommon::setTimeBase ( const Rational value)

◆ size() [1/2]

size_t av::FrameCommon::size ( ) const

◆ size() [2/2]

size_t av::FrameCommon::size ( size_t  plane) const

◆ streamIndex()

int av::FrameCommon::streamIndex ( ) const

◆ swap()

void av::FrameCommon::swap ( FrameCommon other)

◆ timeBase()

const Rational & av::FrameCommon::timeBase ( ) const

Member Data Documentation

◆ m_isComplete

bool av::FrameCommon::m_isComplete {false}
protected

◆ m_streamIndex

int av::FrameCommon::m_streamIndex {-1}
protected

◆ m_timeBase

Rational av::FrameCommon::m_timeBase {}
protected

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