Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
3972ec28
Commit
3972ec28
authored
Jan 18, 2020
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/vf_v360: fix some small nits
parent
aa42a1e6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
9 deletions
+8
-9
vf_v360.c
libavfilter/vf_v360.c
+8
-9
No files found.
libavfilter/vf_v360.c
View file @
3972ec28
...
...
@@ -2215,12 +2215,12 @@ static void pannini_to_xyz(const V360Context *s,
const
float
vf
=
((
2
.
f
*
j
)
/
height
-
1
.
f
);
const
float
d
=
s
->
h_fov
;
float
k
=
uf
*
uf
/
((
d
+
1
.
f
)
*
(
d
+
1
.
f
));
float
dscr
=
k
*
k
*
d
*
d
-
(
k
+
1
)
*
(
k
*
d
*
d
-
1
.
f
);
float
clon
=
(
-
k
*
d
+
sqrtf
(
dscr
))
/
(
k
+
1
.
f
);
float
S
=
(
d
+
1
.
f
)
/
(
d
+
clon
);
float
lon
=
-
(
M_PI
+
atan2f
(
uf
,
S
*
clon
));
float
lat
=
-
atan2f
(
vf
,
S
);
const
float
k
=
uf
*
uf
/
((
d
+
1
.
f
)
*
(
d
+
1
.
f
));
const
float
dscr
=
k
*
k
*
d
*
d
-
(
k
+
1
.
f
)
*
(
k
*
d
*
d
-
1
.
f
);
const
float
clon
=
(
-
k
*
d
+
sqrtf
(
dscr
))
/
(
k
+
1
.
f
);
const
float
S
=
(
d
+
1
.
f
)
/
(
d
+
clon
);
const
float
lon
=
-
(
M_PI
+
atan2f
(
uf
,
S
*
clon
));
const
float
lat
=
-
atan2f
(
vf
,
S
);
vec
[
0
]
=
sinf
(
lon
)
*
cosf
(
lat
);
vec
[
1
]
=
sinf
(
lat
);
...
...
@@ -2516,7 +2516,7 @@ static void multiply_matrix(float c[3][3], const float a[3][3], const float b[3]
{
for
(
int
i
=
0
;
i
<
3
;
i
++
)
{
for
(
int
j
=
0
;
j
<
3
;
j
++
)
{
float
sum
=
0
;
float
sum
=
0
.
f
;
for
(
int
k
=
0
;
k
<
3
;
k
++
)
sum
+=
a
[
i
][
k
]
*
b
[
k
][
j
];
...
...
@@ -3046,9 +3046,8 @@ static int config_output(AVFilterLink *outlink)
s
->
map
[
0
]
=
s
->
map
[
1
]
=
s
->
map
[
2
]
=
s
->
map
[
3
]
=
0
;
}
else
{
s
->
nb_allocated
=
2
;
s
->
map
[
0
]
=
0
;
s
->
map
[
0
]
=
s
->
map
[
3
]
=
0
;
s
->
map
[
1
]
=
s
->
map
[
2
]
=
1
;
s
->
map
[
3
]
=
0
;
}
for
(
int
i
=
0
;
i
<
s
->
nb_allocated
;
i
++
)
...
...
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