25 #include "libavutil/avstring.h"
78 ext = strrchr(filename,
'.');
84 while (*p !=
'\0' && *p !=
',' && q - ext1 <
sizeof(ext1) - 1)
105 namelen = strlen(name);
106 while ((p = strchr(names,
','))) {
107 len =
FFMAX(p - names, namelen);
116 const char *mime_type)
119 int score_max, score;
122 #if CONFIG_IMAGE2_MUXER
123 if (!short_name && filename &&
142 if (score > score_max) {
151 const char *filename,
const char *mime_type,
154 if (!strcmp(fmt->
name,
"segment") || !strcmp(fmt->
name,
"ssegment")) {
161 #if CONFIG_IMAGE2_MUXER
162 if (!strcmp(fmt->
name,
"image2") || !strcmp(fmt->
name,
"image2pipe")) {
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...
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.
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...
AVCodecID
Identify the syntax and semantics of the bitstream.
#define avpriv_atomic_ptr_cas
int av_strcasecmp(const char *a, const char *b)
Locale-independent case-insensitive compare.
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.
void av_register_input_format(AVInputFormat *format)
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)
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...
AVInputFormat * av_find_input_format(const char *short_name)
Find AVInputFormat based on the short name of the input format.