|
FFmpeg
|
#include <stdint.h>#include "config.h"#include "libavutil/avassert.h"#include "libavutil/avstring.h"#include "libavutil/dict.h"#include "libavutil/internal.h"#include "libavutil/intreadwrite.h"#include "libavutil/mathematics.h"#include "libavutil/opt.h"#include "libavutil/pixfmt.h"#include "libavutil/time.h"#include "libavutil/timestamp.h"#include "libavcodec/bsf.h"#include "libavcodec/internal.h"#include "libavcodec/packet_internal.h"#include "libavcodec/raw.h"#include "avformat.h"#include "avio_internal.h"#include "id3v2.h"#include "internal.h"#include "url.h"Go to the source code of this file.
Macros | |
| #define | DURATION_MAX_READ_SIZE 250000LL |
| #define | DURATION_MAX_RETRY 6 |
| #define | FAIL(errmsg) |
Variables | |
| static const char *const | duration_name [] |
| #define FAIL | ( | errmsg | ) |
|
static |
Definition at line 48 of file demux.c.
Referenced by ff_read_packet(), and ff_wrap_timestamp().
| int64_t ff_wrap_timestamp | ( | const AVStream * | st, |
| int64_t | timestamp | ||
| ) |
Wrap a given time stamp, if there is an indication for an overflow.
| st | stream |
| timestamp | the time stamp to wrap |
Definition at line 63 of file demux.c.
Referenced by av_add_index_entry(), and read_timestamp().
|
static |
Definition at line 68 of file demux.c.
Referenced by avformat_find_stream_info(), and try_decode_frame().
|
static |
Definition at line 98 of file demux.c.
Referenced by probe_codec().
|
static |
Definition at line 150 of file demux.c.
Referenced by avformat_open_input().
|
static |
Definition at line 181 of file demux.c.
Referenced by avformat_open_input().
|
static |
Definition at line 381 of file demux.c.
Referenced by ff_read_packet(), and probe_codec().
|
static |
Definition at line 403 of file demux.c.
Referenced by ff_read_packet(), and find_probe_decoder().
|
static |
Definition at line 456 of file demux.c.
Referenced by ff_read_packet().
| int ff_read_packet | ( | AVFormatContext * | s, |
| AVPacket * | pkt | ||
| ) |
Read a transport packet from a media file.
| s | media file handle |
| pkt | is filled |
Definition at line 524 of file demux.c.
Referenced by asfrtp_parse_packet(), estimate_timings_from_pts(), get_subtitle_pkt(), read_frame_internal(), read_gab2_sub(), and seek_subtitle().
|
static |
Return the frame duration in seconds.
Return 0 if not available.
Definition at line 642 of file demux.c.
Referenced by compute_pkt_fields(), and estimate_timings_from_pts().
Definition at line 698 of file demux.c.
Referenced by avformat_find_stream_info(), compute_pkt_fields(), try_decode_frame(), and update_initial_timestamps().
|
static |
Definition at line 717 of file demux.c.
Referenced by update_dts_from_pts(), update_initial_durations(), and update_initial_timestamps().
|
static |
Definition at line 728 of file demux.c.
Referenced by compute_pkt_fields(), and update_dts_from_pts().
|
static |
Updates the dts of packets of a stream in pkt_buffer, by re-ordering the pts of the packets in a window.
Definition at line 775 of file demux.c.
Referenced by avformat_find_stream_info(), and update_initial_timestamps().
|
static |
Definition at line 800 of file demux.c.
Referenced by compute_pkt_fields().
|
static |
Definition at line 853 of file demux.c.
Referenced by compute_pkt_fields().
|
static |
Definition at line 912 of file demux.c.
Referenced by parse_packet(), and read_frame_internal().
|
static |
Parse a packet, add all split parts to parse_queue.
| pkt | Packet to parse; must not be NULL. |
| flush | Indicates whether to flush. If set, pkt must be blank. |
Definition at line 1105 of file demux.c.
Referenced by read_frame_internal().
|
static |
Definition at line 1215 of file demux.c.
Referenced by read_frame_internal().
|
static |
Definition at line 1220 of file demux.c.
Referenced by av_read_frame(), and avformat_find_stream_info().
|
static |
Return TRUE if the stream has accurate duration in any stream.
Definition at line 1512 of file demux.c.
Referenced by estimate_timings().
|
static |
Estimate the stream timings from the one of each components.
Also computes the global bitrate if possible.
Definition at line 1529 of file demux.c.
Referenced by estimate_timings(), and fill_all_stream_timings().
|
static |
Definition at line 1623 of file demux.c.
Referenced by estimate_timings(), and estimate_timings_from_pts().
|
static |
Definition at line 1640 of file demux.c.
Referenced by estimate_timings().
|
static |
Definition at line 1697 of file demux.c.
Referenced by estimate_timings().
|
static |
Definition at line 1843 of file demux.c.
Referenced by estimate_timings().
|
static |
Definition at line 1848 of file demux.c.
Referenced by avformat_find_stream_info().
|
static |
Definition at line 1897 of file demux.c.
Referenced by has_codec_parameters().
Definition at line 1910 of file demux.c.
Referenced by avformat_find_stream_info(), and try_decode_frame().
|
static |
Definition at line 1959 of file demux.c.
Referenced by avformat_find_stream_info().
|
static |
Definition at line 2061 of file demux.c.
Referenced by compute_chapters_end().
|
static |
Definition at line 2071 of file demux.c.
Referenced by avformat_find_stream_info().
Definition at line 2108 of file demux.c.
Referenced by avformat_find_stream_info(), ff_rfps_add_frame(), and ff_rfps_calculate().
|
static |
Definition at line 2132 of file demux.c.
Referenced by avformat_find_stream_info(), and ff_rfps_calculate().
| int ff_rfps_add_frame | ( | AVFormatContext * | ic, |
| AVStream * | st, | ||
| int64_t | dts | ||
| ) |
add frame for rfps calculation.
| dts | timestamp of the i-th frame |
Definition at line 2147 of file demux.c.
Referenced by avformat_find_stream_info(), and mov_build_index().
| void ff_rfps_calculate | ( | AVFormatContext * | ic | ) |
Definition at line 2207 of file demux.c.
Referenced by avformat_find_stream_info(), and mov_read_header().
Definition at line 2271 of file demux.c.
Referenced by avformat_find_stream_info(), and extract_extradata_init().
Definition at line 2287 of file demux.c.
Referenced by extract_extradata().
|
static |
Definition at line 2326 of file demux.c.
Referenced by avformat_find_stream_info().
|
static |
Definition at line 2375 of file demux.c.
Referenced by avformat_find_stream_info().
|
static |
Definition at line 1837 of file demux.c.
Referenced by duration_estimate_name().
1.8.17