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
ba67c234
Commit
ba67c234
authored
Jul 10, 2017
by
Rostislav Pehlivanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
opus_celt: move postfilter taps table to the shared opustab.c file
Signed-off-by:
Rostislav Pehlivanov
<
atomnuker@gmail.com
>
parent
5ca06379
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
8 deletions
+11
-8
opus_celt.c
libavcodec/opus_celt.c
+3
-8
opustab.c
libavcodec/opustab.c
+6
-0
opustab.h
libavcodec/opustab.h
+2
-0
No files found.
libavcodec/opus_celt.c
View file @
ba67c234
...
...
@@ -594,11 +594,6 @@ static void celt_postfilter(CeltFrame *f, CeltBlock *block)
static
int
parse_postfilter
(
CeltFrame
*
f
,
OpusRangeCoder
*
rc
,
int
consumed
)
{
static
const
float
postfilter_taps
[
3
][
3
]
=
{
{
0
.
3066406250
f
,
0
.
2170410156
f
,
0
.
1296386719
f
},
{
0
.
4638671875
f
,
0
.
2680664062
f
,
0
.
0
},
{
0
.
7998046875
f
,
0
.
1000976562
f
,
0
.
0
}
};
int
i
;
memset
(
f
->
block
[
0
].
pf_gains_new
,
0
,
sizeof
(
f
->
block
[
0
].
pf_gains_new
));
...
...
@@ -620,9 +615,9 @@ static int parse_postfilter(CeltFrame *f, OpusRangeCoder *rc, int consumed)
CeltBlock
*
block
=
&
f
->
block
[
i
];
block
->
pf_period_new
=
FFMAX
(
period
,
CELT_POSTFILTER_MINPERIOD
);
block
->
pf_gains_new
[
0
]
=
gain
*
postfilter_taps
[
tapset
][
0
];
block
->
pf_gains_new
[
1
]
=
gain
*
postfilter_taps
[
tapset
][
1
];
block
->
pf_gains_new
[
2
]
=
gain
*
postfilter_taps
[
tapset
][
2
];
block
->
pf_gains_new
[
0
]
=
gain
*
ff_celt_
postfilter_taps
[
tapset
][
0
];
block
->
pf_gains_new
[
1
]
=
gain
*
ff_celt_
postfilter_taps
[
tapset
][
1
];
block
->
pf_gains_new
[
2
]
=
gain
*
ff_celt_
postfilter_taps
[
tapset
][
2
];
}
}
...
...
libavcodec/opustab.c
View file @
ba67c234
...
...
@@ -1085,6 +1085,12 @@ const uint32_t ff_celt_pvq_u[1272] = {
1409933619
};
const
float
ff_celt_postfilter_taps
[
3
][
3
]
=
{
{
0
.
3066406250
f
,
0
.
2170410156
f
,
0
.
1296386719
f
},
{
0
.
4638671875
f
,
0
.
2680664062
f
,
0
.
0
},
{
0
.
7998046875
f
,
0
.
1000976562
f
,
0
.
0
}
};
DECLARE_ALIGNED
(
32
,
const
float
,
ff_celt_window
)[
120
]
=
{
6.7286966e-05
f
,
0
.
0006055134
8
f
,
0
.
0016
815970
f
,
0
.
0032
947962
f
,
0
.
005443
9943
f
,
0
.
00
81276923
f
,
0
.
011344001
f
,
0
.
0150
90633
f
,
0
.
01
9364886
f
,
0
.
024163635
f
,
...
...
libavcodec/opustab.h
View file @
ba67c234
...
...
@@ -151,6 +151,8 @@ extern const uint8_t ff_celt_hadamard_order[];
extern
const
uint16_t
ff_celt_qn_exp2
[];
extern
const
uint32_t
ff_celt_pvq_u
[
1272
];
extern
const
float
ff_celt_postfilter_taps
[
3
][
3
];
extern
const
float
ff_celt_window2
[
120
];
DECLARE_ALIGNED
(
32
,
extern
const
float
,
ff_celt_window
)[
120
];
...
...
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