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)
36 #define MAX_PROBE_PACKETS 2500
39 # define hex_dump_debug(class, buf, size) av_hex_dump_log(class, AV_LOG_DEBUG, buf, size)
41 # define hex_dump_debug(class, buf, size) do { if (0) av_hex_dump_log(class, AV_LOG_DEBUG, buf, size); } while(0)
100 #define RAW_PACKET_BUFFER_SIZE 2500000
115 #if FF_API_COMPUTE_PKT_FIELDS2
116 int missing_ts_warning;
168 #define dynarray_add(tab, nb_ptr, elem)\
170 __typeof__(tab) _tab = (tab);\
171 __typeof__(elem) _elem = (elem);\
172 (void)sizeof(**_tab == _elem); \
173 av_dynarray_add(_tab, nb_ptr, _elem);\
176 #define dynarray_add(tab, nb_ptr, elem)\
178 av_dynarray_add((tab), nb_ptr, (elem));\
206 #define NTP_OFFSET 2208988800ULL
207 #define NTP_OFFSET_US (NTP_OFFSET * 1000000ULL)
231 const char *dest_addr,
const char *dest_type,
272 #define SPACE_CHARS " \t\r\n"
285 int key_len,
char **dest,
int *dest_len);
308 int64_t wanted_timestamp,
int flags);
314 int *nb_index_entries,
315 unsigned int *index_entries_allocated_size,
332 int64_t
start, int64_t
end,
const char *title);
351 int64_t target_ts,
int flags);
364 int64_t (*read_timestamp)(
struct AVFormatContext *,
int , int64_t *, int64_t ));
373 int64_t target_ts, int64_t pos_min,
374 int64_t pos_max, int64_t pos_limit,
375 int64_t ts_min, int64_t ts_max,
376 int flags, int64_t *ts_ret,
377 int64_t (*read_timestamp)(
struct AVFormatContext *,
int , int64_t *, int64_t ));
392 unsigned int pts_num,
unsigned int pts_den);
500 static inline int ff_rename(
const char *oldpath,
const char *newpath,
void *logctx)
503 if (rename(oldpath, newpath) == -1) {
564 #define FFERROR_REDO FFERRTAG('R','E','D','O')
592 #define CONTAINS_PAL 2
static float compare(const AVFrame *haystack, const AVFrame *obj, int offx, int offy)
const char const char void * val
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)
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)
const OptionDef options[]
Callback for checking whether to abort blocking 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.
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
const AVIOInterruptCB int_cb
static float distance(float x, float y, int band)
AVBSFContext ** bsfcs
bitstream filters to run on stream
typedef void(APIENTRY *FF_PFNGLACTIVETEXTUREPROC)(GLenum texture)
main external API structure.
rational number numerator/denominator
int need_context_update
Whether the internal avctx needs to be updated from codecpar (after a late change to codecpar) ...
static void interleave(short *output, short **input, int channels, int samples)
enum AVCodecID orig_codec_id
AVCodecContext * avctx
The codec context used by avformat_find_stream_info, the parser, etc.
AVChromaLocation
Location of chroma samples.
This structure stores compressed data.