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
45bb80dc
Commit
45bb80dc
authored
Sep 14, 2019
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/vf_v360: implement stereo 3D support
parent
451cee66
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
142 additions
and
44 deletions
+142
-44
filters.texi
doc/filters.texi
+15
-0
v360.h
libavfilter/v360.h
+14
-0
vf_v360.c
libavfilter/vf_v360.c
+113
-44
No files found.
doc/filters.texi
View file @
45bb80dc
...
@@ -18080,6 +18080,21 @@ Set the output video resolution.
...
@@ -18080,6 +18080,21 @@ Set the output video resolution.
Default resolution depends on formats.
Default resolution depends on formats.
@item in_stereo
@item out_stereo
Set the input/output stereo format.
@table @samp
@item 2d
2D mono
@item sbs
Side by side
@item tb
Top bottom
@end table
Default value is @b{@samp{2d}} for input and output format.
@item yaw
@item yaw
@item pitch
@item pitch
@item roll
@item roll
...
...
libavfilter/v360.h
View file @
45bb80dc
...
@@ -22,6 +22,13 @@
...
@@ -22,6 +22,13 @@
#define AVFILTER_V360_H
#define AVFILTER_V360_H
#include "avfilter.h"
#include "avfilter.h"
enum
StereoFormats
{
STEREO_2D
,
STEREO_SBS
,
STEREO_TB
,
NB_STEREO_FMTS
,
};
enum
Projections
{
enum
Projections
{
EQUIRECTANGULAR
,
EQUIRECTANGULAR
,
CUBEMAP_3_2
,
CUBEMAP_3_2
,
...
@@ -95,6 +102,8 @@ typedef struct V360Context {
...
@@ -95,6 +102,8 @@ typedef struct V360Context {
int
out_cubemap_face_rotation
[
6
];
int
out_cubemap_face_rotation
[
6
];
int
rotation_order
[
3
];
int
rotation_order
[
3
];
int
in_stereo
,
out_stereo
;
float
in_pad
,
out_pad
;
float
in_pad
,
out_pad
;
float
yaw
,
pitch
,
roll
;
float
yaw
,
pitch
,
roll
;
...
@@ -108,6 +117,11 @@ typedef struct V360Context {
...
@@ -108,6 +117,11 @@ typedef struct V360Context {
float
input_mirror_modifier
[
2
];
float
input_mirror_modifier
[
2
];
int
pr_width
[
4
],
pr_height
[
4
];
int
in_offset_w
[
4
],
in_offset_h
[
4
];
int
out_offset_w
[
4
],
out_offset_h
[
4
];
int
planewidth
[
4
],
planeheight
[
4
];
int
planewidth
[
4
],
planeheight
[
4
];
int
inplanewidth
[
4
],
inplaneheight
[
4
];
int
inplanewidth
[
4
],
inplaneheight
[
4
];
int
uv_linesize
[
4
];
int
uv_linesize
[
4
];
...
...
libavfilter/vf_v360.c
View file @
45bb80dc
This diff is collapsed.
Click to expand it.
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