summaryrefslogtreecommitdiffstats
path: root/video/filter/vf.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-05-01 23:15:50 +0200
committerwm4 <wm4@nowhere>2014-05-02 01:09:55 +0200
commit50ebcf1a432c4be5e458111b6915130424e56872 (patch)
treec43867cb9d450b6f6a86090bad4efb305c882c90 /video/filter/vf.h
parentf4eaceee0fe24a59828ce37f61173b1dd2afd8d4 (diff)
downloadmpv-50ebcf1a432c4be5e458111b6915130424e56872.tar.bz2
mpv-50ebcf1a432c4be5e458111b6915130424e56872.tar.xz
video: handle colorspace and aspect overrides separately
Now the video filter code handles these explicitly, which should increase robustness (or at least find bugs earlier).
Diffstat (limited to 'video/filter/vf.h')
-rw-r--r--video/filter/vf.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/video/filter/vf.h b/video/filter/vf.h
index 399e3f1e42..5773d36105 100644
--- a/video/filter/vf.h
+++ b/video/filter/vf.h
@@ -103,6 +103,7 @@ struct vf_chain {
struct vf_instance *first, *last;
struct mp_image_params input_params;
+ struct mp_image_params override_params; // input to first filter
struct mp_image_params output_params;
uint8_t allowed_output_formats[IMGFMT_END - IMGFMT_START];
@@ -135,7 +136,8 @@ enum vf_ctrl {
struct vf_chain *vf_new(struct mpv_global *global);
void vf_destroy(struct vf_chain *c);
-int vf_reconfig(struct vf_chain *c, const struct mp_image_params *params);
+int vf_reconfig(struct vf_chain *c, const struct mp_image_params *params,
+ const struct mp_image_params *override_params);
int vf_control_any(struct vf_chain *c, int cmd, void *arg);
int vf_control_by_label(struct vf_chain *c, int cmd, void *arg, bstr label);
int vf_filter_frame(struct vf_chain *c, struct mp_image *img);