AVPacket Struct Reference

#include <avcodec.h>


Data Fields

int64_t pts
 Presentation timestamp in AVStream->time_base units; the time at which the decompressed packet will be presented to the user.
int64_t dts
 Decompression timestamp in AVStream->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 AVStream->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 AVStream->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 819 of file avcodec.h.


Field Documentation

Time difference in AVStream->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 864 of file avcodec.h.

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

uint8_t* AVPacket::data

Definition at line 836 of file avcodec.h.

Referenced by aac_decode_frame(), aasc_decode_frame(), ac3_decode_frame(), adpcm_decode_frame(), adts_write_packet(), adx_decode_frame(), aiff_write_packet(), alac_decode_frame(), amr_handle_packet(), amr_read_packet(), amrnb_decode_frame(), ape_decode_frame(), ape_read_packet(), asf_write_packet(), atrac1_decode_frame(), atrac3_decode_frame(), audio_decode_example(), audio_decode_frame(), audio_read_packet(), audio_write_packet(), aura_decode_frame(), av_destruct_packet(), av_destruct_packet_nofree(), av_dup_packet(), av_find_stream_info(), av_free_packet(), av_get_packet(), av_new_packet(), av_read_frame_internal(), av_read_packet(), av_shrink_packet(), avcodec_decode_audio2(), avcodec_decode_subtitle(), avcodec_decode_video(), avi_write_packet(), avisynth_read_packet(), avs_decode_frame(), avs_read_video_packet(), bethsoftvid_decode_frame(), bfi_decode_frame(), bmp_decode_frame(), cavs_decode_frame(), cdg_decode_frame(), cin_read_packet(), cinaudio_decode_frame(), cinepak_decode_frame(), cinvideo_decode_frame(), cmv_decode_frame(), cook_decode_frame(), crc_write_packet(), cyuv_decode_frame(), daud_write_packet(), dca_decode_frame(), decode(), decode_frame(), decode_frame_byterun1(), decode_frame_ilbm(), decode_packet(), decode_tag(), decode_thread(), dnxhd_decode_frame(), do_audio_out(), do_subtitle_out(), do_video_out(), dpcm_decode_frame(), dv_extract_audio_info(), dv_produce_packet(), dvbsub_decode(), dvdsub_decode(), dxa_read_packet(), eightsvx_decode_frame(), escape124_decode_frame(), extract_mpeg4_header(), faac_decode_frame(), ff_asf_parse_packet(), ff_audio_rechunk_interleave(), ff_h263_decode_frame(), ff_interleave_new_audio_packet(), ff_mjpeg_decode_frame(), ff_mov_add_hinted_packet(), ff_mov_write_packet(), ff_rm_parse_packet(), ff_rm_retrieve_cache(), ff_rv34_decode_frame(), ffm_read_packet(), ffm_write_packet(), film_read_packet(), find_best_header_idx(), flac_decode_frame(), flac_write_packet(), flashsv_decode_frame(), flic_decode_frame(), flic_read_packet(), flv_write_packet(), fourxm_read_packet(), framecrc_write_packet(), g726_decode_frame(), get_needed_flags(), get_video_frame(), gif_decode_frame(), gif_write_packet(), grab_read_packet(), gxf_write_media_preamble(), gxf_write_packet(), h261_decode_frame(), h263_handle_packet(), h264_handle_packet(), idcin_decode_frame(), iff_read_packet(), imc_decode_frame(), img_read_packet(), indeo3_decode_frame(), ipvideo_decode_frame(), ir2_decode_frame(), libdirac_decode_frame(), libgsm_decode_frame(), libopenjpeg_decode_frame(), libschroedinger_decode_frame(), libspeex_decode_frame(), load_ipmovie_packet(), mace_decode_frame(), main(), matroska_fix_ass_packet(), matroska_merge_packets(), matroska_parse_block(), mimic_decode_frame(), mjpegb_decode_frame(), mkv_write_ass_blocks(), mkv_write_block(), mkv_write_packet(), mm_decode_frame(), mmap_read_frame(), mmap_release_buffer(), mmf_read_packet(), mov_parse_mpeg2_frame(), mp_decode_frame(), mpc7_decode_frame(), mpc8_decode_frame(), mpc_read_packet(), mpeg_decode_frame(), mpeg_mux_write_packet(), mpegps_read_packet(), mpegts_raw_read_packet(), mpegts_write_packet(), mpjpeg_write_packet(), msrle_decode_frame(), msvideo1_decode_frame(), 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(), new_pes_packet(), nsv_read_chunk(), nsv_read_close(), nsv_read_header(), nsv_read_packet(), nut_read_packet(), nuv_packet(), ogg_read_packet(), ogg_write_packet(), output_packet(), pcm_bluray_decode_frame(), pcm_decode_frame(), pcx_decode_frame(), pkt_dump_internal(), pnm_decode_frame(), process_callback(), ptx_decode_frame(), qcelp_decode_frame(), qdm2_decode_frame(), qtrle_decode_frame(), ra144_decode_frame(), ra288_decode_frame(), raw_decode(), read_access_unit(), read_frame(), read_packet(), rl2_decode_frame(), rm_ac3_swap_bytes(), rm_assemble_video_frame(), rm_write_packet(), roq_decode_frame(), roq_read_packet(), rpza_decode_frame(), rtp_parse_packet(), rtp_write_packet(), rv10_decode_frame(), sample_queue_push(), seq_read_packet(), seqvideo_decode_frame(), shorten_decode_frame(), siff_read_packet(), sipr_decode_frame(), smacker_read_packet(), smc_decode_frame(), smka_decode_frame(), sox_write_packet(), sp5x_decode_frame(), spdif_header_aac(), spdif_header_ac3(), spdif_header_dts(), spdif_header_mpeg(), spdif_write_packet(), str_read_close(), str_read_packet(), subtitle_thread(), sunrast_decode_frame(), svq1_decode_frame(), svq3_decode_frame(), swf_read_packet(), swf_write_packet(), tgq_decode_frame(), tgv_decode_frame(), tmv_decode_frame(), tqi_decode_frame(), truemotion1_decode_frame(), truespeech_decode_frame(), tta_decode_frame(), twin_decode_frame(), txd_decode_frame(), ulti_decode_frame(), vc1_decode_frame(), vc1test_write_packet(), video_decode_example(), videostream_cb(), vmd_read_packet(), vmdaudio_decode_frame(), vmdvideo_decode_frame(), voc_write_packet(), vorbis_decode_frame(), vp3_decode_frame(), vp56_decode_frame(), vp8_decode(), vqa_decode_frame(), vqf_read_packet(), wavpack_decode_frame(), wma_decode_superframe(), wmavoice_decode_packet(), write_audio_frame(), write_frame(), write_packet(), write_video_frame(), ws_snd_decode_frame(), wsvqa_read_packet(), wv_read_packet(), x11grab_read_packet(), xan_decode_frame(), xiph_handle_packet(), yop_decode_frame(), and yop_read_packet().

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

int64_t AVPacket::dts

int64_t AVPacket::pos

Definition at line 846 of file avcodec.h.

Referenced by mmap_read_frame(), and mmap_release_buffer().

int64_t AVPacket::pts

Presentation timestamp in AVStream->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 829 of file avcodec.h.

Referenced by ape_read_packet(), asf_read_pts(), asf_write_packet(), audio_decode_frame(), audio_read_packet(), av_estimate_timings_from_pts(), av_init_packet(), av_read_frame(), av_read_frame_internal(), av_transcode(), avisynth_read_packet(), bfi_read_packet(), cdata_read_packet(), cin_read_packet(), compute_pkt_fields(), compute_pkt_fields2(), decode_frame(), decode_thread(), 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_mov_add_hinted_packet(), ff_mov_write_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(), get_needed_flags(), get_video_frame(), 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_write_ass_blocks(), mkv_write_block(), mkv_write_packet(), mmap_read_frame(), mov_create_chapter_track(), mpc8_read_packet(), mpc_read_packet(), mpeg_mux_write_packet(), mpegps_read_packet(), mpegts_raw_read_packet(), mpegts_write_packet(), msnwc_tcp_read_packet(), new_pes_packet(), nut_read_packet(), nuv_packet(), ogg_read_packet(), ogg_write_packet(), output_packet(), pkt_dump_internal(), process_callback(), 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(), search_hi_lo_keyframes(), seq_read_packet(), smacker_read_packet(), subtitle_thread(), swf_read_packet(), update_initial_durations(), update_initial_timestamps(), vc1t_read_packet(), vc1test_write_packet(), 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 837 of file avcodec.h.

Referenced by aac_decode_frame(), aasc_decode_frame(), ac3_decode_frame(), adpcm_decode_frame(), adts_write_packet(), adx_decode_frame(), aiff_write_packet(), alac_decode_frame(), amr_handle_packet(), amrnb_decode_frame(), ape_decode_frame(), ape_read_packet(), asf_read_pts(), asf_write_packet(), atrac1_decode_frame(), atrac3_decode_frame(), au_read_packet(), audio_decode_example(), audio_decode_frame(), audio_read_packet(), audio_write_packet(), aura_decode_frame(), av_destruct_packet(), av_destruct_packet_nofree(), av_dup_packet(), av_estimate_timings_from_pts(), av_find_stream_info(), av_free_packet(), av_interleaved_write_frame(), av_new_packet(), av_read_frame_internal(), av_read_packet(), av_shrink_packet(), avcodec_decode_audio2(), avcodec_decode_audio3(), avcodec_decode_subtitle(), avcodec_decode_video(), avcodec_decode_video2(), avi_write_packet(), avisynth_read_packet(), avs_decode_frame(), avs_read_video_packet(), bethsoftvid_decode_frame(), bfi_decode_frame(), bmp_decode_frame(), cavs_decode_frame(), cdg_decode_frame(), cinaudio_decode_frame(), cinepak_decode_frame(), cinvideo_decode_frame(), cmv_decode_frame(), compute_frame_duration(), compute_pkt_fields(), compute_pkt_fields2(), cook_decode_frame(), crc_write_packet(), cyuv_decode_frame(), daud_write_packet(), dc1394_read_common(), dca_decode_frame(), decode(), decode_frame(), decode_frame_byterun1(), decode_frame_ilbm(), decode_packet(), decode_tag(), decode_thread(), dnxhd_decode_frame(), do_audio_out(), do_subtitle_out(), do_video_out(), dpcm_decode_frame(), dv_extract_audio_info(), dv_get_packet(), dv_produce_packet(), dvbsub_decode(), dvdsub_decode(), eightsvx_decode_frame(), escape124_decode_frame(), extract_mpeg4_header(), faac_decode_frame(), ff_asf_parse_packet(), ff_audio_rechunk_interleave(), ff_h263_decode_frame(), ff_mjpeg_decode_frame(), ff_mov_add_hinted_packet(), ff_mov_write_packet(), ff_rv34_decode_frame(), ffm_write_packet(), find_best_header_idx(), flac_decode_frame(), flac_write_packet(), flashsv_decode_frame(), flic_decode_frame(), flv_read_packet(), flv_write_packet(), framecrc_write_packet(), g726_decode_frame(), get_needed_flags(), gif_decode_frame(), gif_write_packet(), grab_read_packet(), gxf_write_media_preamble(), gxf_write_packet(), h261_decode_frame(), idcin_decode_frame(), imc_decode_frame(), img_read_packet(), indeo3_decode_frame(), ipvideo_decode_frame(), ir2_decode_frame(), libdirac_decode_frame(), libgsm_decode_frame(), libopenjpeg_decode_frame(), libschroedinger_decode_frame(), libspeex_decode_frame(), mace_decode_frame(), main(), matroska_fix_ass_packet(), matroska_merge_packets(), mimic_decode_frame(), mjpegb_decode_frame(), mkv_write_ass_blocks(), mkv_write_block(), mkv_write_packet(), mm_decode_frame(), mmap_read_frame(), mmap_release_buffer(), mmf_read_packet(), mov_parse_mpeg2_frame(), mp_decode_frame(), mpc7_decode_frame(), mpc8_decode_frame(), mpc_read_packet(), mpeg_decode_frame(), mpeg_mux_write_packet(), mpegps_read_packet(), mpegts_write_packet(), mpjpeg_write_packet(), msrle_decode_frame(), msvideo1_decode_frame(), 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(), new_pes_packet(), nsv_read_packet(), ogg_write_packet(), output_packet(), packet_queue_get(), packet_queue_put(), pcm_bluray_decode_frame(), pcm_decode_frame(), pcx_decode_frame(), pkt_dump_internal(), pnm_decode_frame(), qcelp_decode_frame(), qdm2_decode_frame(), qtrle_decode_frame(), ra144_decode_frame(), ra288_decode_frame(), raw_decode(), read_access_unit(), read_packet(), rl2_decode_frame(), rm_ac3_swap_bytes(), rm_assemble_video_frame(), rm_write_packet(), roq_decode_frame(), rpza_decode_frame(), rtp_write_packet(), rv10_decode_frame(), sample_queue_push(), seqvideo_decode_frame(), shorten_decode_frame(), siff_read_packet(), sipr_decode_frame(), smacker_read_packet(), smc_decode_frame(), smka_decode_frame(), sol_read_packet(), sox_read_packet(), sox_write_packet(), sp5x_decode_frame(), spdif_write_packet(), str_read_packet(), svq1_decode_frame(), svq3_decode_frame(), swf_read_packet(), swf_write_packet(), tgq_decode_frame(), tgv_decode_frame(), tmv_decode_frame(), tqi_decode_frame(), truemotion1_decode_frame(), truespeech_decode_frame(), try_decode_frame(), tta_decode_frame(), twin_decode_frame(), ulti_decode_frame(), v4l2_read_packet(), vc1_decode_frame(), vc1t_read_packet(), vc1test_write_packet(), vfw_read_packet(), video_decode_example(), vmdaudio_decode_frame(), vmdvideo_decode_frame(), voc_write_packet(), vorbis_decode_frame(), vp3_decode_frame(), vp56_decode_frame(), vp8_decode(), vqa_decode_frame(), wavpack_decode_frame(), wma_decode_superframe(), wmavoice_decode_packet(), write_audio_frame(), write_frame(), write_packet(), write_video_frame(), ws_snd_decode_frame(), wv_read_packet(), xan_decode_frame(), yop_decode_frame(), and yop_read_packet().

Definition at line 838 of file avcodec.h.

Referenced by aea_read_packet(), aiff_read_packet(), amr_handle_packet(), amr_read_packet(), apc_read_packet(), ape_read_packet(), asf_read_pts(), asf_write_packet(), asfrtp_parse_packet(), au_read_packet(), 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_transcode(), av_write_frame(), 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_add_packet(), ff_interleave_compare_dts(), ff_interleave_new_audio_packet(), ff_mov_add_hinted_packet(), ff_mov_write_packet(), ff_rm_parse_packet(), ff_rm_retrieve_cache(), ffm_read_packet(), ffm_write_packet(), film_read_packet(), flic_read_packet(), flv_read_packet(), flv_write_packet(), fourxm_read_packet(), framecrc_write_packet(), get_needed_flags(), gif_write_packet(), gxf_compare_field_nb(), gxf_interleave_packet(), gxf_packet(), gxf_write_media_preamble(), gxf_write_packet(), h263_handle_packet(), h264_handle_packet(), 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_write_ass_blocks(), mkv_write_block(), mkv_write_packet(), mmf_read_packet(), mpc8_read_packet(), mpc_read_packet(), mpeg_mux_write_packet(), mpegps_read_packet(), 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(), new_pes_packet(), nsv_read_chunk(), nut_read_packet(), nuv_packet(), 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_write_packet(), roq_read_packet(), rpl_read_packet(), rtp_parse_packet(), rtp_write_packet(), rtsp_write_packet(), search_hi_lo_keyframes(), seq_read_packet(), siff_read_packet(), smacker_read_packet(), sol_read_packet(), sox_read_packet(), str_read_packet(), swf_read_packet(), swf_write_packet(), thp_read_packet(), tmv_read_packet(), txd_read_packet(), update_initial_durations(), update_initial_timestamps(), vid_read_packet(), vmd_read_packet(), vqf_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(), xiph_handle_packet(), and yuv4_read_packet().


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

Generated on Fri Oct 26 02:36:56 2012 for FFmpeg by  doxygen 1.5.8