Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFmpeg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libremedia
Tethys
FFmpeg
Commits
4468ad82
Commit
4468ad82
authored
13 years ago
by
Michael Niedermayer
Browse files
Options
Downloads
Patches
Plain Diff
swr: add swresample_version swresample_configuration and swresample_license
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
0f91a577
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
libswresample/swresample.c
+16
-0
16 additions, 0 deletions
libswresample/swresample.c
libswresample/swresample.h
+15
-0
15 additions, 0 deletions
libswresample/swresample.h
with
31 additions
and
0 deletions
libswresample/swresample.c
+
16
−
0
View file @
4468ad82
...
...
@@ -70,6 +70,22 @@ static const AVClass av_class = {
.
parent_log_context_offset
=
OFFSET
(
log_ctx
),
};
unsigned
swresample_version
(
void
)
{
return
LIBSWRESAMPLE_VERSION_MICRO
;
}
const
char
*
swresample_configuration
(
void
)
{
return
FFMPEG_CONFIGURATION
;
}
const
char
*
swresample_license
(
void
)
{
#define LICENSE_PREFIX "libswresample license: "
return
LICENSE_PREFIX
FFMPEG_LICENSE
+
sizeof
(
LICENSE_PREFIX
)
-
1
;
}
int
swr_set_channel_mapping
(
struct
SwrContext
*
s
,
const
int
*
channel_map
){
if
(
!
s
||
s
->
in_convert
)
// s needs to be allocated but not initialized
return
AVERROR
(
EINVAL
);
...
...
This diff is collapsed.
Click to expand it.
libswresample/swresample.h
+
15
−
0
View file @
4468ad82
...
...
@@ -122,4 +122,19 @@ void swr_compensate(struct SwrContext *s, int sample_delta, int compensation_dis
*/
int
swr_set_channel_mapping
(
struct
SwrContext
*
s
,
const
int
*
channel_map
);
/**
* Return the LIBSWRESAMPLE_VERSION_INT constant.
*/
unsigned
swresample_version
(
void
);
/**
* Return the swr build-time configuration.
*/
const
char
*
swresample_configuration
(
void
);
/**
* Return the swr license.
*/
const
char
*
swresample_license
(
void
);
#endif
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment