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
8b58d9cb
Commit
8b58d9cb
authored
Sep 20, 2019
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/vf_v360: remove uneeded array element
parent
5c93a0a1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
8 deletions
+6
-8
v360.h
libavfilter/v360.h
+1
-1
vf_v360.c
libavfilter/vf_v360.c
+5
-7
No files found.
libavfilter/v360.h
View file @
8b58d9cb
...
...
@@ -121,7 +121,7 @@ typedef struct V360Context {
int
in_transpose
,
out_transpose
;
float
h_fov
,
v_fov
,
d_fov
;
float
flat_range
[
3
];
float
flat_range
[
2
];
float
rot_mat
[
3
][
3
];
...
...
libavfilter/vf_v360.c
View file @
8b58d9cb
...
...
@@ -1916,9 +1916,8 @@ static int prepare_flat_out(AVFilterContext *ctx)
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
[
2
]
=
-
1
.
f
;
s
->
flat_range
[
0
]
=
tanf
(
h_angle
);
s
->
flat_range
[
1
]
=
tanf
(
v_angle
);
return
0
;
}
...
...
@@ -1939,11 +1938,10 @@ static void flat_to_xyz(const V360Context *s,
{
const
float
l_x
=
s
->
flat_range
[
0
]
*
(
2
.
f
*
i
/
width
-
1
.
f
);
const
float
l_y
=
-
s
->
flat_range
[
1
]
*
(
2
.
f
*
j
/
height
-
1
.
f
);
const
float
l_z
=
s
->
flat_range
[
2
];
vec
[
0
]
=
l_x
;
vec
[
1
]
=
l_y
;
vec
[
2
]
=
l_z
;
vec
[
0
]
=
l_x
;
vec
[
1
]
=
l_y
;
vec
[
2
]
=
-
1
.
f
;
normalize_vector
(
vec
);
}
...
...
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