avcpp
2.0
Wrapper for the FFmpeg that simplify usage from C++ projects.
|
#include <packet.h>
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 | |
Packet () | |
Packet (const Packet &packet, OptionalErrorCode ec) | |
Packet (const Packet &packet) | |
Packet (Packet &&packet) | |
Packet (const AVPacket *packet, OptionalErrorCode ec=throws()) | |
Packet (const std::vector< uint8_t > &data) | |
Packet (const uint8_t *data, size_t size, bool doAllign=true) | |
Packet (uint8_t *data, size_t size, wrap_data, OptionalErrorCode ec=throws()) | |
Packet (uint8_t *data, size_t size, wrap_data_static, OptionalErrorCode ec=throws()) | |
~Packet () | |
bool | setData (const std::vector< uint8_t > &newData, OptionalErrorCode ec=throws()) |
bool | setData (const uint8_t *newData, size_t size, OptionalErrorCode ec=throws()) |
const uint8_t * | data () const |
uint8_t * | data () |
Timestamp | pts () const |
Timestamp | dts () const |
Timestamp | ts () const |
size_t | size () const |
attribute_deprecated void | setPts (int64_t pts, const Rational &tsTimeBase=Rational(0, 0)) |
Set packet PTS field. More... | |
attribute_deprecated void | setDts (int64_t dts, const Rational &tsTimeBase=Rational(0, 0)) |
void | setPts (const Timestamp &pts) |
void | setDts (const Timestamp &dts) |
int | streamIndex () const |
bool | isKeyPacket () const |
int | duration () const |
bool | isComplete () const |
bool | isNull () const |
void | setStreamIndex (int idx) |
void | setKeyPacket (bool keyPacket) |
void | setDuration (int duration, const Rational &durationTimeBase=Rational(0, 0)) |
void | setComplete (bool complete) |
int | flags () const |
void | setFlags (int flags) |
void | addFlags (int flags) |
void | clearFlags (int flags) |
void | dump (const Stream &st, bool dumpPayload=false) const |
const Rational & | timeBase () const |
void | setTimeBase (const Rational &value) |
bool | isReferenced () const |
int | refCount () const |
AVPacket | makeRef (OptionalErrorCode ec=throws()) const |
Packet | clone (OptionalErrorCode ec=throws()) const |
Packet & | operator= (const Packet &rhs) |
Packet & | operator= (Packet &&rhs) |
Packet & | operator= (const AVPacket &rhs) |
void | swap (Packet &other) |
operator bool () const | |
Public Member Functions inherited from FFWrapperRef< AVPacket > | |
FFWrapperRef ()=default | |
FFWrapperRef (const AVPacket &raw) | |
const AVPacket * | raw () const |
AVPacket * | raw () |
void | reset (const AVPacket &raw=AVPacket()) |
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 Attributes inherited from FFWrapperRef< AVPacket > | |
AVPacket | m_raw |
av::Packet::Packet | ( | ) |
av::Packet::Packet | ( | const Packet & | packet, |
OptionalErrorCode | ec | ||
) |
av::Packet::Packet | ( | const Packet & | packet | ) |
av::Packet::Packet | ( | Packet && | packet | ) |
|
explicit |
|
explicit |
av::Packet::Packet | ( | const uint8_t * | data, |
size_t | size, | ||
bool | doAllign = true |
||
) |
av::Packet::Packet | ( | uint8_t * | data, |
size_t | size, | ||
Packet::wrap_data | , | ||
OptionalErrorCode | ec = throws() |
||
) |
av::Packet::Packet | ( | uint8_t * | data, |
size_t | size, | ||
Packet::wrap_data_static | , | ||
OptionalErrorCode | ec = throws() |
||
) |
av::Packet::~Packet | ( | ) |
void av::Packet::addFlags | ( | int | flags | ) |
void av::Packet::clearFlags | ( | int | flags | ) |
Packet av::Packet::clone | ( | OptionalErrorCode | ec = throws() | ) | const |
uint8_t* av::Packet::data | ( | ) |
uint8_t * av::Packet::data | ( | ) | const |
Timestamp av::Packet::dts | ( | ) | const |
void av::Packet::dump | ( | const Stream & | st, |
bool | dumpPayload = false |
||
) | const |
int av::Packet::duration | ( | ) | const |
int av::Packet::flags | ( | ) | const |
bool av::Packet::isComplete | ( | ) | const |
bool av::Packet::isKeyPacket | ( | ) | const |
bool av::Packet::isNull | ( | ) | const |
bool av::Packet::isReferenced | ( | ) | const |
AVPacket av::Packet::makeRef | ( | OptionalErrorCode | ec = throws() | ) | const |
|
inline |
Packet & av::Packet::operator= | ( | const AVPacket & | rhs | ) |
Timestamp av::Packet::pts | ( | ) | const |
int av::Packet::refCount | ( | ) | const |
void av::Packet::setComplete | ( | bool | complete | ) |
bool av::Packet::setData | ( | const std::vector< uint8_t > & | newData, |
OptionalErrorCode | ec = throws() |
||
) |
bool av::Packet::setData | ( | const uint8_t * | newData, |
size_t | size, | ||
OptionalErrorCode | ec = throws() |
||
) |
void av::Packet::setDts | ( | const Timestamp & | dts | ) |
void av::Packet::setFlags | ( | int | flags | ) |
void av::Packet::setKeyPacket | ( | bool | keyPacket | ) |
void av::Packet::setPts | ( | const Timestamp & | pts | ) |
Set packet PTS field.
pts | new presentation timestamp value |
tsTimeBase | is a time base of setted timestamp, can be omited or sets to Rational(0,0) that means that time base equal to packet time base. |
void av::Packet::setStreamIndex | ( | int | idx | ) |
void av::Packet::setTimeBase | ( | const Rational & | value | ) |
size_t av::Packet::size | ( | ) | const |
int av::Packet::streamIndex | ( | ) | const |
void av::Packet::swap | ( | Packet & | other | ) |
|
inline |
Timestamp av::Packet::ts | ( | ) | const |