comparison libmpcodecs/vf_sab.c @ 30642:a972c1a4a012

cosmetics: Rename struct vf_instance_s --> vf_instance.
author diego
date Sun, 21 Feb 2010 15:48:03 +0000
parents a7b908875c14
children effad4f941ff
comparison
equal deleted inserted replaced
30641:b14b32c20935 30642:a972c1a4a012
133 sws_freeVec(vec); 133 sws_freeVec(vec);
134 134
135 return 0; 135 return 0;
136 } 136 }
137 137
138 static int config(struct vf_instance_s* vf, 138 static int config(struct vf_instance *vf,
139 int width, int height, int d_width, int d_height, 139 int width, int height, int d_width, int d_height,
140 unsigned int flags, unsigned int outfmt){ 140 unsigned int flags, unsigned int outfmt){
141 141
142 int sw, sh; 142 int sw, sh;
143 //__asm__ volatile("emms\n\t"); 143 //__asm__ volatile("emms\n\t");
158 158
159 if(f->distCoeff) free(f->distCoeff); 159 if(f->distCoeff) free(f->distCoeff);
160 f->distCoeff=NULL; 160 f->distCoeff=NULL;
161 } 161 }
162 162
163 static void uninit(struct vf_instance_s* vf){ 163 static void uninit(struct vf_instance *vf){
164 if(!vf->priv) return; 164 if(!vf->priv) return;
165 165
166 freeBuffers(&vf->priv->luma); 166 freeBuffers(&vf->priv->luma);
167 freeBuffers(&vf->priv->chroma); 167 freeBuffers(&vf->priv->chroma);
168 168
236 dst[x + y*dstStride]= (sum + div/2)/div; 236 dst[x + y*dstStride]= (sum + div/2)/div;
237 } 237 }
238 } 238 }
239 } 239 }
240 240
241 static int put_image(struct vf_instance_s* vf, mp_image_t *mpi, double pts){ 241 static int put_image(struct vf_instance *vf, mp_image_t *mpi, double pts){
242 int cw= mpi->w >> mpi->chroma_x_shift; 242 int cw= mpi->w >> mpi->chroma_x_shift;
243 int ch= mpi->h >> mpi->chroma_y_shift; 243 int ch= mpi->h >> mpi->chroma_y_shift;
244 244
245 mp_image_t *dmpi=vf_get_image(vf->next,mpi->imgfmt, 245 mp_image_t *dmpi=vf_get_image(vf->next,mpi->imgfmt,
246 MP_IMGTYPE_TEMP, MP_IMGFLAG_ACCEPT_STRIDE, 246 MP_IMGTYPE_TEMP, MP_IMGFLAG_ACCEPT_STRIDE,
255 return vf_next_put_image(vf,dmpi, pts); 255 return vf_next_put_image(vf,dmpi, pts);
256 } 256 }
257 257
258 //===========================================================================// 258 //===========================================================================//
259 259
260 static int query_format(struct vf_instance_s* vf, unsigned int fmt){ 260 static int query_format(struct vf_instance *vf, unsigned int fmt){
261 switch(fmt) 261 switch(fmt)
262 { 262 {
263 case IMGFMT_YV12: 263 case IMGFMT_YV12:
264 case IMGFMT_I420: 264 case IMGFMT_I420:
265 case IMGFMT_IYUV: 265 case IMGFMT_IYUV: