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

#include <videorescaler.h>

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

Public Member Functions

 VideoRescaler ()
 
 VideoRescaler (int dstWidth, int dstHeight, PixelFormat dstPixelFormat, int srcWidth, int srcHeight, PixelFormat srcPixelFormat, int32_t flags=SwsFlagAuto)
 
 VideoRescaler (int m_dstWidth, int m_dstHeight, PixelFormat m_dstPixelFormat, int32_t flags=SwsFlagAuto)
 
 VideoRescaler (const VideoRescaler &other)
 
 VideoRescaler (VideoRescaler &&other)
 
 ~VideoRescaler ()
 
VideoRescaleroperator= (const VideoRescaler &rhs)
 
VideoRescaleroperator= (VideoRescaler &&rhs)
 
int dstWidth () const
 
int dstHeight () const
 
PixelFormat dstPixelFormat ()
 
int srcWidth () const
 
int srcHeight () const
 
PixelFormat srcPixelFormat ()
 
int32_t flags () const
 
void rescale (VideoFrame &dst, const VideoFrame &src, OptionalErrorCode ec=throws())
 
VideoFrame rescale (const VideoFrame &src, OptionalErrorCode ec=throws())
 
bool isValid () const
 
- Public Member Functions inherited from FFWrapperPtr< SwsContext >
 FFWrapperPtr ()=default
 
 FFWrapperPtr (SwsContext *raw)
 
const SwsContext * raw () const
 
SwsContext * raw ()
 
void reset (SwsContext *raw=nullptr)
 
bool isNull () const
 
void _log (int level, const char *fmt) const
 
void _log (int level, const char *fmt, const Args &... args) const
 

Additional Inherited Members

- Protected Member Functions inherited from av::noncopyable
 noncopyable ()=default
 
 noncopyable (const noncopyable &)=delete
 
void operator= (const noncopyable &)=delete
 
- Protected Attributes inherited from FFWrapperPtr< SwsContext >
SwsContext * m_raw
 

Constructor & Destructor Documentation

◆ VideoRescaler() [1/5]

av::VideoRescaler::VideoRescaler ( )

◆ VideoRescaler() [2/5]

av::VideoRescaler::VideoRescaler ( int  dstWidth,
int  dstHeight,
PixelFormat  dstPixelFormat,
int  srcWidth,
int  srcHeight,
PixelFormat  srcPixelFormat,
int32_t  flags = SwsFlagAuto 
)

◆ VideoRescaler() [3/5]

av::VideoRescaler::VideoRescaler ( int  m_dstWidth,
int  m_dstHeight,
PixelFormat  m_dstPixelFormat,
int32_t  flags = SwsFlagAuto 
)

◆ VideoRescaler() [4/5]

av::VideoRescaler::VideoRescaler ( const VideoRescaler other)

◆ VideoRescaler() [5/5]

av::VideoRescaler::VideoRescaler ( VideoRescaler &&  other)

◆ ~VideoRescaler()

av::VideoRescaler::~VideoRescaler ( )

Member Function Documentation

◆ dstHeight()

int av::VideoRescaler::dstHeight ( ) const
inline

◆ dstPixelFormat()

PixelFormat av::VideoRescaler::dstPixelFormat ( )
inline

◆ dstWidth()

int av::VideoRescaler::dstWidth ( ) const
inline

◆ flags()

int32_t av::VideoRescaler::flags ( ) const
inline

◆ isValid()

bool av::VideoRescaler::isValid ( ) const

◆ operator=() [1/2]

VideoRescaler & av::VideoRescaler::operator= ( const VideoRescaler rhs)

◆ operator=() [2/2]

VideoRescaler & av::VideoRescaler::operator= ( VideoRescaler &&  rhs)

◆ rescale() [1/2]

VideoFrame av::VideoRescaler::rescale ( const VideoFrame src,
OptionalErrorCode  ec = throws() 
)

◆ rescale() [2/2]

void av::VideoRescaler::rescale ( VideoFrame dst,
const VideoFrame src,
OptionalErrorCode  ec = throws() 
)

◆ srcHeight()

int av::VideoRescaler::srcHeight ( ) const
inline

◆ srcPixelFormat()

PixelFormat av::VideoRescaler::srcPixelFormat ( )
inline

◆ srcWidth()

int av::VideoRescaler::srcWidth ( ) const
inline

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