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
fb4ca26b
Commit
fb4ca26b
authored
Aug 23, 2011
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavf,lavc,sws: add {avcodec,avformat,sws}_get_class() functions.
parent
c11fb828
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
46 additions
and
3 deletions
+46
-3
APIchanges
doc/APIchanges
+5
-0
avcodec.h
libavcodec/avcodec.h
+8
-0
options.c
libavcodec/options.c
+5
-0
version.h
libavcodec/version.h
+1
-1
avformat.h
libavformat/avformat.h
+8
-0
options.c
libavformat/options.c
+5
-0
version.h
libavformat/version.h
+1
-1
options.c
libswscale/options.c
+5
-0
swscale.h
libswscale/swscale.h
+8
-1
No files found.
doc/APIchanges
View file @
fb4ca26b
...
...
@@ -13,6 +13,11 @@ libavutil: 2011-04-18
API changes, most recent first:
2011-08-xx - xxxxxxx - lavc 53.10.0
lavf 53.6.0
lsws 2.1.0
Add {avcodec,avformat,sws}_get_class().
2011-08-xx - xxxxxxx - lavu 51.10.0
Add AV_OPT_SEARCH_FAKE_OBJ flag for av_opt_find() function.
...
...
libavcodec/avcodec.h
View file @
fb4ca26b
...
...
@@ -4306,4 +4306,12 @@ int av_lockmgr_register(int (*cb)(void **mutex, enum AVLockOp op));
*/
enum
AVMediaType
avcodec_get_type
(
enum
CodecID
codec_id
);
/**
* Get the AVClass for AVCodecContext. It can be used in combination with
* AV_OPT_SEARCH_FAKE_OBJ for examining options.
*
* @see av_opt_find().
*/
const
AVClass
*
avcodec_get_class
(
void
);
#endif
/* AVCODEC_AVCODEC_H */
libavcodec/options.c
View file @
fb4ca26b
...
...
@@ -662,3 +662,8 @@ fail:
av_freep
(
&
dest
->
rc_eq
);
return
AVERROR
(
ENOMEM
);
}
const
AVClass
*
avcodec_get_class
(
void
)
{
return
&
av_codec_context_class
;
}
libavcodec/version.h
View file @
fb4ca26b
...
...
@@ -21,7 +21,7 @@
#define AVCODEC_VERSION_H
#define LIBAVCODEC_VERSION_MAJOR 53
#define LIBAVCODEC_VERSION_MINOR
9
#define LIBAVCODEC_VERSION_MINOR
10
#define LIBAVCODEC_VERSION_MICRO 0
#define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \
...
...
libavformat/avformat.h
View file @
fb4ca26b
...
...
@@ -1613,4 +1613,12 @@ int av_match_ext(const char *filename, const char *extensions);
*/
int
avformat_query_codec
(
AVOutputFormat
*
ofmt
,
enum
CodecID
codec_id
,
int
std_compliance
);
/**
* Get the AVClass for AVFormatContext. It can be used in combination with
* AV_OPT_SEARCH_FAKE_OBJ for examining options.
*
* @see av_opt_find().
*/
const
AVClass
*
avformat_get_class
(
void
);
#endif
/* AVFORMAT_AVFORMAT_H */
libavformat/options.c
View file @
fb4ca26b
...
...
@@ -123,3 +123,8 @@ AVFormatContext *avformat_alloc_context(void)
avformat_get_context_defaults
(
ic
);
return
ic
;
}
const
AVClass
*
avformat_get_class
(
void
)
{
return
&
av_format_context_class
;
}
libavformat/version.h
View file @
fb4ca26b
...
...
@@ -24,7 +24,7 @@
#include "libavutil/avutil.h"
#define LIBAVFORMAT_VERSION_MAJOR 53
#define LIBAVFORMAT_VERSION_MINOR
5
#define LIBAVFORMAT_VERSION_MINOR
6
#define LIBAVFORMAT_VERSION_MICRO 0
#define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \
...
...
libswscale/options.c
View file @
fb4ca26b
...
...
@@ -67,3 +67,8 @@ static const AVOption options[] = {
};
const
AVClass
sws_context_class
=
{
"SWScaler"
,
sws_context_to_name
,
options
};
const
AVClass
*
sws_get_class
(
void
)
{
return
&
sws_context_class
;
}
libswscale/swscale.h
View file @
fb4ca26b
...
...
@@ -32,7 +32,7 @@
#include "libavutil/pixfmt.h"
#define LIBSWSCALE_VERSION_MAJOR 2
#define LIBSWSCALE_VERSION_MINOR
0
#define LIBSWSCALE_VERSION_MINOR
1
#define LIBSWSCALE_VERSION_MICRO 0
#define LIBSWSCALE_VERSION_INT AV_VERSION_INT(LIBSWSCALE_VERSION_MAJOR, \
...
...
@@ -351,5 +351,12 @@ void sws_convertPalette8ToPacked32(const uint8_t *src, uint8_t *dst, int num_pix
*/
void
sws_convertPalette8ToPacked24
(
const
uint8_t
*
src
,
uint8_t
*
dst
,
int
num_pixels
,
const
uint8_t
*
palette
);
/**
* Get the AVClass for swsContext. It can be used in combination with
* AV_OPT_SEARCH_FAKE_OBJ for examining options.
*
* @see av_opt_find().
*/
const
AVClass
*
sws_get_class
(
void
);
#endif
/* SWSCALE_SWSCALE_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