64 while ((ifmt = av_iformat_next(ifmt)))
69 while ((ofmt = av_oformat_next(ofmt)))
73 while (ifmt = av_iformat_next(ifmt))
77 while (ofmt = av_oformat_next(ofmt))
107 if (!strcmp(url, s->
url) ||
115 av_log(s, loglevel,
"Opening \'%s\' for %s\n", url, flags &
AVIO_FLAG_WRITE ?
"writing" :
"reading");
117 #if FF_API_OLD_OPEN_CALLBACKS
AVIOInterruptCB interrupt_callback
Custom interrupt callbacks for the I/O layer.
enum AVDurationEstimationMethod duration_estimation_method
The duration field can be estimated through various ways, and this field can be used to know how the ...
#define LIBAVUTIL_VERSION_INT
void av_opt_set_defaults(void *s)
Set the values of all AVOption fields to their default values.
AVFormatInternal * internal
An opaque field for libavformat internal usage.
#define AVIO_FLAG_WRITE
write-only
void * av_mallocz(size_t size)
Allocate a memory block with alignment suitable for all memory accesses (including vectors if availab...
const char * class_name
The name of the class; usually it is the same name as the context structure type to which the AVClass...
const AVClass * av_class
A class for private options.
AVFormatContext * avformat_alloc_context(void)
Allocate an AVFormatContext.
char * protocol_whitelist
',' separated list of allowed protocols.
const AVClass ff_avio_class
const AVClass * avformat_get_class(void)
Get the AVClass for AVFormatContext.
struct AVOutputFormat * oformat
The output container format.
#define fc(width, name, range_min, range_max)
int avio_close(AVIOContext *s)
Close the resource accessed by the AVIOContext s and free it.
char * url
input or output URL.
#define AV_LOG_DEBUG
Stuff which is only useful for libav* developers.
AVClassCategory category
Category used for visualization (like color) This is only set if the category is equal for all object...
common internal API header
static const AVOption options[]
#define AV_LOG_INFO
Standard information.
AVIOContext * pb
I/O context.
Describe the class of an AVClass context structure.
const AVClass * av_class
A class for logging and AVOptions.
void avformat_free_context(AVFormatContext *s)
Free an AVFormatContext and all its streams.
int ffio_open_whitelist(AVIOContext **s, const char *url, int flags, const AVIOInterruptCB *int_cb, AVDictionary **options, const char *whitelist, const char *blacklist)
#define flags(name, subs,...)
#define FF_DISABLE_DEPRECATION_WARNINGS
struct AVInputFormat * iformat
The input container format.
#define FF_ENABLE_DEPRECATION_WARNINGS
void * priv_data
Format private data.
char * protocol_blacklist
',' separated list of disallowed protocols.
int(* io_open)(struct AVFormatContext *s, AVIOContext **pb, const char *url, int flags, AVDictionary **options)
A callback for opening new IO streams.
void(* io_close)(struct AVFormatContext *s, AVIOContext *pb)
A callback for closing the streams opened with AVFormatContext.io_open().
#define AV_NOPTS_VALUE
Undefined timestamp value.