21 #ifndef AVFORMAT_INTERNAL_H
22 #define AVFORMAT_INTERNAL_H
27 #define MAX_URL_SIZE 4096
30 # define hex_dump_debug(class, buf, size) av_hex_dump_log(class, AV_LOG_DEBUG, buf, size)
32 # define hex_dump_debug(class, buf, size)
56 #define dynarray_add(tab, nb_ptr, elem)\
58 __typeof__(tab) _tab = (tab);\
59 __typeof__(elem) _elem = (elem);\
60 (void)sizeof(**_tab == _elem); \
61 ff_dynarray_add((intptr_t **)_tab, nb_ptr, (intptr_t)_elem);\
64 #define dynarray_add(tab, nb_ptr, elem)\
66 ff_dynarray_add((intptr_t **)(tab), nb_ptr, (intptr_t)(elem));\
95 #define NTP_OFFSET 2208988800ULL
96 #define NTP_OFFSET_US (NTP_OFFSET * 1000000ULL)
120 const char *dest_addr,
const char *dest_type,
160 #define SPACE_CHARS " \t\r\n"
173 int key_len,
char **dest,
int *dest_len);
196 int64_t wanted_timestamp,
int flags);
202 int *nb_index_entries,
203 unsigned int *index_entries_allocated_size,
218 int64_t start, int64_t end,
const char *title);
242 int64_t target_ts,
int flags);
261 int64_t target_ts, int64_t pos_min,
262 int64_t pos_max, int64_t pos_limit,
263 int64_t ts_min, int64_t ts_max,
264 int flags, int64_t *ts_ret,
265 int64_t (*read_timestamp)(
struct AVFormatContext *,
int , int64_t *, int64_t ));
280 unsigned int pts_num,
unsigned int pts_den);
287 uint64_t channel_layout,
int32_t sample_rate,