comparison libmpcodecs/vf.h @ 14878:5723c4b2a2ea

fixes for encoding of multiple files - do not uninitialize video encoder between files - checks for image size & format change moved from mencoder.c to vfilters by Oded Shimon <ods15@ods15.dyndns.org>
author henry
date Tue, 01 Mar 2005 20:21:58 +0000
parents c9ff4fe2caaf
children c82c0d407ec9
comparison
equal deleted inserted replaced
14877:db1f17e9b7a2 14878:5723c4b2a2ea
16 mp_image_t* static_images[2]; 16 mp_image_t* static_images[2];
17 mp_image_t* temp_images[1]; 17 mp_image_t* temp_images[1];
18 mp_image_t* export_images[1]; 18 mp_image_t* export_images[1];
19 int static_idx; 19 int static_idx;
20 } vf_image_context_t; 20 } vf_image_context_t;
21
22 typedef struct vf_format_context_t {
23 int have_configured;
24 int orig_width, orig_height, orig_fmt;
25 } vf_format_context_t;
21 26
22 typedef struct vf_instance_s { 27 typedef struct vf_instance_s {
23 vf_info_t* info; 28 vf_info_t* info;
24 // funcs: 29 // funcs:
25 int (*config)(struct vf_instance_s* vf, 30 int (*config)(struct vf_instance_s* vf,
42 unsigned int default_caps; // used by default query_format() 47 unsigned int default_caps; // used by default query_format()
43 unsigned int default_reqs; // used by default config() 48 unsigned int default_reqs; // used by default config()
44 // data: 49 // data:
45 int w, h; 50 int w, h;
46 vf_image_context_t imgctx; 51 vf_image_context_t imgctx;
52 vf_format_context_t fmt;
47 struct vf_instance_s* next; 53 struct vf_instance_s* next;
48 mp_image_t *dmpi; 54 mp_image_t *dmpi;
49 struct vf_priv_s* priv; 55 struct vf_priv_s* priv;
50 } vf_instance_t; 56 } vf_instance_t;
51 57
97 void vf_list_plugins(); 103 void vf_list_plugins();
98 104
99 void vf_uninit_filter(vf_instance_t* vf); 105 void vf_uninit_filter(vf_instance_t* vf);
100 void vf_uninit_filter_chain(vf_instance_t* vf); 106 void vf_uninit_filter_chain(vf_instance_t* vf);
101 107
108 int vf_config_wrapper(struct vf_instance_s* vf,
109 int width, int height, int d_width, int d_height,
110 unsigned int flags, unsigned int outfmt);