FFmpeg
|
Format register and lookup. More...
#include "avformat.h"
#include "internal.h"
#include "libavutil/atomic.h"
#include "libavutil/avstring.h"
Go to the source code of this file.
Functions | |
AVInputFormat * | av_iformat_next (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. | |
AVOutputFormat * | av_oformat_next (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. | |
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. | |
static int | match_format (const char *name, const char *names) |
AVOutputFormat * | av_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. | |
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. | |
AVInputFormat * | av_find_input_format (const char *short_name) |
Find AVInputFormat based on the short name of the input format. | |
Variables | |
static AVInputFormat * | first_iformat = NULL |
head of registered input format linked list | |
static AVOutputFormat * | first_oformat = NULL |
head of registered output format linked list | |
Format register and lookup.
Definition in file format.c.
|
static |
Definition at line 97 of file format.c.
Referenced by av_find_input_format(), and av_guess_format().
|
static |
head of registered input format linked list
Definition at line 32 of file format.c.
Referenced by av_iformat_next(), and av_register_input_format().
|
static |
head of registered output format linked list
Definition at line 34 of file format.c.
Referenced by av_oformat_next(), and av_register_output_format().