AVPacket Struct Reference

#include <avformat.h>


Data Fields

int64_t pts
 Presentation timestamp in time_base units; the time at which the decompressed packet will be presented to the user.
int64_t dts
 Decompression timestamp in time_base units; the time at which the packet is decompressed.
uint8_t * data
int size
int stream_index
int flags
int duration
 Duration of this packet in time_base units, 0 if unknown.
void(* destruct )(struct AVPacket *)
void * priv
int64_t pos
 byte position in stream, -1 if unknown
int64_t convergence_duration
 Time difference in stream time base units from the pts of this packet to the point at which the output from the decoder has converged independent from the availability of previous frames.


Detailed Description

Definition at line 117 of file avformat.h.


Field Documentation

Time difference in stream time base units from the pts of this packet to the point at which the output from the decoder has converged independent from the availability of previous frames.

That is, the frames are virtually identical no matter if decoding started from the very first frame or from this keyframe. Is AV_NOPTS_VALUE if unknown. This field is not the display duration of the current packet.

The purpose of this field is to allow seeking in streams that have no keyframes in the conventional sense. It corresponds to the recovery point SEI in H.264 and match_time_delta in NUT. It is also essential for some types of subtitle streams to ensure that all subtitles are correctly displayed after seeking.

Definition at line 162 of file avformat.h.

Referenced by av_init_packet(), compute_pkt_fields(), matroska_parse_block(), and mkv_write_packet().

uint8_t* AVPacket::data

Definition at line 134 of file avformat.h.

Referenced by adts_write_packet(), amr_read_packet(), ape_read_packet(), asf_write_packet(), audio_decode_frame(), audio_read_packet(), audio_write_packet(), av_destruct_packet(), av_destruct_packet_nofree(), av_dup_packet(), av_find_stream_info(), av_get_packet(), av_new_packet(), av_read_frame_internal(), av_read_packet(), avi_read_packet(), avi_write_packet(), avisynth_read_packet(), avs_read_video_packet(), cin_read_packet(), crc_write_packet(), daud_write_packet(), decode_frame(), decode_thread(), do_audio_out(), do_subtitle_out(), do_video_out(), dv_extract_audio_info(), dv_produce_packet(), dxa_read_packet(), extract_mpeg4_header(), ff_asf_parse_packet(), ff_audio_rechunk_interleave(), ff_interleave_new_audio_packet(), ff_rm_parse_packet(), ff_rm_retrieve_cache(), ffm_read_packet(), ffm_write_packet(), film_read_packet(), find_best_header_idx(), flac_write_packet(), flic_read_packet(), flv_write_packet(), fourxm_read_packet(), framecrc_write_packet(), get_needed_flags(), get_watermark_picture(), gif_write_packet(), grab_read_packet(), gxf_write_media_packet(), gxf_write_media_preamble(), h264_handle_packet(), iff_read_packet(), img_read_packet(), load_ipmovie_packet(), main(), matroska_fix_ass_packet(), matroska_merge_packets(), matroska_parse_block(), mkv_write_ass_blocks(), mkv_write_block(), mkv_write_packet(), mm_read_packet(), mmap_read_frame(), mmap_release_buffer(), mmf_read_packet(), mov_write_packet(), mpc_read_packet(), mpeg_mux_write_packet(), mpegps_read_packet(), mpegts_push_data(), mpegts_raw_read_packet(), mpegts_write_packet(), mpjpeg_write_packet(), mtv_read_packet(), mxf_decrypt_triplet(), mxf_get_d10_aes3_packet(), mxf_parse_mpeg2_frame(), mxf_write_d10_audio_packet(), mxf_write_d10_video_packet(), mxf_write_packet(), nsv_read_chunk(), nsv_read_header(), nsv_read_packet(), nut_read_packet(), nuv_packet(), ogg_read_packet(), ogg_write_packet(), output_packet(), pkt_dump_internal(), read_frame(), read_packet(), rm_ac3_swap_bytes(), rm_assemble_video_frame(), rm_read_packet(), rm_write_packet(), roq_read_packet(), rtp_parse_packet(), rtp_write_packet(), seq_read_packet(), siff_read_packet(), smacker_read_packet(), str_read_close(), str_read_packet(), subtitle_thread(), swf_read_packet(), swf_write_packet(), vc1test_write_packet(), video_thread(), videostream_cb(), vmd_read_packet(), voc_write_packet(), write_audio_frame(), write_frame(), write_packet(), write_video_frame(), wsvqa_read_packet(), wv_read_packet(), and x11grab_read_packet().

void(* AVPacket::destruct)(struct AVPacket *)

int64_t AVPacket::dts

int64_t AVPacket::pos

Definition at line 144 of file avformat.h.

Referenced by mmap_read_frame(), and mmap_release_buffer().

int64_t AVPacket::pts

Presentation timestamp in time_base units; the time at which the decompressed packet will be presented to the user.

Can be AV_NOPTS_VALUE if it is not stored in the file. pts MUST be larger or equal to dts as presentation cannot happen before decompression, unless one wants to view hex dumps. Some formats misuse the terms dts and pts/cts to mean something different. Such timestamps must be converted to true pts/dts before they are stored in AVPacket.

Definition at line 127 of file avformat.h.

Referenced by ape_read_packet(), asf_read_pts(), asf_write_packet(), audio_decode_frame(), audio_read_packet(), av_encode(), av_estimate_timings_from_pts(), av_init_packet(), av_read_frame(), av_read_frame_internal(), avisynth_read_packet(), bfi_read_packet(), cdata_read_packet(), cin_read_packet(), compute_pkt_fields(), compute_pkt_fields2(), decode_frame(), do_audio_out(), do_subtitle_out(), do_video_out(), dv_produce_packet(), ea_read_packet(), ff_audio_rechunk_interleave(), ff_interleave_new_audio_packet(), ff_rm_parse_packet(), ffm_read_packet(), ffm_write_packet(), film_read_packet(), finalize_packet(), flic_read_packet(), flv_read_packet(), flv_write_packet(), fourxm_read_packet(), get_needed_flags(), grab_read_packet(), http_prepare_data(), idcin_read_packet(), iff_read_packet(), iss_read_packet(), load_ipmovie_packet(), main(), matroska_fix_ass_packet(), matroska_parse_block(), mkv_add_cuepoint(), mkv_write_ass_blocks(), mkv_write_block(), mkv_write_packet(), mm_read_packet(), mmap_read_frame(), mov_write_packet(), mpc8_read_packet(), mpc_read_packet(), mpeg_mux_write_packet(), mpegps_read_packet(), mpegts_push_data(), mpegts_raw_read_packet(), mpegts_write_packet(), msnwc_tcp_read_packet(), nut_read_packet(), nuv_packet(), ogg_compare_granule(), ogg_read_packet(), ogg_write_packet(), output_packet(), pkt_dump_internal(), pva_read_packet(), rdt_parse_packet(), read_frame(), read_packet(), rl2_read_packet(), rm_assemble_video_frame(), roq_read_packet(), rpl_read_packet(), rtp_write_packet(), seq_read_packet(), smacker_read_packet(), subtitle_thread(), swf_read_packet(), update_initial_durations(), update_initial_timestamps(), vc1t_read_packet(), vc1test_write_packet(), video_thread(), videostream_cb(), vmd_read_packet(), wc3_read_packet(), write_audio_frame(), write_packet(), write_video_frame(), wsaud_read_packet(), wv_read_packet(), wv_read_seek(), x11grab_read_packet(), and xa_read_packet().

Definition at line 135 of file avformat.h.

Referenced by adts_write_packet(), ape_read_packet(), asf_read_pts(), asf_write_packet(), au_read_packet(), audio_decode_frame(), audio_read_packet(), audio_write_packet(), av_destruct_packet(), av_destruct_packet_nofree(), av_dup_packet(), av_estimate_timings_from_pts(), av_find_stream_info(), av_get_packet(), av_interleaved_write_frame(), av_new_packet(), av_read_frame_internal(), av_read_packet(), avi_read_packet(), avi_write_packet(), avisynth_read_packet(), avs_read_video_packet(), compute_frame_duration(), compute_pkt_fields(), compute_pkt_fields2(), crc_write_packet(), daud_write_packet(), dc1394_read_common(), decode_thread(), do_audio_out(), do_subtitle_out(), do_video_out(), dv_extract_audio_info(), dv_get_packet(), dv_produce_packet(), extract_mpeg4_header(), ff_asf_parse_packet(), ff_audio_rechunk_interleave(), ffm_write_packet(), find_best_header_idx(), flac_write_packet(), flv_read_packet(), flv_write_packet(), framecrc_write_packet(), get_needed_flags(), get_watermark_picture(), gif_write_packet(), grab_read_packet(), gxf_write_media_packet(), gxf_write_media_preamble(), img_read_packet(), main(), matroska_fix_ass_packet(), matroska_merge_packets(), mkv_write_ass_blocks(), mkv_write_block(), mkv_write_packet(), mm_read_packet(), mmap_read_frame(), mmap_release_buffer(), mmf_read_packet(), mov_write_packet(), mp3_read_packet(), mpc_read_packet(), mpeg_mux_write_packet(), mpegps_read_packet(), mpegts_write_packet(), mpjpeg_write_packet(), mxf_decrypt_triplet(), mxf_get_d10_aes3_packet(), mxf_parse_mpeg2_frame(), mxf_write_d10_audio_packet(), mxf_write_d10_video_packet(), mxf_write_packet(), nsv_read_packet(), ogg_write_packet(), output_packet(), packet_queue_get(), packet_queue_put(), pkt_dump_internal(), read_packet(), rm_ac3_swap_bytes(), rm_assemble_video_frame(), rm_read_packet(), rm_write_packet(), rtp_write_packet(), siff_read_packet(), smacker_read_packet(), sol_read_packet(), str_read_packet(), subtitle_thread(), swf_read_packet(), swf_write_packet(), vc1t_read_packet(), vc1test_write_packet(), vfw_read_packet(), video_thread(), voc_write_packet(), wav_read_packet(), write_audio_frame(), write_frame(), write_packet(), write_video_frame(), and wv_read_packet().

Definition at line 136 of file avformat.h.

Referenced by aiff_read_packet(), amr_read_packet(), apc_read_packet(), ape_read_packet(), asf_read_pts(), asf_write_packet(), au_read_packet(), av_encode(), av_estimate_timings_from_pts(), av_find_stream_info(), av_init_packet(), av_interleave_packet_per_dts(), av_interleaved_write_frame(), av_read_frame(), av_read_frame_internal(), av_read_packet(), av_seek_frame_generic(), av_write_frame(), avi_read_packet(), avi_write_packet(), avisynth_read_packet(), avs_read_audio_packet(), avs_read_video_packet(), bfi_read_packet(), cin_read_packet(), compute_pkt_fields(), daud_packet(), dc1394_read_common(), decode_frame(), decode_thread(), do_audio_out(), do_subtitle_out(), do_video_out(), dv_extract_audio_info(), dv_produce_packet(), dxa_read_packet(), ea_read_packet(), extract_mpeg4_header(), ff_asf_parse_packet(), ff_audio_rechunk_interleave(), ff_interleave_compare_dts(), ff_interleave_new_audio_packet(), ff_rm_parse_packet(), ff_rm_retrieve_cache(), ffm_read_packet(), ffm_write_packet(), film_read_packet(), finalize_packet(), flic_read_packet(), flv_read_packet(), flv_write_packet(), fourxm_read_packet(), framecrc_write_packet(), get_needed_flags(), get_watermark_picture(), gif_write_packet(), gxf_packet(), gxf_write_media_packet(), gxf_write_media_preamble(), http_prepare_data(), idcin_read_packet(), iff_read_packet(), img_read_packet(), iss_read_packet(), lmlm4_read_packet(), load_ipmovie_packet(), main(), matroska_parse_block(), mkv_add_cuepoint(), mkv_write_ass_blocks(), mkv_write_block(), mkv_write_packet(), mm_read_packet(), mmf_read_packet(), mov_write_packet(), mp3_read_packet(), mpc8_read_packet(), mpc_read_packet(), mpeg_mux_write_packet(), mpegps_read_packet(), mpegts_push_data(), mpegts_raw_read_packet(), mpegts_write_packet(), msnwc_tcp_read_packet(), mtv_read_packet(), mxf_compare_timestamps(), mxf_decrypt_triplet(), mxf_interleave_get_packet(), mxf_read_packet(), mxf_write_packet(), nc_read_packet(), nsv_read_chunk(), nut_read_packet(), nuv_packet(), ogg_compare_granule(), ogg_interleave_per_granule(), ogg_read_packet(), ogg_write_packet(), oma_read_packet(), output_packet(), pkt_dump_internal(), pva_read_packet(), r3d_read_reda(), r3d_read_redv(), rdt_parse_packet(), read_frame(), read_packet(), rl2_read_packet(), rm_read_packet(), rm_write_packet(), roq_read_packet(), rpl_read_packet(), rtp_write_packet(), seq_read_packet(), siff_read_packet(), smacker_read_packet(), sol_read_packet(), str_read_packet(), swf_read_packet(), swf_write_packet(), thp_read_packet(), txd_read_packet(), update_initial_durations(), update_initial_timestamps(), vid_read_packet(), vmd_read_packet(), wav_read_packet(), wc3_read_packet(), write_audio_frame(), write_frame(), write_packet(), write_video_frame(), wsaud_read_packet(), wsvqa_read_packet(), wv_read_packet(), xa_read_packet(), and yuv4_read_packet().


The documentation for this struct was generated from the following file:

Generated on Fri Oct 26 02:35:47 2012 for FFmpeg by  doxygen 1.5.8