Mercurial > mplayer.hg
comparison libmpcodecs/vf_rgb2bgr.c @ 30638:a7b908875c14
Rename open() vf initialization function to vf_open().
This avoids clashes with fcntl.h under certain circumstances.
author | diego |
---|---|
date | Sun, 21 Feb 2010 13:40:49 +0000 |
parents | bbb6ebec87a0 |
children | a972c1a4a012 |
comparison
equal
deleted
inserted
replaced
30637:0947ead7e81b | 30638:a7b908875c14 |
---|---|
98 unsigned int fmt=getfmt(outfmt,vf->priv->forced); | 98 unsigned int fmt=getfmt(outfmt,vf->priv->forced); |
99 if(!fmt) return 0; | 99 if(!fmt) return 0; |
100 return vf_next_query_format(vf,fmt) & (~VFCAP_CSP_SUPPORTED_BY_HW); | 100 return vf_next_query_format(vf,fmt) & (~VFCAP_CSP_SUPPORTED_BY_HW); |
101 } | 101 } |
102 | 102 |
103 static int open(vf_instance_t *vf, char* args){ | 103 static int vf_open(vf_instance_t *vf, char *args){ |
104 vf->config=config; | 104 vf->config=config; |
105 vf->put_image=put_image; | 105 vf->put_image=put_image; |
106 vf->query_format=query_format; | 106 vf->query_format=query_format; |
107 vf->priv=malloc(sizeof(struct vf_priv_s)); | 107 vf->priv=malloc(sizeof(struct vf_priv_s)); |
108 vf->priv->forced=args && !strcasecmp(args,"swap"); | 108 vf->priv->forced=args && !strcasecmp(args,"swap"); |
112 const vf_info_t vf_info_rgb2bgr = { | 112 const vf_info_t vf_info_rgb2bgr = { |
113 "fast 24/32bpp RGB<->BGR conversion", | 113 "fast 24/32bpp RGB<->BGR conversion", |
114 "rgb2bgr", | 114 "rgb2bgr", |
115 "A'rpi", | 115 "A'rpi", |
116 "", | 116 "", |
117 open, | 117 vf_open, |
118 NULL | 118 NULL |
119 }; | 119 }; |
120 | 120 |
121 //===========================================================================// | 121 //===========================================================================// |