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
b845df11
Commit
b845df11
authored
Jun 19, 2008
by
Vitor Sessak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Yet more table renaming
Originally committed as revision 13827 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
6e05a766
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
ra144.c
libavcodec/ra144.c
+1
-1
ra144.h
libavcodec/ra144.h
+2
-2
No files found.
libavcodec/ra144.c
View file @
b845df11
...
...
@@ -130,7 +130,7 @@ static void add_wav(int n, int skip_first, int *m, const int16_t *s1,
v
[
0
]
=
0
;
for
(
i
=!
skip_first
;
i
<
3
;
i
++
)
v
[
i
]
=
(
wavtable1
[
n
][
i
]
*
m
[
i
])
>>
(
wavtable2
[
n
][
i
]
+
1
);
v
[
i
]
=
(
gain_val_tab
[
n
][
i
]
*
m
[
i
])
>>
(
gain_exp_tab
[
n
][
i
]
+
1
);
for
(
i
=
0
;
i
<
BLOCKSIZE
;
i
++
)
dest
[
i
]
=
((
*
(
s1
++
))
*
v
[
0
]
+
(
*
(
s2
++
))
*
v
[
1
]
+
(
*
(
s3
++
))
*
v
[
2
])
>>
12
;
...
...
libavcodec/ra144.h
View file @
b845df11
...
...
@@ -25,7 +25,7 @@
#include <stdint.h>
/* 14.4 data tables */
static
const
int16_t
wavtable1
[
256
][
9
]
=
{
static
const
int16_t
gain_val_tab
[
256
][
9
]
=
{
{
541
,
956
,
768
,
-
1011
,
-
811
,
-
717
,
-
571
,
-
893
,
-
576
},
{
877
,
581
,
568
,
-
997
,
-
975
,
-
646
,
-
752
,
-
661
,
-
632
},
{
675
,
787
,
635
,
-
519
,
-
838
,
-
977
,
-
890
,
-
605
,
-
789
},
...
...
@@ -284,7 +284,7 @@ static const int16_t wavtable1[256][9] = {
{
814
,
744
,
543
,
-
592
,
-
865
,
-
790
,
-
648
,
-
541
,
-
577
}
};
static
const
uint8_t
wavtable2
[
256
][
9
]
=
{
static
const
uint8_t
gain_exp_tab
[
256
][
9
]
=
{
{
14
,
14
,
14
,
20
,
20
,
19
,
21
,
20
,
20
},
{
14
,
14
,
14
,
20
,
20
,
20
,
20
,
21
,
21
},
{
14
,
13
,
14
,
18
,
20
,
19
,
21
,
18
,
21
},
...
...
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