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
230acdde
Commit
230acdde
authored
Dec 14, 2012
by
Justin Ruggles
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavr: move AudioMix struct definition to audio_mix.c
parent
f33b5ba6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
22 deletions
+24
-22
audio_mix.c
libavresample/audio_mix.c
+23
-0
audio_mix.h
libavresample/audio_mix.h
+1
-22
No files found.
libavresample/audio_mix.c
View file @
230acdde
...
...
@@ -30,6 +30,29 @@
static
const
char
*
coeff_type_names
[]
=
{
"q8"
,
"q15"
,
"flt"
};
struct
AudioMix
{
AVAudioResampleContext
*
avr
;
enum
AVSampleFormat
fmt
;
enum
AVMixCoeffType
coeff_type
;
uint64_t
in_layout
;
uint64_t
out_layout
;
int
in_channels
;
int
out_channels
;
int
ptr_align
;
int
samples_align
;
int
has_optimized_func
;
const
char
*
func_descr
;
const
char
*
func_descr_generic
;
mix_func
*
mix
;
mix_func
*
mix_generic
;
int16_t
*
matrix_q8
[
AVRESAMPLE_MAX_CHANNELS
];
int32_t
*
matrix_q15
[
AVRESAMPLE_MAX_CHANNELS
];
float
*
matrix_flt
[
AVRESAMPLE_MAX_CHANNELS
];
void
**
matrix
;
};
void
ff_audio_mix_set_func
(
AudioMix
*
am
,
enum
AVSampleFormat
fmt
,
enum
AVMixCoeffType
coeff_type
,
int
in_channels
,
int
out_channels
,
int
ptr_align
,
int
samples_align
,
...
...
libavresample/audio_mix.h
View file @
230acdde
...
...
@@ -30,28 +30,7 @@
typedef
void
(
mix_func
)(
uint8_t
**
src
,
void
**
matrix
,
int
len
,
int
out_ch
,
int
in_ch
);
typedef
struct
AudioMix
{
AVAudioResampleContext
*
avr
;
enum
AVSampleFormat
fmt
;
enum
AVMixCoeffType
coeff_type
;
uint64_t
in_layout
;
uint64_t
out_layout
;
int
in_channels
;
int
out_channels
;
int
ptr_align
;
int
samples_align
;
int
has_optimized_func
;
const
char
*
func_descr
;
const
char
*
func_descr_generic
;
mix_func
*
mix
;
mix_func
*
mix_generic
;
int16_t
*
matrix_q8
[
AVRESAMPLE_MAX_CHANNELS
];
int32_t
*
matrix_q15
[
AVRESAMPLE_MAX_CHANNELS
];
float
*
matrix_flt
[
AVRESAMPLE_MAX_CHANNELS
];
void
**
matrix
;
}
AudioMix
;
typedef
struct
AudioMix
AudioMix
;
/**
* Set mixing function if the parameters match.
...
...
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