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
8d861cd8
Commit
8d861cd8
authored
Jan 25, 2020
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/vf_v360: add mask option, unset pixels are marked as transparent
parent
31350de9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
233 additions
and
115 deletions
+233
-115
filters.texi
doc/filters.texi
+2
-0
v360.h
libavfilter/v360.h
+10
-6
vf_v360.c
libavfilter/vf_v360.c
+221
-109
No files found.
doc/filters.texi
View file @
8d861cd8
...
...
@@ -19131,6 +19131,8 @@ Set if input video is transposed. Boolean value, by default disabled.
@item out_trans
Set if output video needs to be transposed. Boolean value, by default disabled.
@item alpha_mask
Build mask in alpha plane for all unmapped pixels by marking them fully transparent. Boolean value, by default disabled.
@end table
@subsection Examples
...
...
libavfilter/v360.h
View file @
8d861cd8
...
...
@@ -106,6 +106,7 @@ typedef struct V360Context {
const
AVClass
*
class
;
int
in
,
out
;
int
interp
;
int
alpha
;
int
width
,
height
;
char
*
in_forder
;
char
*
out_forder
;
...
...
@@ -154,18 +155,21 @@ typedef struct V360Context {
int
nb_planes
;
int
nb_allocated
;
int
elements
;
int
mask_size
;
int
max_value
;
int16_t
*
u
[
2
],
*
v
[
2
];
int16_t
*
ker
[
2
];
uint8_t
*
mask
;
unsigned
map
[
4
];
void
(
*
in_transform
)(
const
struct
V360Context
*
s
,
const
float
*
vec
,
int
width
,
int
height
,
int16_t
us
[
4
][
4
],
int16_t
vs
[
4
][
4
],
float
*
du
,
float
*
dv
);
int
(
*
in_transform
)(
const
struct
V360Context
*
s
,
const
float
*
vec
,
int
width
,
int
height
,
int16_t
us
[
4
][
4
],
int16_t
vs
[
4
][
4
],
float
*
du
,
float
*
dv
);
void
(
*
out_transform
)(
const
struct
V360Context
*
s
,
int
i
,
int
j
,
int
width
,
int
height
,
float
*
vec
);
int
(
*
out_transform
)(
const
struct
V360Context
*
s
,
int
i
,
int
j
,
int
width
,
int
height
,
float
*
vec
);
void
(
*
calculate_kernel
)(
float
du
,
float
dv
,
const
XYRemap
*
rmap
,
int16_t
*
u
,
int16_t
*
v
,
int16_t
*
ker
);
...
...
libavfilter/vf_v360.c
View file @
8d861cd8
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