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
b4562301
Commit
b4562301
authored
Sep 12, 2019
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/vf_v360: fix M_PI_4 usage consistency
parent
e55018ee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
vf_v360.c
libavfilter/vf_v360.c
+2
-2
No files found.
libavfilter/vf_v360.c
View file @
b4562301
...
@@ -1883,7 +1883,7 @@ static void barrel_to_xyz(const V360Context *s,
...
@@ -1883,7 +1883,7 @@ static void barrel_to_xyz(const V360Context *s,
float
l_x
,
l_y
,
l_z
;
float
l_x
,
l_y
,
l_z
;
if
(
i
<
4
*
width
/
5
)
{
if
(
i
<
4
*
width
/
5
)
{
const
float
theta_range
=
M_PI
/
4
.
f
;
const
float
theta_range
=
M_PI
_4
;
const
int
ew
=
4
*
width
/
5
;
const
int
ew
=
4
*
width
/
5
;
const
int
eh
=
height
;
const
int
eh
=
height
;
...
@@ -1955,7 +1955,7 @@ static void xyz_to_barrel(const V360Context *s,
...
@@ -1955,7 +1955,7 @@ static void xyz_to_barrel(const V360Context *s,
const
float
phi
=
atan2f
(
vec
[
0
],
-
vec
[
2
])
*
s
->
input_mirror_modifier
[
0
];
const
float
phi
=
atan2f
(
vec
[
0
],
-
vec
[
2
])
*
s
->
input_mirror_modifier
[
0
];
const
float
theta
=
asinf
(
-
vec
[
1
])
*
s
->
input_mirror_modifier
[
1
];
const
float
theta
=
asinf
(
-
vec
[
1
])
*
s
->
input_mirror_modifier
[
1
];
const
float
theta_range
=
M_PI
/
4
.
f
;
const
float
theta_range
=
M_PI
_4
;
int
ew
,
eh
;
int
ew
,
eh
;
int
u_shift
,
v_shift
;
int
u_shift
,
v_shift
;
...
...
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