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
56277f6d
Commit
56277f6d
authored
Jul 22, 2017
by
foo86
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/dolby_e: add 'f' suffixes to floating point literals
parent
2ba20d79
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
17 deletions
+17
-17
dolby_e.h
libavcodec/dolby_e.h
+17
-17
No files found.
libavcodec/dolby_e.h
View file @
56277f6d
...
...
@@ -649,30 +649,30 @@ static av_cold void init_tables(void)
int
i
,
j
;
for
(
i
=
1
;
i
<
17
;
i
++
)
mantissa_tab1
[
i
][
0
]
=
1
.
0
/
(
1
<<
i
-
1
);
mantissa_tab1
[
i
][
0
]
=
1
.
0
f
/
(
1
<<
i
-
1
);
for
(
i
=
2
;
i
<
16
;
i
++
)
{
mantissa_tab1
[
i
][
1
]
=
1
.
0
/
((
1
<<
i
)
-
1
);
mantissa_tab1
[
i
][
2
]
=
0
.
5
/
((
1
<<
i
)
-
1
);
mantissa_tab1
[
i
][
3
]
=
0
.
25
/
((
1
<<
i
)
-
1
);
mantissa_tab1
[
i
][
1
]
=
1
.
0
f
/
((
1
<<
i
)
-
1
);
mantissa_tab1
[
i
][
2
]
=
0
.
5
f
/
((
1
<<
i
)
-
1
);
mantissa_tab1
[
i
][
3
]
=
0
.
25
f
/
((
1
<<
i
)
-
1
);
}
mantissa_tab1
[
i
][
1
]
=
0
.
5
/
(
1
<<
15
);
mantissa_tab1
[
i
][
2
]
=
0
.
75
/
(
1
<<
15
);
mantissa_tab1
[
i
][
3
]
=
0
.
875
/
(
1
<<
15
);
mantissa_tab1
[
i
][
1
]
=
0
.
5
f
/
(
1
<<
15
);
mantissa_tab1
[
i
][
2
]
=
0
.
75
f
/
(
1
<<
15
);
mantissa_tab1
[
i
][
3
]
=
0
.
875
f
/
(
1
<<
15
);
for
(
i
=
1
;
i
<
17
;
i
++
)
{
mantissa_tab2
[
i
][
1
]
=
mantissa_tab1
[
i
][
0
]
*
0
.
5
;
mantissa_tab2
[
i
][
2
]
=
mantissa_tab1
[
i
][
0
]
*
0
.
75
;
mantissa_tab2
[
i
][
3
]
=
mantissa_tab1
[
i
][
0
]
*
0
.
875
;
mantissa_tab2
[
i
][
1
]
=
mantissa_tab1
[
i
][
0
]
*
0
.
5
f
;
mantissa_tab2
[
i
][
2
]
=
mantissa_tab1
[
i
][
0
]
*
0
.
75
f
;
mantissa_tab2
[
i
][
3
]
=
mantissa_tab1
[
i
][
0
]
*
0
.
875
f
;
for
(
j
=
1
;
j
<
4
;
j
++
)
mantissa_tab3
[
i
][
j
]
=
1
.
0
/
(
1
<<
i
)
+
1
.
0
/
(
1
<<
j
)
-
1
.
0
/
(
1
<<
i
+
j
);
mantissa_tab3
[
i
][
j
]
=
1
.
0
f
/
(
1
<<
i
)
+
1
.
0
f
/
(
1
<<
j
)
-
1
.
0
f
/
(
1
<<
i
+
j
);
}
mantissa_tab3
[
1
][
3
]
=
0
.
6875
;
mantissa_tab3
[
1
][
3
]
=
0
.
6875
f
;
for
(
i
=
0
;
i
<
25
;
i
++
)
{
exponent_tab
[
i
*
2
]
=
1
.
0
/
(
1
<<
i
);
exponent_tab
[
i
*
2
]
=
1
.
0
f
/
(
1
<<
i
);
exponent_tab
[
i
*
2
+
1
]
=
M_SQRT1_2
/
(
1
<<
i
);
}
...
...
@@ -680,7 +680,7 @@ static av_cold void init_tables(void)
gain_tab
[
i
]
=
exp2f
((
i
-
960
)
/
64
.
0
f
);
// short 1
ff_kbd_window_init
(
window
,
3
.
0
,
128
);
ff_kbd_window_init
(
window
,
3
.
0
f
,
128
);
for
(
i
=
0
;
i
<
128
;
i
++
)
window
[
128
+
i
]
=
window
[
127
-
i
];
...
...
@@ -704,12 +704,12 @@ static av_cold void init_tables(void)
for
(
i
=
0
;
i
<
128
;
i
++
)
window
[
960
+
i
]
=
window
[
i
];
for
(
i
=
0
;
i
<
64
;
i
++
)
window
[
1088
+
i
]
=
1
.
0
;
window
[
1088
+
i
]
=
1
.
0
f
;
// long
ff_kbd_window_init
(
window
+
1408
,
3
.
0
,
256
);
ff_kbd_window_init
(
window
+
1408
,
3
.
0
f
,
256
);
for
(
i
=
0
;
i
<
640
;
i
++
)
window
[
1664
+
i
]
=
1
.
0
;
window
[
1664
+
i
]
=
1
.
0
f
;
for
(
i
=
0
;
i
<
256
;
i
++
)
window
[
2304
+
i
]
=
window
[
1152
+
i
]
=
window
[
1663
-
i
];
...
...
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