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
48a45f81
Commit
48a45f81
authored
Jun 12, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
swr: add native matrix for SIMD
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
9abbbf75
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
rematrix.c
libswresample/rematrix.c
+1
-0
swresample_internal.h
libswresample/swresample_internal.h
+1
-0
No files found.
libswresample/rematrix.c
View file @
48a45f81
...
@@ -346,6 +346,7 @@ int swri_rematrix_init(SwrContext *s){
...
@@ -346,6 +346,7 @@ int swri_rematrix_init(SwrContext *s){
void
swri_rematrix_free
(
SwrContext
*
s
){
void
swri_rematrix_free
(
SwrContext
*
s
){
av_freep
(
&
s
->
native_matrix
);
av_freep
(
&
s
->
native_matrix
);
av_freep
(
&
s
->
native_one
);
av_freep
(
&
s
->
native_one
);
av_freep
(
&
s
->
native_simd_matrix
);
}
}
int
swri_rematrix
(
SwrContext
*
s
,
AudioData
*
out
,
AudioData
*
in
,
int
len
,
int
mustcopy
){
int
swri_rematrix
(
SwrContext
*
s
,
AudioData
*
out
,
AudioData
*
in
,
int
len
,
int
mustcopy
){
...
...
libswresample/swresample_internal.h
View file @
48a45f81
...
@@ -95,6 +95,7 @@ struct SwrContext {
...
@@ -95,6 +95,7 @@ struct SwrContext {
float
matrix
[
SWR_CH_MAX
][
SWR_CH_MAX
];
///< floating point rematrixing coefficients
float
matrix
[
SWR_CH_MAX
][
SWR_CH_MAX
];
///< floating point rematrixing coefficients
uint8_t
*
native_matrix
;
uint8_t
*
native_matrix
;
uint8_t
*
native_one
;
uint8_t
*
native_one
;
uint8_t
*
native_simd_matrix
;
int32_t
matrix32
[
SWR_CH_MAX
][
SWR_CH_MAX
];
///< 17.15 fixed point rematrixing coefficients
int32_t
matrix32
[
SWR_CH_MAX
][
SWR_CH_MAX
];
///< 17.15 fixed point rematrixing coefficients
uint8_t
matrix_ch
[
SWR_CH_MAX
][
SWR_CH_MAX
+
1
];
///< Lists of input channels per output channel that have non zero rematrixing coefficients
uint8_t
matrix_ch
[
SWR_CH_MAX
][
SWR_CH_MAX
+
1
];
///< Lists of input channels per output channel that have non zero rematrixing coefficients
mix_1_1_func_type
*
mix_1_1_f
;
mix_1_1_func_type
*
mix_1_1_f
;
...
...
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