FFmpeg
|
#include <internal.h>
Data Fields | |
int | reorder |
Set to 1 if the codec allows reordering, so pts can be different from dts. More... | |
AVBSFContext * | bsfc |
bitstream filter to run on stream More... | |
int | bitstream_checked |
Whether or not check_bitstream should still be run on each packet. More... | |
AVCodecContext * | avctx |
The codec context used by avformat_find_stream_info, the parser, etc. More... | |
int | avctx_inited |
1 if avctx has been initialized with the values from the codec parameters More... | |
enum AVCodecID | orig_codec_id |
struct { | |
AVBSFContext * bsf | |
int inited | |
} | extract_extradata |
int | need_context_update |
Whether the internal avctx needs to be updated from codecpar (after a late change to codecpar) More... | |
int | is_intra_only |
FFFrac * | priv_pts |
struct { | |
int64_t last_dts | |
int64_t duration_gcd | |
int duration_count | |
int64_t rfps_duration_sum | |
double(* duration_error )[2][MAX_STD_TIMEBASES] | |
int64_t codec_info_duration | |
int64_t codec_info_duration_fields | |
int frame_delay_evidence | |
int found_decoder | |
0 -> decoder has not been searched for yet. More... | |
int64_t last_duration | |
int64_t fps_first_dts | |
Those are used for average framerate estimation. More... | |
int fps_first_dts_idx | |
int64_t fps_last_dts | |
int fps_last_dts_idx | |
} * | info |
Stream information used internally by avformat_find_stream_info() More... | |
AVIndexEntry * | index_entries |
Only used if the format does not support seeking natively. More... | |
int | nb_index_entries |
unsigned int | index_entries_allocated_size |
int64_t | interleaver_chunk_size |
int64_t | interleaver_chunk_duration |
int | request_probe |
stream probing state -1 -> probing finished 0 -> no probing requested rest -> perform probing with request_probe being the minimum score to accept. More... | |
int | skip_to_keyframe |
Indicates that everything up to the next keyframe should be discarded. More... | |
int | skip_samples |
Number of samples to skip at the start of the frame decoded from the next packet. More... | |
int64_t | start_skip_samples |
If not 0, the number of samples that should be skipped from the start of the stream (the samples are removed from packets with pts==0, which also assumes negative timestamps do not happen). More... | |
int64_t | first_discard_sample |
If not 0, the first audio sample that should be discarded from the stream. More... | |
int64_t | last_discard_sample |
The sample after last sample that is intended to be discarded after first_discard_sample. More... | |
int | nb_decoded_frames |
Number of internally decoded frames, used internally in libavformat, do not access its lifetime differs from info which is why it is not in that structure. More... | |
int64_t | mux_ts_offset |
Timestamp offset added to timestamps before muxing. More... | |
int64_t | pts_wrap_reference |
Internal data to check for wrapping of the time stamp. More... | |
int | pts_wrap_behavior |
Options for behavior, when a wrap is detected. More... | |
int | update_initial_durations_done |
Internal data to prevent doing update_initial_durations() twice. More... | |
int64_t | pts_reorder_error [MAX_REORDER_DELAY+1] |
Internal data to generate dts from pts. More... | |
uint8_t | pts_reorder_error_count [MAX_REORDER_DELAY+1] |
int64_t | pts_buffer [MAX_REORDER_DELAY+1] |
int64_t | last_dts_for_order_check |
Internal data to analyze DTS and detect faulty mpeg streams. More... | |
uint8_t | dts_ordered |
uint8_t | dts_misordered |
int | inject_global_side_data |
Internal data to inject global side data. More... | |
AVRational | display_aspect_ratio |
display aspect ratio (0 if unknown) More... | |
AVProbeData | probe_data |
struct PacketList * | last_in_packet_buffer |
last packet in packet_buffer for this stream when muxing. More... | |
Definition at line 170 of file internal.h.
int AVStreamInternal::reorder |
Set to 1 if the codec allows reordering, so pts can be different from dts.
Definition at line 175 of file internal.h.
Referenced by init_muxer(), and prepare_input_packet().
AVBSFContext* AVStreamInternal::bsfc |
bitstream filter to run on stream
Definition at line 182 of file internal.h.
Referenced by dash_check_bitstream(), ff_stream_add_bitstream_filter(), free_stream(), seg_check_bitstream(), write_packets_common(), and write_packets_from_bsfs().
int AVStreamInternal::bitstream_checked |
Whether or not check_bitstream should still be run on each packet.
Definition at line 187 of file internal.h.
Referenced by check_bitstream().
AVCodecContext* AVStreamInternal::avctx |
The codec context used by avformat_find_stream_info, the parser, etc.
Definition at line 192 of file internal.h.
Referenced by av_guess_frame_rate(), av_stream_get_codec_timebase(), avformat_find_stream_info(), avformat_new_stream(), compute_pkt_fields(), estimate_timings_from_bit_rate(), extract_extradata(), ff_compute_frame_duration(), ff_raw_video_read_header(), ff_rfps_calculate(), flac_read_timestamp(), free_stream(), has_codec_parameters(), has_decode_delay_been_guessed(), mpegts_set_stream_info(), parse_packet(), read_frame_internal(), read_header(), select_from_pts_buffer(), try_decode_frame(), update_dts_from_pts(), update_initial_durations(), and update_stream_avctx().
int AVStreamInternal::avctx_inited |
1 if avctx has been initialized with the values from the codec parameters
Definition at line 196 of file internal.h.
Referenced by avformat_find_stream_info(), and ff_compute_frame_duration().
enum AVCodecID AVStreamInternal::orig_codec_id |
Definition at line 198 of file internal.h.
Referenced by avformat_find_stream_info().
AVBSFContext* AVStreamInternal::bsf |
Definition at line 204 of file internal.h.
Referenced by avformat_find_stream_info(), extract_extradata(), extract_extradata_init(), and free_stream().
int AVStreamInternal::inited |
Definition at line 205 of file internal.h.
Referenced by avformat_find_stream_info(), extract_extradata(), and extract_extradata_init().
struct { ... } AVStreamInternal::extract_extradata |
Referenced by avformat_find_stream_info(), extract_extradata(), extract_extradata_init(), and free_stream().
int AVStreamInternal::need_context_update |
Whether the internal avctx needs to be updated from codecpar (after a late change to codecpar)
Definition at line 211 of file internal.h.
Referenced by avformat_new_stream(), ff_parse_mpeg2_descriptor(), flv_get_extradata(), flv_set_video_codec(), m4sl_cb(), mpegts_find_stream_type(), mpegts_set_stream_info(), ogm_header(), read_frame_internal(), set_codec_from_probe_data(), set_stream_info_from_input_stream(), and update_stream_avctx().
int AVStreamInternal::is_intra_only |
Definition at line 213 of file internal.h.
Referenced by init_muxer(), and prepare_input_packet().
FFFrac* AVStreamInternal::priv_pts |
Definition at line 215 of file internal.h.
Referenced by av_stream_get_end_pts(), free_stream(), and init_pts().
int64_t AVStreamInternal::last_dts |
Definition at line 222 of file internal.h.
Referenced by avformat_find_stream_info(), avformat_new_stream(), ff_rfps_add_frame(), and ff_rfps_calculate().
int64_t AVStreamInternal::duration_gcd |
Definition at line 223 of file internal.h.
Referenced by ff_rfps_add_frame(), and ff_rfps_calculate().
int AVStreamInternal::duration_count |
Definition at line 224 of file internal.h.
Referenced by avformat_find_stream_info(), ff_rfps_add_frame(), and ff_rfps_calculate().
int64_t AVStreamInternal::rfps_duration_sum |
Definition at line 225 of file internal.h.
Referenced by ff_rfps_add_frame(), and ff_rfps_calculate().
double(* AVStreamInternal::duration_error)[2][MAX_STD_TIMEBASES] |
Definition at line 226 of file internal.h.
Referenced by avformat_find_stream_info(), ff_rfps_add_frame(), ff_rfps_calculate(), and free_stream().
int64_t AVStreamInternal::codec_info_duration |
Definition at line 227 of file internal.h.
Referenced by avformat_find_stream_info(), and ff_rfps_calculate().
int64_t AVStreamInternal::codec_info_duration_fields |
Definition at line 228 of file internal.h.
Referenced by avformat_find_stream_info().
int AVStreamInternal::frame_delay_evidence |
Definition at line 229 of file internal.h.
Referenced by avformat_find_stream_info().
int AVStreamInternal::found_decoder |
0 -> decoder has not been searched for yet.
>0 -> decoder found <0 -> decoder with codec_id == -found_decoder has not been found
Definition at line 236 of file internal.h.
Referenced by avformat_find_stream_info(), has_codec_parameters(), read_frame_internal(), and try_decode_frame().
int64_t AVStreamInternal::last_duration |
Definition at line 238 of file internal.h.
Referenced by estimate_timings_from_pts().
int64_t AVStreamInternal::fps_first_dts |
Those are used for average framerate estimation.
Definition at line 243 of file internal.h.
Referenced by avformat_find_stream_info(), and avformat_new_stream().
int AVStreamInternal::fps_first_dts_idx |
Definition at line 244 of file internal.h.
Referenced by avformat_find_stream_info().
int64_t AVStreamInternal::fps_last_dts |
Definition at line 245 of file internal.h.
Referenced by avformat_find_stream_info(), and avformat_new_stream().
int AVStreamInternal::fps_last_dts_idx |
Definition at line 246 of file internal.h.
Referenced by avformat_find_stream_info().
struct { ... } * AVStreamInternal::info |
Stream information used internally by avformat_find_stream_info()
Referenced by avformat_find_stream_info(), avformat_new_stream(), estimate_timings_from_pts(), ff_rfps_add_frame(), ff_rfps_calculate(), free_stream(), has_codec_parameters(), has_decode_delay_been_guessed(), read_frame_internal(), and try_decode_frame().
AVIndexEntry* AVStreamInternal::index_entries |
Only used if the format does not support seeking natively.
Definition at line 250 of file internal.h.
Referenced by add_index_entry(), ape_read_seek(), asf_read_seek(), av_add_index_entry(), av_index_search_timestamp(), avformat_index_get_entry(), avformat_index_get_entry_from_timestamp(), avi_read_idx1(), avi_read_packet(), avi_read_seek(), avi_sync(), calculate_bitrate(), check_stream_max_drift(), cine_read_packet(), clean_index(), clear_index_entries(), dhav_read_seek(), ff_configure_buffers_for_index(), ff_reduce_index(), ff_seek_frame_binary(), film_read_seek(), find_prev_closest_index(), fix_index_entry_timestamps(), free_stream(), guess_ni_flag(), gxf_seek(), ifv_read_packet(), img_read_seek(), mov_build_index(), mov_estimate_video_delay(), mov_find_next_sample(), mov_fix_index(), mov_get_skip_samples(), mov_read_chapters(), mov_read_packet(), mov_read_rtmd_track(), mov_read_seek(), mov_read_timecode_track(), mov_read_trun(), mp3_read_header(), mp3_seek(), mpc8_read_seek(), mpc_read_seek(), mv_read_packet(), ni_prepare_read(), nsv_read_seek(), nut_write_packet(), read_header(), read_packet(), read_seek(), reset_index_position(), rl2_read_seek(), rpl_read_packet(), scan_file(), seek_frame_generic(), tta_read_packet(), tta_read_seek(), voc_read_seek(), and webm_dash_manifest_compute_bandwidth().
int AVStreamInternal::nb_index_entries |
Definition at line 252 of file internal.h.
Referenced by add_index_entry(), add_keyframes_index(), av_add_index_entry(), av_index_search_timestamp(), avformat_index_get_entries_count(), avformat_index_get_entry(), avformat_index_get_entry_from_timestamp(), avi_read_header(), avi_read_idx1(), avi_read_packet(), avi_read_seek(), avi_sync(), calculate_bitrate(), check_stream_max_drift(), cine_read_packet(), clean_index(), clear_index_entries(), ff_configure_buffers_for_index(), ff_reduce_index(), find_prev_closest_index(), guess_ni_flag(), ifv_read_packet(), mov_build_index(), mov_estimate_video_delay(), mov_find_next_sample(), mov_fix_index(), mov_read_chapters(), mov_read_packet(), mov_read_rtmd_track(), mov_read_timecode_track(), mov_read_trun(), mp3_read_header(), mpc_read_seek(), ni_prepare_read(), nut_write_packet(), read_header(), read_packet(), read_seek(), reset_index_position(), rpl_read_packet(), scan_file(), seek_frame_generic(), tta_read_packet(), voc_read_seek(), and webm_dash_manifest_compute_bandwidth().
unsigned int AVStreamInternal::index_entries_allocated_size |
Definition at line 253 of file internal.h.
Referenced by add_index_entry(), av_add_index_entry(), mov_build_index(), mov_fix_index(), mov_read_trun(), and scan_file().
int64_t AVStreamInternal::interleaver_chunk_size |
Definition at line 255 of file internal.h.
Referenced by ff_interleave_add_packet().
int64_t AVStreamInternal::interleaver_chunk_duration |
Definition at line 256 of file internal.h.
Referenced by ff_interleave_add_packet().
int AVStreamInternal::request_probe |
stream probing state -1 -> probing finished 0 -> no probing requested rest -> perform probing with request_probe being the minimum score to accept.
Definition at line 264 of file internal.h.
Referenced by asf_read_stream_properties(), avformat_find_stream_info(), avi_read_header(), ff_parse_mpeg2_descriptor(), ff_read_packet(), mpegps_read_packet(), mpegts_find_stream_type(), mpegts_push_data(), mpegts_set_stream_info(), probe_codec(), and set_codec_from_probe_data().
int AVStreamInternal::skip_to_keyframe |
Indicates that everything up to the next keyframe should be discarded.
Definition at line 269 of file internal.h.
Referenced by read_frame_internal().
int AVStreamInternal::skip_samples |
Number of samples to skip at the start of the frame decoded from the next packet.
Definition at line 274 of file internal.h.
Referenced by ff_read_frame_flush(), mov_fix_index(), mov_read_header(), mov_read_seek(), read_frame_internal(), and update_initial_timestamps().
int64_t AVStreamInternal::start_skip_samples |
If not 0, the number of samples that should be skipped from the start of the stream (the samples are removed from packets with pts==0, which also assumes negative timestamps do not happen).
Intended for use with formats such as mp3 with ad-hoc gapless audio support.
Definition at line 283 of file internal.h.
Referenced by mp3_parse_info_tag(), and read_frame_internal().
int64_t AVStreamInternal::first_discard_sample |
If not 0, the first audio sample that should be discarded from the stream.
This is broken by design (needs global sample count), but can't be avoided for broken by design formats such as mp3 with ad-hoc gapless audio support.
Definition at line 291 of file internal.h.
Referenced by mp3_parse_info_tag(), and read_frame_internal().
int64_t AVStreamInternal::last_discard_sample |
The sample after last sample that is intended to be discarded after first_discard_sample.
Works on frame boundaries only. Used to prevent early EOF if the gapless info is broken (considered concatenated mp3s).
Definition at line 298 of file internal.h.
Referenced by mp3_parse_info_tag().
int AVStreamInternal::nb_decoded_frames |
Number of internally decoded frames, used internally in libavformat, do not access its lifetime differs from info which is why it is not in that structure.
Definition at line 304 of file internal.h.
Referenced by has_codec_parameters(), has_decode_delay_been_guessed(), and try_decode_frame().
int64_t AVStreamInternal::mux_ts_offset |
Timestamp offset added to timestamps before muxing.
Definition at line 309 of file internal.h.
Referenced by ff_get_muxer_ts_offset(), and write_packet().
int64_t AVStreamInternal::pts_wrap_reference |
Internal data to check for wrapping of the time stamp.
Definition at line 314 of file internal.h.
Referenced by avformat_new_stream(), mpegts_push_data(), update_wrap_reference(), and wrap_timestamp().
int AVStreamInternal::pts_wrap_behavior |
Options for behavior, when a wrap is detected.
Defined by AV_PTS_WRAP_ values.
If correction is enabled, there are two possibilities: If the first time stamp is near the wrap point, the wrap offset will be subtracted, which will create negative time stamps. Otherwise the offset will be added.
Definition at line 326 of file internal.h.
Referenced by avformat_new_stream(), ff_read_packet(), mpegts_push_data(), update_wrap_reference(), and wrap_timestamp().
int AVStreamInternal::update_initial_durations_done |
Internal data to prevent doing update_initial_durations() twice.
Definition at line 331 of file internal.h.
Referenced by update_initial_durations().
int64_t AVStreamInternal::pts_reorder_error[MAX_REORDER_DELAY+1] |
Internal data to generate dts from pts.
Definition at line 338 of file internal.h.
Referenced by select_from_pts_buffer().
uint8_t AVStreamInternal::pts_reorder_error_count[MAX_REORDER_DELAY+1] |
Definition at line 339 of file internal.h.
Referenced by select_from_pts_buffer().
int64_t AVStreamInternal::pts_buffer[MAX_REORDER_DELAY+1] |
Definition at line 341 of file internal.h.
Referenced by avformat_new_stream(), compute_pkt_fields(), estimate_timings_from_pts(), and ff_read_frame_flush().
int64_t AVStreamInternal::last_dts_for_order_check |
Internal data to analyze DTS and detect faulty mpeg streams.
Definition at line 346 of file internal.h.
Referenced by avformat_new_stream(), compute_pkt_fields(), estimate_timings_from_pts(), and ff_read_frame_flush().
uint8_t AVStreamInternal::dts_ordered |
Definition at line 347 of file internal.h.
Referenced by compute_pkt_fields().
uint8_t AVStreamInternal::dts_misordered |
Definition at line 348 of file internal.h.
Referenced by compute_pkt_fields().
int AVStreamInternal::inject_global_side_data |
Internal data to inject global side data.
Definition at line 353 of file internal.h.
Referenced by av_format_inject_global_side_data(), avformat_new_stream(), ff_read_frame_flush(), and read_frame_internal().
AVRational AVStreamInternal::display_aspect_ratio |
display aspect ratio (0 if unknown)
Definition at line 360 of file internal.h.
Referenced by avformat_find_stream_info(), and mxf_parse_structural_metadata().
AVProbeData AVStreamInternal::probe_data |
Definition at line 362 of file internal.h.
Referenced by free_stream(), and probe_codec().
struct PacketList* AVStreamInternal::last_in_packet_buffer |
last packet in packet_buffer for this stream when muxing.
Definition at line 367 of file internal.h.
Referenced by ff_interleave_add_packet(), and ff_interleave_packet_per_dts().