FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
format.c File Reference

Format register and lookup. More...

#include "libavutil/atomic.h"
#include "libavutil/avstring.h"
#include "libavutil/bprint.h"
#include "libavutil/opt.h"
#include "avio_internal.h"
#include "avformat.h"
#include "id3v2.h"
#include "internal.h"

Go to the source code of this file.

Functions

AVInputFormatav_iformat_next (const AVInputFormat *f)
 If f is NULL, returns the first registered input format, if f is non-NULL, returns the next registered input format after f or NULL if f is the last one. More...
 
AVOutputFormatav_oformat_next (const AVOutputFormat *f)
 If f is NULL, returns the first registered output format, if f is non-NULL, returns the next registered output format after f or NULL if f is the last one. More...
 
void av_register_input_format (AVInputFormat *format)
 
void av_register_output_format (AVOutputFormat *format)
 
int av_match_ext (const char *filename, const char *extensions)
 Return a positive value if the given filename has one of the given extensions, 0 otherwise. More...
 
AVOutputFormatav_guess_format (const char *short_name, const char *filename, const char *mime_type)
 Return the output format in the list of registered output formats which best matches the provided parameters, or return NULL if there is no match. More...
 
enum AVCodecID av_guess_codec (AVOutputFormat *fmt, const char *short_name, const char *filename, const char *mime_type, enum AVMediaType type)
 Guess the codec ID based upon muxer and filename. More...
 
AVInputFormatav_find_input_format (const char *short_name)
 Find AVInputFormat based on the short name of the input format. More...
 
AVInputFormatav_probe_input_format3 (AVProbeData *pd, int is_opened, int *score_ret)
 Guess the file format. More...
 
AVInputFormatav_probe_input_format2 (AVProbeData *pd, int is_opened, int *score_max)
 Guess the file format. More...
 
AVInputFormatav_probe_input_format (AVProbeData *pd, int is_opened)
 Guess the file format. More...
 
int av_probe_input_buffer2 (AVIOContext *pb, AVInputFormat **fmt, const char *filename, void *logctx, unsigned int offset, unsigned int max_probe_size)
 Probe a bytestream to determine the input format. More...
 
int av_probe_input_buffer (AVIOContext *pb, AVInputFormat **fmt, const char *filename, void *logctx, unsigned int offset, unsigned int max_probe_size)
 Like av_probe_input_buffer2() but returns 0 on success. More...
 

Variables

static AVInputFormatfirst_iformat = NULL
 head of registered input format linked list More...
 
static AVOutputFormatfirst_oformat = NULL
 head of registered output format linked list More...
 
static AVInputFormat ** last_iformat = &first_iformat
 
static AVOutputFormat ** last_oformat = &first_oformat
 

Detailed Description

Format register and lookup.

Definition in file format.c.

Variable Documentation

AVInputFormat* first_iformat = NULL
static

head of registered input format linked list

Definition at line 38 of file format.c.

Referenced by av_iformat_next().

AVOutputFormat* first_oformat = NULL
static

head of registered output format linked list

Definition at line 40 of file format.c.

Referenced by av_oformat_next().

AVInputFormat** last_iformat = &first_iformat
static

Definition at line 42 of file format.c.

Referenced by av_register_input_format().

AVOutputFormat** last_oformat = &first_oformat
static

Definition at line 43 of file format.c.

Referenced by av_register_output_format().