summaryrefslogtreecommitdiffstats
path: root/video/filter/vf.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-05-01 19:29:17 +0200
committerwm4 <wm4@nowhere>2014-05-02 01:08:06 +0200
commit404953250163fcce550072efcba8d9c55b9cca44 (patch)
tree90554de935991b7544784f3aacbffb7b5082d0b7 /video/filter/vf.h
parent9243249a0e1fed9bb22213b651f285f796eb4759 (diff)
downloadmpv-404953250163fcce550072efcba8d9c55b9cca44.tar.bz2
mpv-404953250163fcce550072efcba8d9c55b9cca44.tar.xz
vf: add alternate functions for retrieving filter output
These replace vf_read_output_frame(), although we still emulate that function. This change is preparation for another commit (and this is basically just to reduce the diff and signal/noise ratio in that commit).
Diffstat (limited to 'video/filter/vf.h')
-rw-r--r--video/filter/vf.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/video/filter/vf.h b/video/filter/vf.h
index 9ae9740380..399e3f1e42 100644
--- a/video/filter/vf.h
+++ b/video/filter/vf.h
@@ -110,6 +110,8 @@ struct vf_chain {
struct MPOpts *opts;
struct mpv_global *global;
struct mp_hwdec_info *hwdec;
+
+ struct mp_image *output;
};
typedef struct vf_seteq {
@@ -137,6 +139,8 @@ int vf_reconfig(struct vf_chain *c, const struct mp_image_params *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);
+int vf_output_frame(struct vf_chain *c, bool eof);
+struct mp_image *vf_read_output_frame(struct vf_chain *c);
struct mp_image *vf_output_queued_frame(struct vf_chain *c, bool eof);
void vf_seek_reset(struct vf_chain *c);
struct vf_instance *vf_append_filter(struct vf_chain *c, const char *name,