summaryrefslogtreecommitdiffstats
path: root/video/filter/vf_format.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/filter/vf_format.c')
-rw-r--r--video/filter/vf_format.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/video/filter/vf_format.c b/video/filter/vf_format.c
index 793e37bc4a..8687db783b 100644
--- a/video/filter/vf_format.c
+++ b/video/filter/vf_format.c
@@ -50,6 +50,7 @@ struct vf_format_opts {
int chroma_location;
int stereo_in;
int rotate;
+ int alpha;
int w, h;
int dw, dh;
double dar;
@@ -87,6 +88,8 @@ static void set_params(struct vf_format_opts *p, struct mp_image_params *out,
out->stereo3d = p->stereo_in;
if (p->rotate >= 0)
out->rotate = p->rotate;
+ if (p->alpha)
+ out->alpha = p->alpha;
if (p->w > 0 && set_size)
out->w = p->w;
@@ -196,6 +199,7 @@ static const m_option_t vf_opts_fields[] = {
{"chroma-location", OPT_CHOICE_C(chroma_location, mp_chroma_names)},
{"stereo-in", OPT_CHOICE_C(stereo_in, mp_stereo3d_names)},
{"rotate", OPT_INT(rotate), M_RANGE(-1, 359)},
+ {"alpha", OPT_CHOICE_C(alpha, mp_alpha_names)},
{"w", OPT_INT(w)},
{"h", OPT_INT(h)},
{"dw", OPT_INT(dw)},