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
79d14a3c
Commit
79d14a3c
authored
Sep 22, 2019
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/vf_v360: remove intermediate variables
parent
ba24b24a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
10 deletions
+4
-10
vf_v360.c
libavfilter/vf_v360.c
+4
-10
No files found.
libavfilter/vf_v360.c
View file @
79d14a3c
...
...
@@ -1414,11 +1414,8 @@ static int prepare_stereographic_out(AVFilterContext *ctx)
{
V360Context
*
s
=
ctx
->
priv
;
const
float
h_angle
=
tanf
(
FFMIN
(
s
->
h_fov
,
359
.
f
)
*
M_PI
/
720
.
f
);
const
float
v_angle
=
tanf
(
FFMIN
(
s
->
v_fov
,
359
.
f
)
*
M_PI
/
720
.
f
);
s
->
flat_range
[
0
]
=
h_angle
;
s
->
flat_range
[
1
]
=
v_angle
;
s
->
flat_range
[
0
]
=
tanf
(
FFMIN
(
s
->
h_fov
,
359
.
f
)
*
M_PI
/
720
.
f
);
s
->
flat_range
[
1
]
=
tanf
(
FFMIN
(
s
->
v_fov
,
359
.
f
)
*
M_PI
/
720
.
f
);
return
0
;
}
...
...
@@ -1990,11 +1987,8 @@ static int prepare_flat_out(AVFilterContext *ctx)
{
V360Context
*
s
=
ctx
->
priv
;
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
]
=
tanf
(
h_angle
);
s
->
flat_range
[
1
]
=
tanf
(
v_angle
);
s
->
flat_range
[
0
]
=
tanf
(
0
.
5
f
*
s
->
h_fov
*
M_PI
/
180
.
f
);
s
->
flat_range
[
1
]
=
tanf
(
0
.
5
f
*
s
->
v_fov
*
M_PI
/
180
.
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