21 #ifndef AVFORMAT_INTERNAL_H 22 #define AVFORMAT_INTERNAL_H 28 #define MAX_URL_SIZE 4096 31 # define hex_dump_debug(class, buf, size) av_hex_dump_log(class, AV_LOG_DEBUG, buf, size) 33 # define hex_dump_debug(class, buf, size) 80 #define RAW_PACKET_BUFFER_SIZE 2500000 94 #if FF_API_COMPUTE_PKT_FIELDS2 95 int missing_ts_warning;
116 #if FF_API_LAVF_AVCTX 119 int need_codec_update;
126 #define dynarray_add(tab, nb_ptr, elem)\ 128 __typeof__(tab) _tab = (tab);\ 129 __typeof__(elem) _elem = (elem);\ 130 (void)sizeof(**_tab == _elem); \ 131 ff_dynarray_add((intptr_t **)_tab, nb_ptr, (intptr_t)_elem);\ 134 #define dynarray_add(tab, nb_ptr, elem)\ 136 ff_dynarray_add((intptr_t **)(tab), nb_ptr, (intptr_t)(elem));\ 165 #define NTP_OFFSET 2208988800ULL 166 #define NTP_OFFSET_US (NTP_OFFSET * 1000000ULL) 190 const char *dest_addr,
const char *dest_type,
230 #define SPACE_CHARS " \t\r\n" 243 int key_len,
char **dest,
int *dest_len);
266 int64_t wanted_timestamp,
int flags);
272 int *nb_index_entries,
273 unsigned int *index_entries_allocated_size,
288 int64_t start, int64_t end,
const char *title);
312 int64_t target_ts,
int flags);
331 int64_t target_ts, int64_t pos_min,
332 int64_t pos_max, int64_t pos_limit,
333 int64_t ts_min, int64_t ts_max,
334 int flags, int64_t *ts_ret,
335 int64_t (*read_timestamp)(
struct AVFormatContext *,
int , int64_t *, int64_t ));
350 unsigned int pts_num,
unsigned int pts_den);
357 uint64_t channel_layout,
int32_t sample_rate,
431 static inline int ff_rename(
const char *oldpath,
const char *newpath)
433 if (rename(oldpath, newpath) == -1)
int reorder
Set to 1 if the codec allows reordering, so pts can be different from dts.
miscellaneous OS support macros and functions.
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.
static float distance(float x, float y, int band)
main external API structure.
static void(WINAPI *cond_broadcast)(pthread_cond_t *cond)
rational number numerator/denominator
static av_cold void flush(AVCodecContext *avctx)
Flush (reset) the frame ID after seeking.
AVCodecContext * avctx
The codec context used by avformat_find_stream_info, the parser, etc.
This structure stores compressed data.