diff options
author | Paul B Mahol <onemda@gmail.com> | 2020-01-25 13:24:33 +0100 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2020-01-25 14:34:05 +0100 |
commit | 8d861cd850597c009b6d947a556209f4ac7469d9 (patch) | |
tree | 1726c125cb1f4258bc11adfbe5f1fd7838adb783 /libavfilter/v360.h | |
parent | 31350de9970a1bc827e3b155bb285fd974116a6f (diff) | |
download | ffmpeg-8d861cd850597c009b6d947a556209f4ac7469d9.tar.gz |
avfilter/vf_v360: add mask option, unset pixels are marked as transparent
Diffstat (limited to 'libavfilter/v360.h')
-rw-r--r-- | libavfilter/v360.h | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/libavfilter/v360.h b/libavfilter/v360.h index 8e080f0b6c..97008fb3da 100644 --- a/libavfilter/v360.h +++ b/libavfilter/v360.h @@ -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); |