avcpp
2.0
Wrapper for the FFmpeg that simplify usage from C++ projects.
|
#include <frame.h>
Public Member Functions | |
VideoFrame ()=default | |
VideoFrame (PixelFormat pixelFormat, int width, int height, int align=1) | |
VideoFrame (const uint8_t *data, size_t size, PixelFormat pixelFormat, int width, int height, int align=1) | |
VideoFrame (const VideoFrame &other) | |
VideoFrame (VideoFrame &&other) | |
VideoFrame & | operator= (const VideoFrame &rhs) |
VideoFrame & | operator= (VideoFrame &&rhs) |
PixelFormat | pixelFormat () const |
int | width () const |
int | height () const |
bool | isKeyFrame () const |
void | setKeyFrame (bool isKey) |
int | quality () const |
void | setQuality (int quality) |
AVPictureType | pictureType () const |
void | setPictureType (AVPictureType type=AV_PICTURE_TYPE_NONE) |
Rational | sampleAspectRatio () const |
void | setSampleAspectRatio (const Rational &sampleAspectRatio) |
size_t | bufferSize (int align=1, OptionalErrorCode ec=throws()) const |
bool | copyToBuffer (uint8_t *dst, size_t size, int align=1, OptionalErrorCode ec=throws()) |
bool | copyToBuffer (std::vector< uint8_t > &dst, int align=1, OptionalErrorCode ec=throws()) |
Public Member Functions inherited from av::Frame< VideoFrame > | |
Frame () | |
Frame (const AVFrame *frame) | |
Frame (const VideoFrame &other) | |
Frame (VideoFrame &&other) | |
~Frame () | |
void | operator= (const Frame &)=delete |
void | swap (Frame &other) |
void | copyInfoFrom (const VideoFrame &other) |
bool | isReferenced () const |
int | refCount () const |
AVFrame * | makeRef () const |
VideoFrame | clone (size_t align=1) const |
Timestamp | pts () const |
attribute_deprecated void | setPts (int64_t pts, Rational ptsTimeBase) |
void | setPts (const Timestamp &ts) |
const Rational & | timeBase () 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 |
Additional Inherited Members | |
Static Public Member Functions inherited from av::Frame< VideoFrame > | |
static VideoFrame | null () |
Protected Member Functions inherited from av::Frame< VideoFrame > | |
VideoFrame & | assignOperator (const VideoFrame &rhs) |
VideoFrame & | moveOperator (VideoFrame &&rhs) |
Protected Attributes inherited from av::Frame< VideoFrame > | |
Rational | m_timeBase |
int | m_streamIndex |
bool | m_isComplete |
Protected Attributes inherited from FFWrapperPtr< AVFrame > | |
AVFrame * | m_raw |
|
default |
av::VideoFrame::VideoFrame | ( | PixelFormat | pixelFormat, |
int | width, | ||
int | height, | ||
int | align = 1 |
||
) |
av::VideoFrame::VideoFrame | ( | const uint8_t * | data, |
size_t | size, | ||
PixelFormat | pixelFormat, | ||
int | width, | ||
int | height, | ||
int | align = 1 |
||
) |
av::VideoFrame::VideoFrame | ( | const VideoFrame & | other | ) |
av::VideoFrame::VideoFrame | ( | VideoFrame && | other | ) |
size_t av::VideoFrame::bufferSize | ( | int | align = 1 , |
OptionalErrorCode | ec = throws() |
||
) | const |
bool av::VideoFrame::copyToBuffer | ( | std::vector< uint8_t > & | dst, |
int | align = 1 , |
||
OptionalErrorCode | ec = throws() |
||
) |
bool av::VideoFrame::copyToBuffer | ( | uint8_t * | dst, |
size_t | size, | ||
int | align = 1 , |
||
OptionalErrorCode | ec = throws() |
||
) |
int av::VideoFrame::height | ( | ) | const |
bool av::VideoFrame::isKeyFrame | ( | ) | const |
VideoFrame & av::VideoFrame::operator= | ( | const VideoFrame & | rhs | ) |
VideoFrame & av::VideoFrame::operator= | ( | VideoFrame && | rhs | ) |
AVPictureType av::VideoFrame::pictureType | ( | ) | const |
PixelFormat av::VideoFrame::pixelFormat | ( | ) | const |
int av::VideoFrame::quality | ( | ) | const |
Rational av::VideoFrame::sampleAspectRatio | ( | ) | const |
void av::VideoFrame::setKeyFrame | ( | bool | isKey | ) |
void av::VideoFrame::setPictureType | ( | AVPictureType | type = AV_PICTURE_TYPE_NONE | ) |
void av::VideoFrame::setQuality | ( | int | quality | ) |
void av::VideoFrame::setSampleAspectRatio | ( | const Rational & | sampleAspectRatio | ) |
int av::VideoFrame::width | ( | ) | const |