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) 98 #define RAW_PACKET_BUFFER_SIZE 2500000 113 #if FF_API_COMPUTE_PKT_FIELDS2 114 int missing_ts_warning;
197 #define dynarray_add(tab, nb_ptr, elem)\ 199 __typeof__(tab) _tab = (tab);\ 200 __typeof__(elem) _elem = (elem);\ 201 (void)sizeof(**_tab == _elem); \ 202 av_dynarray_add(_tab, nb_ptr, _elem);\ 205 #define dynarray_add(tab, nb_ptr, elem)\ 207 av_dynarray_add((tab), nb_ptr, (elem));\ 243 #define NTP_OFFSET 2208988800ULL 244 #define NTP_OFFSET_US (NTP_OFFSET * 1000000ULL) 276 const char *dest_addr,
const char *dest_type,
343 #define SPACE_CHARS " \t\r\n" 356 int key_len,
char **dest,
int *dest_len);
385 int *nb_index_entries,
386 unsigned int *index_entries_allocated_size,
463 unsigned int pts_num,
unsigned int pts_den);
579 int ff_rename(
const char *url_src,
const char *url_dst,
void *logctx);
633 #define FFERROR_REDO FFERRTAG('R','E','D','O') 679 #define CONTAINS_PAL 2 742 #define FF_PACKETLIST_FLAG_REF_PACKET (1 << 0)
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.
static void flush(AVCodecContext *avctx)
int reorder
Set to 1 if the codec allows reordering, so pts can be different from dts.
The bitstream filter state.
This struct describes the properties of an encoded stream.
miscellaneous OS support macros and functions.
The exact value of the fractional number is: 'val + num / den'.
static av_cold int end(AVCodecContext *avctx)
int avctx_inited
1 if avctx has been initialized with the values from the codec parameters
#define i(width, name, range_min, range_max)
AVCodecID
Identify the syntax and semantics of the bitstream.
static float distance(float x, float y, int band)
typedef void(RENAME(mix_any_func_type))
main external API structure.
static av_always_inline void RENAME() interleave(TYPE *dst, TYPE *src0, TYPE *src1, int w2, int add, int shift)
Rational number (pair of numerator and denominator).
int need_context_update
Whether the internal avctx needs to be updated from codecpar (after a late change to codecpar) ...
#define flags(name, subs,...)
const OptionDef options[]
AVCodecContext * avctx
The codec context used by avformat_find_stream_info, the parser, etc.
AVChromaLocation
Location of chroma samples.
This structure stores compressed data.