Libav
|
#include <string.h>
#include "libavutil/avassert.h"
#include "libavutil/common.h"
#include "libavutil/internal.h"
#include "libavutil/mem.h"
#include "avcodec.h"
Go to the source code of this file.
Macros | |
#define | ALLOC_MALLOC(data, size) data = av_malloc(size) |
#define | ALLOC_BUF(data, size) |
#define | DUP_DATA(dst, src, size, padding, ALLOC) |
Functions | |
void | av_destruct_packet (AVPacket *pkt) |
Default packet destructor. | |
static void | dummy_destruct_packet (AVPacket *pkt) |
void | av_init_packet (AVPacket *pkt) |
Initialize optional fields of a packet with default values. | |
static int | packet_alloc (AVBufferRef **buf, int size) |
int | av_new_packet (AVPacket *pkt, int size) |
Allocate the payload of a packet and initialize its fields with default values. | |
void | av_shrink_packet (AVPacket *pkt, int size) |
Reduce packet size, correctly zeroing padding. | |
int | av_grow_packet (AVPacket *pkt, int grow_by) |
Increase packet size, correctly zeroing padding. | |
int | av_packet_from_data (AVPacket *pkt, uint8_t *data, int size) |
Initialize a reference-counted packet from av_malloc()ed data. | |
int | av_dup_packet (AVPacket *pkt) |
void | av_packet_free_side_data (AVPacket *pkt) |
Convenience function to free all the side data stored. | |
void | av_free_packet (AVPacket *pkt) |
Free a packet. | |
uint8_t * | av_packet_new_side_data (AVPacket *pkt, enum AVPacketSideDataType type, int size) |
Allocate new information of a packet. | |
uint8_t * | av_packet_get_side_data (AVPacket *pkt, enum AVPacketSideDataType type, int *size) |
Get side information from packet. | |
int | av_packet_shrink_side_data (AVPacket *pkt, enum AVPacketSideDataType type, int size) |
Shrink the already allocated side data buffer. | |
int | av_packet_copy_props (AVPacket *dst, const AVPacket *src) |
Copy only "properties" fields from src to dst. | |
void | av_packet_unref (AVPacket *pkt) |
Wipe the packet. | |
int | av_packet_ref (AVPacket *dst, AVPacket *src) |
Setup a new reference to the data described by a given packet. | |
void | av_packet_move_ref (AVPacket *dst, AVPacket *src) |
Move every field in src to dst and reset src. |
Definition at line 162 of file avpacket.c.
Referenced by av_dup_packet().
Definition at line 163 of file avpacket.c.
Referenced by av_dup_packet().
#define DUP_DATA | ( | dst, | |
src, | |||
size, | |||
padding, | |||
ALLOC | |||
) |
Definition at line 169 of file avpacket.c.
Referenced by av_dup_packet().
Definition at line 40 of file avpacket.c.
Referenced by av_dup_packet(), av_grow_packet(), av_new_packet(), and av_packet_from_data().
|
static |
Definition at line 65 of file avpacket.c.
Referenced by av_new_packet(), and av_packet_ref().