ffmpeg.libavcodec.packet

Undocumented in source.

Members

Enums

AVPacketSideDataType
enum AVPacketSideDataType

@defgroup lavc_packet AVPacket

AVSideDataParamChangeFlags
enum AVSideDataParamChangeFlags
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

Functions

av_copy_packet
int av_copy_packet(AVPacket* dst, const(AVPacket)* src)

Copy packet, including contents

av_copy_packet_side_data
int av_copy_packet_side_data(AVPacket* dst, const(AVPacket)* src)

Copy packet side data

av_dup_packet
int av_dup_packet(AVPacket* pkt)

@warning This is a hack - the packet memory allocation stuff is broken. The packet is allocated if it was not really allocated.

av_free_packet
void av_free_packet(AVPacket* pkt)

Free a packet.

av_grow_packet
int av_grow_packet(AVPacket* pkt, int grow_by)

Increase packet size, correctly zeroing padding

av_init_packet
void av_init_packet(AVPacket* pkt)

Initialize optional fields of a packet with default values.

av_new_packet
int av_new_packet(AVPacket* pkt, int size)

Allocate the payload of a packet and initialize its fields with default values.

av_packet_add_side_data
int av_packet_add_side_data(AVPacket* pkt, AVPacketSideDataType type, ubyte* data, size_t size)

Wrap an existing array as a packet side data.

av_packet_alloc
AVPacket* av_packet_alloc()

Allocate an AVPacket and set its fields to default values. The resulting struct must be freed using av_packet_free().

av_packet_clone
AVPacket* av_packet_clone(const(AVPacket)* src)

Create a new packet that references the same data as src.

av_packet_copy_props
int av_packet_copy_props(AVPacket* dst, const(AVPacket)* src)

Copy only "properties" fields from src to dst.

av_packet_free
void av_packet_free(AVPacket** pkt)

Free the packet, if the packet is reference counted, it will be unreferenced first.

av_packet_free_side_data
void av_packet_free_side_data(AVPacket* pkt)

Convenience function to free all the side data stored. All the other fields stay untouched.

av_packet_from_data
int av_packet_from_data(AVPacket* pkt, ubyte* data, int size)

Initialize a reference-counted packet from av_malloc()ed data.

av_packet_get_side_data
ubyte* av_packet_get_side_data(const(AVPacket)* pkt, AVPacketSideDataType type, int* size)

Get side information from packet.

av_packet_make_refcounted
int av_packet_make_refcounted(AVPacket* pkt)

Ensure the data described by a given packet is reference counted.

av_packet_make_writable
int av_packet_make_writable(AVPacket* pkt)

Create a writable reference for the data described by a given packet, avoiding data copy if possible.

av_packet_merge_side_data
int av_packet_merge_side_data(AVPacket* pkt)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
av_packet_move_ref
void av_packet_move_ref(AVPacket* dst, AVPacket* src)

Move every field in src to dst and reset src.

av_packet_new_side_data
ubyte* av_packet_new_side_data(AVPacket* pkt, AVPacketSideDataType type, int size)

Allocate new information of a packet.

av_packet_pack_dictionary
ubyte* av_packet_pack_dictionary(AVDictionary* dict, int* size)

Pack a dictionary for use in side_data.

av_packet_ref
int av_packet_ref(AVPacket* dst, const(AVPacket)* src)

Setup a new reference to the data described by a given packet

av_packet_rescale_ts
void av_packet_rescale_ts(AVPacket* pkt, AVRational tb_src, AVRational tb_dst)

Convert valid timing fields (timestamps / durations) in a packet from one timebase to another. Timestamps with unknown values (AV_NOPTS_VALUE) will be ignored.

av_packet_shrink_side_data
int av_packet_shrink_side_data(AVPacket* pkt, AVPacketSideDataType type, int size)

Shrink the already allocated side data buffer

av_packet_side_data_name
const(char)* av_packet_side_data_name(AVPacketSideDataType type)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
av_packet_split_side_data
int av_packet_split_side_data(AVPacket* pkt)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
av_packet_unpack_dictionary
int av_packet_unpack_dictionary(const(ubyte)* data, int size, AVDictionary** dict)

Unpack a dictionary from side_data.

av_packet_unref
void av_packet_unref(AVPacket* pkt)

Wipe the packet.

av_shrink_packet
void av_shrink_packet(AVPacket* pkt, int size)

Reduce packet size, correctly zeroing padding

Manifest constants

AV_PKT_DATA_QUALITY_FACTOR
enum AV_PKT_DATA_QUALITY_FACTOR;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
AV_PKT_FLAG_CORRUPT
enum AV_PKT_FLAG_CORRUPT;

< The packet content is corrupted

AV_PKT_FLAG_DISCARD
enum AV_PKT_FLAG_DISCARD;

Flag is used to discard packets which are required to maintain valid decoder state but are not required for output and should be dropped after decoding.

AV_PKT_FLAG_DISPOSABLE
enum AV_PKT_FLAG_DISPOSABLE;

Flag is used to indicate packets that contain frames that can be discarded by the decoder. I.e. Non-reference frames.

AV_PKT_FLAG_KEY
enum AV_PKT_FLAG_KEY;

< The packet contains a keyframe

AV_PKT_FLAG_TRUSTED
enum AV_PKT_FLAG_TRUSTED;

The packet comes from a trusted source.

Structs

AVPacket
struct AVPacket

This structure stores compressed data. It is typically exported by demuxers and then passed as input to decoders, or received as output from encoders and then passed to muxers.

AVPacketList
struct AVPacketList
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
AVPacketSideData
struct AVPacketSideData
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

Meta