Mercurial > mplayer.hg
comparison libmpcodecs/vf.h @ 24968:f60d9ef45902
stage 1 of applying const to vf structs
author | rfelker |
---|---|
date | Fri, 09 Nov 2007 06:57:24 +0000 |
parents | 597505748535 |
children | 578feac808bd |
comparison
equal
deleted
inserted
replaced
24967:7e5b170408b2 | 24968:f60d9ef45902 |
---|---|
7 const char *name; | 7 const char *name; |
8 const char *author; | 8 const char *author; |
9 const char *comment; | 9 const char *comment; |
10 int (*open)(struct vf_instance_s* vf,char* args); | 10 int (*open)(struct vf_instance_s* vf,char* args); |
11 // Ptr to a struct dscribing the options | 11 // Ptr to a struct dscribing the options |
12 void* opts; | 12 const void* opts; |
13 } vf_info_t; | 13 } vf_info_t; |
14 | 14 |
15 typedef struct vf_image_context_s { | 15 typedef struct vf_image_context_s { |
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]; |
23 int have_configured; | 23 int have_configured; |
24 int orig_width, orig_height, orig_fmt; | 24 int orig_width, orig_height, orig_fmt; |
25 } vf_format_context_t; | 25 } vf_format_context_t; |
26 | 26 |
27 typedef struct vf_instance_s { | 27 typedef struct vf_instance_s { |
28 vf_info_t* info; | 28 const vf_info_t* info; |
29 // funcs: | 29 // funcs: |
30 int (*config)(struct vf_instance_s* vf, | 30 int (*config)(struct vf_instance_s* vf, |
31 int width, int height, int d_width, int d_height, | 31 int width, int height, int d_width, int d_height, |
32 unsigned int flags, unsigned int outfmt); | 32 unsigned int flags, unsigned int outfmt); |
33 int (*control)(struct vf_instance_s* vf, | 33 int (*control)(struct vf_instance_s* vf, |
91 | 91 |
92 // functions: | 92 // functions: |
93 void vf_mpi_clear(mp_image_t* mpi,int x0,int y0,int w,int h); | 93 void vf_mpi_clear(mp_image_t* mpi,int x0,int y0,int w,int h); |
94 mp_image_t* vf_get_image(vf_instance_t* vf, unsigned int outfmt, int mp_imgtype, int mp_imgflag, int w, int h); | 94 mp_image_t* vf_get_image(vf_instance_t* vf, unsigned int outfmt, int mp_imgtype, int mp_imgflag, int w, int h); |
95 | 95 |
96 vf_instance_t* vf_open_plugin(vf_info_t** filter_list, vf_instance_t* next, const char *name, char **args); | 96 vf_instance_t* vf_open_plugin(const vf_info_t* const* filter_list, vf_instance_t* next, const char *name, char **args); |
97 vf_instance_t* vf_open_filter(vf_instance_t* next, const char *name, char **args); | 97 vf_instance_t* vf_open_filter(vf_instance_t* next, const char *name, char **args); |
98 vf_instance_t* vf_add_before_vo(vf_instance_t **vf, char *name, char **args); | 98 vf_instance_t* vf_add_before_vo(vf_instance_t **vf, char *name, char **args); |
99 vf_instance_t* vf_open_encoder(vf_instance_t* next, const char *name, char *args); | 99 vf_instance_t* vf_open_encoder(vf_instance_t* next, const char *name, char *args); |
100 | 100 |
101 unsigned int vf_match_csp(vf_instance_t** vfp,unsigned int* list,unsigned int preferred); | 101 unsigned int vf_match_csp(vf_instance_t** vfp,const unsigned int* list,unsigned int preferred); |
102 void vf_clone_mpi_attributes(mp_image_t* dst, mp_image_t* src); | 102 void vf_clone_mpi_attributes(mp_image_t* dst, mp_image_t* src); |
103 void vf_queue_frame(vf_instance_t *vf, int (*)(vf_instance_t *)); | 103 void vf_queue_frame(vf_instance_t *vf, int (*)(vf_instance_t *)); |
104 int vf_output_queued_frame(vf_instance_t *vf); | 104 int vf_output_queued_frame(vf_instance_t *vf); |
105 | 105 |
106 // default wrappers: | 106 // default wrappers: |