avcpp
2.0
Wrapper for the FFmpeg that simplify usage from C++ projects.
|
Go to the documentation of this file.
13 #include <libavutil/attributes.h>
19 #if DEPRECATED_INIT_PACKET
27 void initFromAVPacket(
const AVPacket *avpacket,
bool deepCopy,
OptionalErrorCode ec);
45 explicit Packet(
const std::vector<uint8_t> &
data);
55 const uint8_t*
data()
const;
93 void dump(
const Stream & st,
bool dumpPayload =
false)
const;
101 #if DEPRECATED_INIT_PACKET
112 #if DEPRECATED_INIT_PACKET
124 int allocatePayload(int32_t
size);
125 int reallocatePayload(int32_t newSize);
Timestamp ts() const
Definition: packet.cpp:219
bool setData(const std::vector< uint8_t > &newData, OptionalErrorCode ec=throws())
Definition: rational.h:24
void addFlags(int flags)
Definition: packet.cpp:307
bool isKeyPacket() const
Definition: packet.cpp:269
int streamIndex() const
Definition: packet.cpp:259
void setTimeBase(const Rational &value)
Definition: packet.cpp:326
void setStreamIndex(int idx)
Definition: packet.cpp:289
attribute_deprecated void setDts(int64_t dts, const Rational &tsTimeBase=Rational(0, 0))
Definition: packet.cpp:237
AVPacket makeRef(OptionalErrorCode ec=throws()) const
Definition: packet.cpp:374
Packet clone(OptionalErrorCode ec=throws()) const
Definition: packet.cpp:386
const Rational & timeBase() const
Definition: packet.h:95
Wrap static data, do not owning and free.
Definition: packet.h:38
size_t size() const
Definition: packet.cpp:224
void dump(const Stream &st, bool dumpPayload=false) const
Definition: packet.cpp:317
attribute_deprecated void setPts(int64_t pts, const Rational &tsTimeBase=Rational(0, 0))
Set packet PTS field.
Definition: packet.cpp:229
int flags() const
Definition: packet.cpp:264
const uint8_t * data() const
Definition: packet.cpp:199
bool isComplete() const
Definition: packet.cpp:279
Timestamp pts() const
Definition: packet.cpp:209
void clearFlags(int flags)
Definition: packet.cpp:312
Timestamp dts() const
Definition: packet.cpp:214
void setFlags(int flags)
Definition: packet.cpp:302
Wrap data and take owning.
Definition: packet.h:33
int duration() const
Definition: packet.cpp:274
void setDuration(int duration, const Rational &durationTimeBase=Rational(0, 0))
Definition: packet.cpp:449
Definition: audioresampler.cpp:8
Packet()
Definition: packet.cpp:8
void swap(Packet &other)
Definition: packet.cpp:441
int refCount() const
Definition: packet.cpp:344
void setComplete(bool complete)
Definition: packet.cpp:394
The Timestamp class represents timestamp value and it timebase.
Definition: timestamp.h:13
void setKeyPacket(bool keyPacket)
Definition: packet.cpp:294
bool isReferenced() const
Definition: packet.cpp:339
bool isNull() const
Definition: packet.cpp:284
~Packet()
Definition: packet.cpp:101
Packet & operator=(const Packet &rhs)
Definition: packet.cpp:399