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
f78abca0
Commit
f78abca0
authored
Sep 14, 2019
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/vf_v360: call tanf() once
parent
cb8d6a4e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
vf_v360.c
libavfilter/vf_v360.c
+3
-3
No files found.
libavfilter/vf_v360.c
View file @
f78abca0
...
...
@@ -2142,11 +2142,11 @@ static int allocate_plane(V360Context *s, int sizeof_uv, int sizeof_ker, int p)
static
void
fov_from_dfov
(
V360Context
*
s
,
float
w
,
float
h
)
{
const
float
d
_angle
=
0
.
5
*
FFMIN
(
s
->
d_fov
,
359
.
f
)
*
M_PI
/
180
.
f
;
const
float
d
a
=
tanf
(
0
.
5
*
FFMIN
(
s
->
d_fov
,
359
.
f
)
*
M_PI
/
180
.
f
)
;
const
float
d
=
hypotf
(
w
,
h
);
s
->
h_fov
=
atan2f
(
tanf
(
d_angle
)
*
w
,
d
)
*
360
.
f
/
M_PI
;
s
->
v_fov
=
atan2f
(
tanf
(
d_angle
)
*
h
,
d
)
*
360
.
f
/
M_PI
;
s
->
h_fov
=
atan2f
(
da
*
w
,
d
)
*
360
.
f
/
M_PI
;
s
->
v_fov
=
atan2f
(
da
*
h
,
d
)
*
360
.
f
/
M_PI
;
if
(
s
->
h_fov
<
0
.
f
)
s
->
h_fov
+=
360
.
f
;
...
...
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