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
ed4ad6e1
Commit
ed4ad6e1
authored
Sep 13, 2019
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/vf_v360: use always float version instead of double floating-point function
parent
2b3094d6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
vf_v360.c
libavfilter/vf_v360.c
+4
-4
No files found.
libavfilter/vf_v360.c
View file @
ed4ad6e1
...
...
@@ -1408,8 +1408,8 @@ static int prepare_stereographic_out(AVFilterContext *ctx)
{
V360Context
*
s
=
ctx
->
priv
;
const
float
h_angle
=
tan
(
FFMIN
(
s
->
h_fov
,
359
.
f
)
*
M_PI
/
720
.
f
);
const
float
v_angle
=
tan
(
FFMIN
(
s
->
v_fov
,
359
.
f
)
*
M_PI
/
720
.
f
);
const
float
h_angle
=
tan
f
(
FFMIN
(
s
->
h_fov
,
359
.
f
)
*
M_PI
/
720
.
f
);
const
float
v_angle
=
tan
f
(
FFMIN
(
s
->
v_fov
,
359
.
f
)
*
M_PI
/
720
.
f
);
s
->
flat_range
[
0
]
=
h_angle
;
s
->
flat_range
[
1
]
=
v_angle
;
...
...
@@ -1777,8 +1777,8 @@ static int prepare_flat_out(AVFilterContext *ctx)
const
float
h_angle
=
0
.
5
f
*
s
->
h_fov
*
M_PI
/
180
.
f
;
const
float
v_angle
=
0
.
5
f
*
s
->
v_fov
*
M_PI
/
180
.
f
;
s
->
flat_range
[
0
]
=
tan
(
h_angle
);
s
->
flat_range
[
1
]
=
tan
(
v_angle
);
s
->
flat_range
[
0
]
=
tan
f
(
h_angle
);
s
->
flat_range
[
1
]
=
tan
f
(
v_angle
);
s
->
flat_range
[
2
]
=
-
1
.
f
;
return
0
;
...
...
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