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
ecaef69f
Commit
ecaef69f
authored
Sep 21, 2019
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/vf_v360: simplify xyz_to_ball() calculations
parent
b8dfc108
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
vf_v360.c
libavfilter/vf_v360.c
+4
-3
No files found.
libavfilter/vf_v360.c
View file @
ecaef69f
...
...
@@ -1603,12 +1603,13 @@ static void xyz_to_ball(const V360Context *s,
uint16_t
us
[
4
][
4
],
uint16_t
vs
[
4
][
4
],
float
*
du
,
float
*
dv
)
{
const
float
l
=
hypotf
(
vec
[
0
],
vec
[
1
]);
const
float
r
=
s
inf
(
acosf
(
-
vec
[
2
])
*
0
.
5
f
)
;
const
float
r
=
s
qrtf
(
1
.
f
+
vec
[
2
])
/
M_SQRT2
;
float
uf
,
vf
;
int
ui
,
vi
;
uf
=
(
1
.
f
-
r
*
vec
[
0
]
*
s
->
input_mirror_modifier
[
0
]
/
l
)
*
width
/
2
.
f
;
vf
=
(
1
.
f
+
r
*
vec
[
1
]
*
s
->
input_mirror_modifier
[
1
]
/
l
)
*
height
/
2
.
f
;
uf
=
(
1
.
f
+
r
*
vec
[
0
]
*
s
->
input_mirror_modifier
[
0
]
/
(
l
>
0
.
f
?
l
:
1
.
f
))
*
width
*
0
.
5
f
;
vf
=
(
1
.
f
-
r
*
vec
[
1
]
*
s
->
input_mirror_modifier
[
1
]
/
(
l
>
0
.
f
?
l
:
1
.
f
))
*
height
*
0
.
5
f
;
ui
=
floorf
(
uf
);
vi
=
floorf
(
vf
);
...
...
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