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.
int avio_close(AVIOContext *s)
Close the resource accessed by the AVIOContext s and free it.
#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 uint16_t fc[]
char filename[1024]
input or output filename
static const AVOption options[]
AVOutputFormat * av_oformat_next(const AVOutputFormat *f)
If f is NULL, returns the first registered output format, if f is non-NULL, returns the next register...
#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 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)
void(* io_close)(struct AVFormatContext *s, AVIOContext *pb)
A callback for closing the streams opened with AVFormatContext.io_open().
AVInputFormat * av_iformat_next(const AVInputFormat *f)
If f is NULL, returns the first registered input format, if f is non-NULL, returns the next registere...
#define AV_NOPTS_VALUE
Undefined timestamp value.