21 #ifndef AVFORMAT_INTERNAL_H 22 #define AVFORMAT_INTERNAL_H 30 #define MAX_URL_SIZE 4096 33 #define PROBE_BUF_MIN 2048 34 #define PROBE_BUF_MAX (1 << 20) 37 # define hex_dump_debug(class, buf, size) av_hex_dump_log(class, AV_LOG_DEBUG, buf, size) 39 # define hex_dump_debug(class, buf, size) do { if (0) av_hex_dump_log(class, AV_LOG_DEBUG, buf, size); } while(0) 60 int64_t
val, num, den;
98 #define RAW_PACKET_BUFFER_SIZE 2500000 113 #if FF_API_COMPUTE_PKT_FIELDS2 114 int missing_ts_warning;
200 #define MAX_STD_TIMEBASES (30*12+30+3+6) 316 #define MAX_REORDER_DELAY 16 354 #define dynarray_add(tab, nb_ptr, elem)\ 356 __typeof__(tab) _tab = (tab);\ 357 __typeof__(elem) _elem = (elem);\ 358 (void)sizeof(**_tab == _elem); \ 359 av_dynarray_add(_tab, nb_ptr, _elem);\ 362 #define dynarray_add(tab, nb_ptr, elem)\ 364 av_dynarray_add((tab), nb_ptr, (elem));\ 398 #define NTP_OFFSET 2208988800ULL 399 #define NTP_OFFSET_US (NTP_OFFSET * 1000000ULL) 431 const char *dest_addr,
const char *dest_type,
498 #define SPACE_CHARS " \t\r\n" 511 int key_len,
char **dest,
int *dest_len);
534 int64_t wanted_timestamp,
int flags);
540 int *nb_index_entries,
541 unsigned int *index_entries_allocated_size,
558 int64_t start, int64_t
end,
const char *title);
577 int64_t target_ts,
int flags);
590 int64_t (*read_timestamp)(
struct AVFormatContext *,
int , int64_t *, int64_t ));
599 int64_t target_ts, int64_t pos_min,
600 int64_t pos_max, int64_t pos_limit,
601 int64_t ts_min, int64_t ts_max,
602 int flags, int64_t *ts_ret,
603 int64_t (*read_timestamp)(
struct AVFormatContext *,
int , int64_t *, int64_t ));
618 unsigned int pts_num,
unsigned int pts_den);
734 int ff_rename(
const char *url_src,
const char *url_dst,
void *logctx);
788 #define FFERROR_REDO FFERRTAG('R','E','D','O') 834 #define CONTAINS_PAL 2
static float compare(const AVFrame *haystack, const AVFrame *obj, int offx, int offy)
AVBSFContext * bsfc
bitstream filter to run on stream
int bitstream_checked
Whether or not check_bitstream should still be run on each packet.
ptrdiff_t const GLvoid * data
static void flush(AVCodecContext *avctx)
int64_t last_dts_for_order_check
Internal data to analyze DTS and detect faulty mpeg streams.
int reorder
Set to 1 if the codec allows reordering, so pts can be different from dts.
The bitstream filter state.
int skip_samples
Number of samples to skip at the start of the frame decoded from the next packet. ...
int64_t interleaver_chunk_size
This struct describes the properties of an encoded stream.
static void interleave(uint8_t *dst, uint8_t *src, int w, int h, int dst_linesize, int src_linesize, enum FilterMode mode, int swap)
miscellaneous OS support macros and functions.
it s the only field you need to keep assuming you have a context There is some magic you don t need to care about around this just let it vf offset
it s the only field you need to keep assuming you have a context There is some magic you don t need to care about around this just let it vf default minimum maximum flags name is the option keep it simple and lowercase description are in lowercase
The exact value of the fractional number is: 'val + num / den'.
static av_cold int end(AVCodecContext *avctx)
struct AVPacketList * last_in_packet_buffer
last packet in packet_buffer for this stream when muxing.
int64_t mux_ts_offset
Timestamp offset added to timestamps before muxing.
int inject_global_side_data
Internal data to inject global side data.
int skip_to_keyframe
Indicates that everything up to the next keyframe should be discarded.
int avctx_inited
1 if avctx has been initialized with the values from the codec parameters
AVCodecID
Identify the syntax and semantics of the bitstream.
int pts_wrap_behavior
Options for behavior, when a wrap is detected.
int request_probe
stream probing state -1 -> probing finished 0 -> no probing requested rest -> perform probing with re...
int update_initial_durations_done
Internal data to prevent doing update_initial_durations() twice.
static float distance(float x, float y, int band)
AVIndexEntry * index_entries
Only used if the format does not support seeking natively.
int nb_decoded_frames
Number of internally decoded frames, used internally in libavformat, do not access its lifetime diffe...
AVRational display_aspect_ratio
display aspect ratio (0 if unknown)
int64_t codec_info_duration
int64_t codec_info_duration_fields
typedef void(APIENTRY *FF_PFNGLACTIVETEXTUREPROC)(GLenum texture)
int64_t fps_first_dts
Those are used for average framerate estimation.
int64_t last_discard_sample
The sample after last sample that is intended to be discarded after first_discard_sample.
int found_decoder
0 -> decoder has not been searched for yet.
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 ...
int64_t first_discard_sample
If not 0, the first audio sample that should be discarded from the stream.
main external API structure.
int64_t pts_wrap_reference
Internal data to check for wrapping of the time stamp.
it s the only field you need to keep assuming you have a context There is some magic you don t need to care about around this just let it be(in the first position) for now.Options-------Then comes the options array.This is what will define the user accessible options.For example
Rational number (pair of numerator and denominator).
int64_t rfps_duration_sum
int need_context_update
Whether the internal avctx needs to be updated from codecpar (after a late change to codecpar) ...
This structure contains the data a format has to probe a file.
unsigned int index_entries_allocated_size
#define flags(name, subs,...)
const OptionDef options[]
int64_t interleaver_chunk_duration
AVCodecContext * avctx
The codec context used by avformat_find_stream_info, the parser, etc.
AVChromaLocation
Location of chroma samples.
it s the only field you need to keep assuming you have a context There is some magic you don t need to care about around this just let it vf default minimum maximum flags name is the option keep it simple and lowercase description are in without and describe what they for example set the foo of the bar offset is the offset of the field in your local context
This structure stores compressed data.