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
22057e8e
Commit
22057e8e
authored
Apr 11, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
swr: add swr_get_class()
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
f9a2c5bc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
+13
-0
swresample.c
libswresample/swresample.c
+5
-0
swresample.h
libswresample/swresample.h
+8
-0
No files found.
libswresample/swresample.c
View file @
22057e8e
...
@@ -97,6 +97,11 @@ int swr_set_channel_mapping(struct SwrContext *s, const int *channel_map){
...
@@ -97,6 +97,11 @@ int swr_set_channel_mapping(struct SwrContext *s, const int *channel_map){
return
0
;
return
0
;
}
}
const
AVClass
*
swr_get_class
(
void
)
{
return
&
av_class
;
}
struct
SwrContext
*
swr_alloc
(
void
){
struct
SwrContext
*
swr_alloc
(
void
){
SwrContext
*
s
=
av_mallocz
(
sizeof
(
SwrContext
));
SwrContext
*
s
=
av_mallocz
(
sizeof
(
SwrContext
));
if
(
s
){
if
(
s
){
...
...
libswresample/swresample.h
View file @
22057e8e
...
@@ -54,6 +54,14 @@ enum SwrDitherType {
...
@@ -54,6 +54,14 @@ enum SwrDitherType {
typedef
struct
SwrContext
SwrContext
;
typedef
struct
SwrContext
SwrContext
;
/**
* Get the AVClass for swrContext. It can be used in combination with
* AV_OPT_SEARCH_FAKE_OBJ for examining options.
*
* @see av_opt_find().
*/
const
AVClass
*
swr_get_class
(
void
);
/**
/**
* Allocate SwrContext.
* Allocate SwrContext.
*
*
...
...
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