summaryrefslogtreecommitdiffstats
path: root/video/filter/vf.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-12-07 19:33:11 +0100
committerwm4 <wm4@nowhere>2013-12-07 19:33:11 +0100
commit0af9ede5466fa5b02348d5cfb3182f80771a5f38 (patch)
treee314f304cac6bc675a289d5b4f6982fc713071a6 /video/filter/vf.h
parentbb6165342db0ba60fefa97afe770b393fd6cb463 (diff)
downloadmpv-0af9ede5466fa5b02348d5cfb3182f80771a5f38.tar.bz2
mpv-0af9ede5466fa5b02348d5cfb3182f80771a5f38.tar.xz
vf: remove flags from filter format status
I don't think we need these flags anymore. Simplify the code and get rid of the vf_format struct. There still is the vf_format.configured field, but this can be replaced by checking for a valid image format.
Diffstat (limited to 'video/filter/vf.h')
-rw-r--r--video/filter/vf.h11
1 files changed, 2 insertions, 9 deletions
diff --git a/video/filter/vf.h b/video/filter/vf.h
index 21031de3ac..c241f1c329 100644
--- a/video/filter/vf.h
+++ b/video/filter/vf.h
@@ -41,12 +41,6 @@ typedef struct vf_info {
void (*print_help)(void);
} vf_info_t;
-struct vf_format {
- int configured;
- struct mp_image_params params;
- int flags;
-};
-
typedef struct vf_instance {
const vf_info_t *info;
@@ -76,9 +70,7 @@ typedef struct vf_instance {
char *label;
- // data:
- struct vf_format fmt_in, fmt_out;
- struct vf_instance *next;
+ struct mp_image_params fmt_in, fmt_out;
struct mp_image_pool *out_pool;
struct vf_priv_s *priv;
@@ -90,6 +82,7 @@ typedef struct vf_instance {
// Temporary
struct vf_chain *chain;
+ struct vf_instance *next;
} vf_instance_t;
// A chain of video filters