FFmpeg
4.0
|
#include <libavcodec/avcodec.h>
Data Fields | |
void * | priv_data |
struct AVCodecParser * | parser |
int64_t | frame_offset |
int64_t | cur_offset |
int64_t | next_frame_offset |
int | pict_type |
int | repeat_pict |
This field is used for proper frame duration computation in lavf. More... | |
int64_t | pts |
int64_t | dts |
int64_t | last_pts |
int64_t | last_dts |
int | fetch_timestamp |
int | cur_frame_start_index |
int64_t | cur_frame_offset [AV_PARSER_PTS_NB] |
int64_t | cur_frame_pts [AV_PARSER_PTS_NB] |
int64_t | cur_frame_dts [AV_PARSER_PTS_NB] |
int | flags |
int64_t | offset |
byte offset from starting packet start More... | |
int64_t | cur_frame_end [AV_PARSER_PTS_NB] |
int | key_frame |
Set by parser to 1 for key frames and 0 for non-key frames. More... | |
attribute_deprecated int64_t | convergence_duration |
int | dts_sync_point |
Synchronization point for start of timestamp generation. More... | |
int | dts_ref_dts_delta |
Offset of the current timestamp against last timestamp sync point in units of AVCodecContext.time_base. More... | |
int | pts_dts_delta |
Presentation delay of current frame in units of AVCodecContext.time_base. More... | |
int64_t | cur_frame_pos [AV_PARSER_PTS_NB] |
Position of the packet in file. More... | |
int64_t | pos |
Byte position of currently parsed frame in stream. More... | |
int64_t | last_pos |
Previous frame byte position. More... | |
int | duration |
Duration of the current frame. More... | |
enum AVFieldOrder | field_order |
enum AVPictureStructure | picture_structure |
Indicate whether a picture is coded as a frame, top field or bottom field. More... | |
int | output_picture_number |
Picture number incremented in presentation or output order. More... | |
int | width |
Dimensions of the decoded video intended for presentation. More... | |
int | height |
int | coded_width |
Dimensions of the coded video. More... | |
int | coded_height |
int | format |
The format of the coded data, corresponds to enum AVPixelFormat for video and for enum AVSampleFormat for audio. More... | |
void* AVCodecParserContext::priv_data |
Definition at line 5033 of file avcodec.h.
Referenced by aac_parse_init(), adx_parse(), av_parser_close(), av_parser_init(), av_vorbis_parse_init(), bmp_parse(), cavsvideo_parse(), cook_parse(), dca_parse(), dca_parse_init(), dirac_combine_frame(), dirac_parse(), dirac_parse_close(), dnxhd_parse(), dpx_parse(), dvbsub_parse(), dvbsub_parse_close(), dvbsub_parse_init(), dvd_nav_parse(), dvd_nav_parse_init(), dvdsub_parse(), dvdsub_parse_close(), ff_aac_ac3_parse(), ff_parse_close(), flac_parse(), flac_parse_close(), flac_parse_init(), g729_parse(), gsm_parse(), h261_parse(), h263_parse(), h264_close(), h264_parse(), hevc_find_frame_end(), hevc_parse(), hevc_parse_slice_header(), hevc_parser_close(), init(), jpeg_parse(), latm_find_frame_end(), latm_parse(), mlp_parse(), mpeg4_decode_header(), mpeg4video_parse(), mpeg4video_parse_init(), mpegaudio_parse(), mpegvideo_extract_headers(), mpegvideo_parse(), opus_find_frame_end(), opus_parse(), parse_nal_units(), png_parse(), pnm_parse(), rv34_parse(), sbc_parse(), scan_mmco_reset(), sipr_parse(), tak_parse(), vc1_extract_header(), vc1_parse(), vc1_parse_init(), and xma_parse().
struct AVCodecParser* AVCodecParserContext::parser |
Definition at line 5034 of file avcodec.h.
Referenced by av_parser_change(), av_parser_close(), av_parser_init(), av_parser_parse2(), and remove_extradata().
int64_t AVCodecParserContext::frame_offset |
Definition at line 5035 of file avcodec.h.
Referenced by av_parser_parse2(), ff_fetch_timestamp(), and parse_packet().
int64_t AVCodecParserContext::cur_offset |
Definition at line 5036 of file avcodec.h.
Referenced by av_parser_parse2(), and ff_fetch_timestamp().
int64_t AVCodecParserContext::next_frame_offset |
Definition at line 5038 of file avcodec.h.
Referenced by av_parser_parse2(), ff_fetch_timestamp(), and flac_read_timestamp().
int AVCodecParserContext::pict_type |
Definition at line 5040 of file avcodec.h.
Referenced by av_parser_init(), compute_pkt_fields(), dirac_combine_frame(), dpx_parse(), dvd_nav_parse(), hevc_parse_slice_header(), mpeg4_decode_header(), mpegvideo_extract_headers(), mpegvideo_parse(), mpegvideo_parse_init(), parse(), parse_nal_units(), parse_packet(), png_parse(), rv34_parse(), scan_mmco_reset(), and vc1_extract_header().
int AVCodecParserContext::repeat_pict |
This field is used for proper frame duration computation in lavf.
It signals, how much longer the frame duration of the current frame is compared to normal frame duration.
frame_duration = (1 + repeat_pict) * time_base
It is used by codecs like H.264 to display telecined material.
Definition at line 5050 of file avcodec.h.
Referenced by avformat_find_stream_info(), ff_compute_frame_duration(), mpegvideo_extract_headers(), mpegvideo_parse(), parse_nal_units(), process_input_packet(), and vc1_extract_header().
int64_t AVCodecParserContext::pts |
Definition at line 5051 of file avcodec.h.
Referenced by av_parser_parse2(), dirac_combine_frame(), dvbsub_parse(), dvd_nav_parse(), ff_fetch_timestamp(), flac_parse(), flac_read_timestamp(), get_best_header(), h264_parse(), mpeg4_decode_header(), parse_packet(), read_frame_internal(), rv34_parse(), and update_initial_timestamps().
int64_t AVCodecParserContext::dts |
Definition at line 5052 of file avcodec.h.
Referenced by av_parser_parse2(), dirac_combine_frame(), ff_fetch_timestamp(), ff_rfps_add_frame(), h264_parse(), mpeg4_decode_header(), parse_packet(), select_from_pts_buffer(), and update_initial_timestamps().
int64_t AVCodecParserContext::last_pts |
Definition at line 5055 of file avcodec.h.
Referenced by av_parser_parse2(), dirac_combine_frame(), and dvbsub_parse().
int64_t AVCodecParserContext::last_dts |
Definition at line 5056 of file avcodec.h.
Referenced by av_parser_parse2(), av_read_frame(), and dirac_combine_frame().
int AVCodecParserContext::fetch_timestamp |
Definition at line 5057 of file avcodec.h.
Referenced by av_parser_init(), av_parser_parse2(), and dvbsub_parse().
int AVCodecParserContext::cur_frame_start_index |
Definition at line 5060 of file avcodec.h.
Referenced by av_parser_parse2(), and dvbsub_parse().
int64_t AVCodecParserContext::cur_frame_offset[AV_PARSER_PTS_NB] |
Definition at line 5061 of file avcodec.h.
Referenced by av_parser_parse2(), and ff_fetch_timestamp().
int64_t AVCodecParserContext::cur_frame_pts[AV_PARSER_PTS_NB] |
Definition at line 5062 of file avcodec.h.
Referenced by av_parser_parse2(), dvbsub_parse(), and ff_fetch_timestamp().
int64_t AVCodecParserContext::cur_frame_dts[AV_PARSER_PTS_NB] |
Definition at line 5063 of file avcodec.h.
Referenced by av_parser_parse2(), and ff_fetch_timestamp().
int AVCodecParserContext::flags |
Definition at line 5065 of file avcodec.h.
Referenced by av_parser_parse2(), avformat_find_stream_info(), cavsvideo_parse(), dca_parse(), dirac_parse(), dnxhd_parse(), ff_add_index_entry(), ff_qsv_process_data(), flac_parse(), flac_read_timestamp(), get_best_header(), h261_parse(), h263_parse(), h264_parse(), hevc_parse(), jpeg_parse(), latm_parse(), mlp_parse(), mpeg4_decode_header(), mpeg4video_parse(), mpegaudio_parse(), mpegvideo_parse(), old_flac_header(), parse_packet(), read_frame_internal(), sbc_parse(), tak_parse(), and vc1_parse().
int64_t AVCodecParserContext::offset |
byte offset from starting packet start
Definition at line 5072 of file avcodec.h.
Referenced by compute_pkt_fields(), estimate_timings_from_pts(), and ff_fetch_timestamp().
int64_t AVCodecParserContext::cur_frame_end[AV_PARSER_PTS_NB] |
Definition at line 5073 of file avcodec.h.
Referenced by av_parser_parse2(), and ff_fetch_timestamp().
int AVCodecParserContext::key_frame |
Set by parser to 1 for key frames and 0 for non-key frames.
It is initialized to -1, so if the parser doesn't set this flag, old-style fallback using AV_PICTURE_TYPE_I picture type as key frames will be used.
Definition at line 5081 of file avcodec.h.
Referenced by av_parser_init(), hevc_parse_slice_header(), parse(), parse_nal_units(), parse_packet(), tak_parse(), and xma_parse().
attribute_deprecated int64_t AVCodecParserContext::convergence_duration |
Definition at line 5088 of file avcodec.h.
Referenced by av_parser_init(), and compute_pkt_fields().
int AVCodecParserContext::dts_sync_point |
Synchronization point for start of timestamp generation.
Set to >0 for sync point, 0 for no sync point and <0 for undefined (default).
For example, this corresponds to presence of H.264 buffering period SEI message.
Definition at line 5101 of file avcodec.h.
Referenced by av_parser_init(), and h264_parse().
int AVCodecParserContext::dts_ref_dts_delta |
Offset of the current timestamp against last timestamp sync point in units of AVCodecContext.time_base.
Set to INT_MIN when dts_sync_point unused. Otherwise, it must contain a valid timestamp offset.
Note that the timestamp of sync point has usually a nonzero dts_ref_dts_delta, which refers to the previous sync point. Offset of the next frame after timestamp sync point will be usually 1.
For example, this corresponds to H.264 cpb_removal_delay.
Definition at line 5116 of file avcodec.h.
Referenced by av_parser_init(), and h264_parse().
int AVCodecParserContext::pts_dts_delta |
Presentation delay of current frame in units of AVCodecContext.time_base.
Set to INT_MIN when dts_sync_point unused. Otherwise, it must contain valid non-negative timestamp delta (presentation time of a frame must not lie in the past).
This delay represents the difference between decoding and presentation time of the frame.
For example, this corresponds to H.264 dpb_output_delay.
Definition at line 5130 of file avcodec.h.
Referenced by av_parser_init(), and h264_parse().
int64_t AVCodecParserContext::cur_frame_pos[AV_PARSER_PTS_NB] |
Position of the packet in file.
Analogous to cur_frame_pts/dts
Definition at line 5137 of file avcodec.h.
Referenced by av_parser_parse2(), and ff_fetch_timestamp().
int64_t AVCodecParserContext::pos |
Byte position of currently parsed frame in stream.
Definition at line 5142 of file avcodec.h.
Referenced by av_parser_parse2(), ff_add_index_entry(), ff_fetch_timestamp(), ff_gen_search(), ff_seek_frame_binary(), and parse_packet().
int64_t AVCodecParserContext::last_pos |
Previous frame byte position.
Definition at line 5147 of file avcodec.h.
Referenced by av_parser_parse2().
int AVCodecParserContext::duration |
Duration of the current frame.
For audio, this is in units of 1 / AVCodecContext.sample_rate. For all other types, this is in units of AVCodecContext.time_base.
Definition at line 5154 of file avcodec.h.
Referenced by adx_parse(), av_vorbis_parse_init(), compute_pkt_fields(), cook_parse(), dca_parse(), dvaudio_parse(), dvd_nav_parse(), estimate_timings_from_bit_rate(), estimate_timings_from_pts(), ff_aac_ac3_parse(), ff_rfps_add_frame(), flac_parse(), g729_parse(), get_best_header(), gsm_parse(), mlp_parse(), mpegaudio_parse(), opus_find_frame_end(), parse_packet(), read_frame_internal(), sbc_parse_header(), tak_parse(), update_initial_durations(), update_stream_timings(), and xma_parse().
enum AVFieldOrder AVCodecParserContext::field_order |
Definition at line 5156 of file avcodec.h.
Referenced by ff_qsv_process_data(), hevc_parse_slice_header(), mpegvideo_extract_headers(), parse(), parse_nal_units(), and vc1_extract_header().
enum AVPictureStructure AVCodecParserContext::picture_structure |
Indicate whether a picture is coded as a frame, top field or bottom field.
For example, H.264 field_pic_flag equal to 0 corresponds to AV_PICTURE_STRUCTURE_FRAME. An H.264 picture with field_pic_flag equal to 1 and bottom_field_flag equal to 0 corresponds to AV_PICTURE_STRUCTURE_TOP_FIELD.
Definition at line 5166 of file avcodec.h.
Referenced by hevc_parse_slice_header(), parse(), and parse_nal_units().
int AVCodecParserContext::output_picture_number |
Picture number incremented in presentation or output order.
This field may be reinitialized at the first picture of a new sequence.
For example, this corresponds to H.264 PicOrderCnt.
Definition at line 5174 of file avcodec.h.
Referenced by hevc_parse_slice_header(), and parse_nal_units().
int AVCodecParserContext::width |
Dimensions of the decoded video intended for presentation.
Definition at line 5179 of file avcodec.h.
Referenced by ff_qsv_process_data(), hevc_parse_slice_header(), mpegvideo_extract_headers(), parse(), parse_nal_units(), and vc1_extract_header().
int AVCodecParserContext::height |
Definition at line 5180 of file avcodec.h.
Referenced by ff_qsv_process_data(), hevc_parse_slice_header(), mpegvideo_extract_headers(), parse(), parse_nal_units(), and vc1_extract_header().
int AVCodecParserContext::coded_width |
Dimensions of the coded video.
Definition at line 5185 of file avcodec.h.
Referenced by ff_qsv_process_data(), hevc_parse_slice_header(), mpegvideo_extract_headers(), parse(), parse_nal_units(), and vc1_extract_header().
int AVCodecParserContext::coded_height |
Definition at line 5186 of file avcodec.h.
Referenced by ff_qsv_process_data(), hevc_parse_slice_header(), mpegvideo_extract_headers(), parse(), parse_nal_units(), and vc1_extract_header().
int AVCodecParserContext::format |
The format of the coded data, corresponds to enum AVPixelFormat for video and for enum AVSampleFormat for audio.
Note that a decoder can have considerable freedom in how exactly it decodes the data, so the format reported here might be different from the one returned by a decoder.
Definition at line 5196 of file avcodec.h.
Referenced by av_parser_init(), ff_qsv_process_data(), hevc_parse_slice_header(), mpegvideo_extract_headers(), parse(), parse_nal_units(), and vc1_extract_header().