libavcodec/avpacket.c File Reference

#include "avcodec.h"

Go to the source code of this file.

Functions

void av_destruct_packet_nofree (AVPacket *pkt)
void av_destruct_packet (AVPacket *pkt)
 Default packet destructor.
void av_init_packet (AVPacket *pkt)
 Initialize optional fields of a packet with default values.
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_dup_packet (AVPacket *pkt)
void av_free_packet (AVPacket *pkt)
 Free a packet.


Function Documentation

void av_destruct_packet ( AVPacket pkt  ) 

Default packet destructor.

Definition at line 30 of file avpacket.c.

Referenced by av_dup_packet(), av_new_packet(), matroska_merge_packets(), new_pes_packet(), output_packet(), vfw_read_close(), and write_frame().

void av_destruct_packet_nofree ( AVPacket pkt  ) 

Deprecated:
use NULL instead

Definition at line 25 of file avpacket.c.

Referenced by 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.

Definition at line 74 of file avpacket.c.

Referenced by av_find_stream_info(), av_read_frame(), ff_interleave_add_packet(), and packet_queue_put().

void av_free_packet ( AVPacket pkt  ) 

Free a packet.

Parameters:
pkt packet to free

Definition at line 93 of file avpacket.c.

Referenced by amr_read_packet(), asf_read_pts(), asf_reset_header(), asfrtp_parse_packet(), audio_decode_frame(), audio_read_packet(), av_close_input_stream(), av_estimate_timings_from_pts(), av_get_packet(), av_interleaved_write_frame(), av_read_frame_internal(), av_seek_frame_generic(), av_transcode(), av_write_trailer(), avs_read_video_packet(), cin_read_packet(), decode_thread(), dxa_read_packet(), extract_mpeg4_header(), ff_asf_parse_packet(), ff_free_parser_state(), ff_raw_read_partial_packet(), ff_read_frame_flush(), ff_rm_free_rmstream(), ffm_read_packet(), flic_read_packet(), flush_packet_queue(), fourxm_read_packet(), free_packet_list(), free_pkt_fifo(), http_prepare_data(), img_read_packet(), ingenient_read_packet(), input_request_frame(), load_ipmovie_packet(), main(), matroska_clear_queue(), mmf_read_packet(), mpc_read_packet(), mpc_read_seek(), mpegts_raw_read_packet(), mxf_interleave_get_packet(), nc_read_packet(), nsv_read_close(), nuv_packet(), output_packet(), packet_queue_flush(), read_packet(), rl2_read_packet(), rm_assemble_video_frame(), rm_read_packet(), rpl_read_packet(), search_hi_lo_keyframes(), str_read_close(), str_read_packet(), subtitle_thread(), thp_read_packet(), vid_read_packet(), video_thread(), vmd_read_packet(), vqf_read_packet(), write_frame(), wsvqa_read_packet(), wv_read_packet(), wv_read_seek(), yop_read_close(), yop_read_packet(), and yop_read_seek().

void av_init_packet ( AVPacket pkt  ) 

int av_new_packet ( AVPacket pkt,
int  size 
)

void av_shrink_packet ( AVPacket pkt,
int  size 
)

Reduce packet size, correctly zeroing padding.

Parameters:
pkt packet
size new size

Definition at line 67 of file avpacket.c.

Referenced by av_get_packet(), cin_read_packet(), nuv_packet(), and yop_read_packet().


Generated on Tue Apr 20 17:39:26 2010 for FFmpeg by  doxygen 1.5.6