Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
a9bf9d8e
Commit
a9bf9d8e
authored
Apr 05, 2011
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavf: make av_guess_image2_codec internal
It doesn't look very useful as a public function.
parent
5593f031
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
3 deletions
+18
-3
avformat.h
libavformat/avformat.h
+3
-1
img2.c
libavformat/img2.c
+8
-0
internal.h
libavformat/internal.h
+2
-0
utils.c
libavformat/utils.c
+2
-2
version.h
libavformat/version.h
+3
-0
No files found.
libavformat/avformat.h
View file @
a9bf9d8e
...
...
@@ -899,7 +899,9 @@ AVInputFormat *av_iformat_next(AVInputFormat *f);
*/
AVOutputFormat
*
av_oformat_next
(
AVOutputFormat
*
f
);
enum
CodecID
av_guess_image2_codec
(
const
char
*
filename
);
#if FF_API_GUESS_IMG2_CODEC
attribute_deprecated
enum
CodecID
av_guess_image2_codec
(
const
char
*
filename
);
#endif
/* XXX: Use automatic init with either ELF sections or C file parser */
/* modules. */
...
...
libavformat/img2.c
View file @
a9bf9d8e
...
...
@@ -24,6 +24,7 @@
#include "libavutil/avstring.h"
#include "avformat.h"
#include "avio_internal.h"
#include "internal.h"
#include <strings.h>
typedef
struct
{
...
...
@@ -183,9 +184,16 @@ static int read_probe(AVProbeData *p)
return
0
;
}
enum
CodecID
ff_guess_image2_codec
(
const
char
*
filename
)
{
return
av_str2id
(
img_tags
,
filename
);
}
#if FF_API_GUESS_IMG2_CODEC
enum
CodecID
av_guess_image2_codec
(
const
char
*
filename
){
return
av_str2id
(
img_tags
,
filename
);
}
#endif
static
int
read_header
(
AVFormatContext
*
s1
,
AVFormatParameters
*
ap
)
{
...
...
libavformat/internal.h
View file @
a9bf9d8e
...
...
@@ -250,4 +250,6 @@ void ff_reduce_index(AVFormatContext *s, int stream_index);
void
ff_make_absolute_url
(
char
*
buf
,
int
size
,
const
char
*
base
,
const
char
*
rel
);
enum
CodecID
ff_guess_image2_codec
(
const
char
*
filename
);
#endif
/* AVFORMAT_INTERNAL_H */
libavformat/utils.c
View file @
a9bf9d8e
...
...
@@ -218,7 +218,7 @@ AVOutputFormat *av_guess_format(const char *short_name, const char *filename,
#if CONFIG_IMAGE2_MUXER
if
(
!
short_name
&&
filename
&&
av_filename_number_test
(
filename
)
&&
av
_guess_image2_codec
(
filename
)
!=
CODEC_ID_NONE
)
{
ff
_guess_image2_codec
(
filename
)
!=
CODEC_ID_NONE
)
{
return
av_guess_format
(
"image2"
,
NULL
,
NULL
);
}
#endif
...
...
@@ -271,7 +271,7 @@ enum CodecID av_guess_codec(AVOutputFormat *fmt, const char *short_name,
#if CONFIG_IMAGE2_MUXER
if
(
!
strcmp
(
fmt
->
name
,
"image2"
)
||
!
strcmp
(
fmt
->
name
,
"image2pipe"
)){
codec_id
=
av
_guess_image2_codec
(
filename
);
codec_id
=
ff
_guess_image2_codec
(
filename
);
}
#endif
if
(
codec_id
==
CODEC_ID_NONE
)
...
...
libavformat/version.h
View file @
a9bf9d8e
...
...
@@ -104,5 +104,8 @@
#ifndef FF_API_PKT_DUMP
#define FF_API_PKT_DUMP (LIBAVFORMAT_VERSION_MAJOR < 54)
#endif
#ifndef FF_API_GUESS_IMG2_CODEC
#define FF_API_GUESS_IMG2_CODEC (LIBAVFORMAT_VERSION_MAJOR < 54)
#endif
#endif //AVFORMAT_VERSION_H
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment