81 ext = strrchr(filename,
'.');
87 while (*p !=
'\0' && *p !=
',' && q - ext1 <
sizeof(ext1) - 1)
108 namelen = strlen(name);
109 while ((p = strchr(names,
','))) {
110 len =
FFMAX(p - names, namelen);
119 const char *mime_type)
122 int score_max, score;
125 #if CONFIG_IMAGE2_MUXER
126 if (!short_name && filename &&
145 if (score > score_max) {
154 const char *filename,
const char *mime_type,
160 #if CONFIG_IMAGE2_MUXER
161 if (!strcmp(fmt->
name,
"image2") || !strcmp(fmt->
name,
"image2pipe")) {
int av_strncasecmp(const char *a, const char *b, size_t n)
Locale-independent case-insensitive compare.
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.
AVCodecID
Identify the syntax and semantics of the bitstream.
AVInputFormat * av_find_input_format(const char *short_name)
Find AVInputFormat based on the short name of the input format.
int av_strcasecmp(const char *a, const char *b)
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.
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 par...
void av_register_input_format(AVInputFormat *format)
AVOutputFormat * av_oformat_next(AVOutputFormat *f)
If f is NULL, returns the first registered output format, if f is non-NULL, returns the next register...
void av_register_output_format(AVOutputFormat *format)
int av_filename_number_test(const char *filename)
Check whether filename actually is a numbered sequence generator.
enum AVCodecID ff_guess_image2_codec(const char *filename)
AVInputFormat * av_iformat_next(AVInputFormat *f)
If f is NULL, returns the first registered input format, if f is non-NULL, returns the next registere...