comparison libmpcodecs/vf_denoise3d.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 8fa2f43cb760
comparison
equal deleted inserted replaced
30641:b14b32c20935 30642:a972c1a4a012
43 43
44 44
45 /***************************************************************************/ 45 /***************************************************************************/
46 46
47 47
48 static int config(struct vf_instance_s* vf, 48 static int config(struct vf_instance *vf,
49 int width, int height, int d_width, int d_height, 49 int width, int height, int d_width, int d_height,
50 unsigned int flags, unsigned int outfmt){ 50 unsigned int flags, unsigned int outfmt){
51 51
52 if(vf->priv->Line) free(vf->priv->Line); 52 if(vf->priv->Line) free(vf->priv->Line);
53 vf->priv->Line = malloc(width); 53 vf->priv->Line = malloc(width);
56 56
57 return vf_next_config(vf,width,height,d_width,d_height,flags,outfmt); 57 return vf_next_config(vf,width,height,d_width,d_height,flags,outfmt);
58 } 58 }
59 59
60 60
61 static void uninit(struct vf_instance_s* vf) 61 static void uninit(struct vf_instance *vf)
62 { 62 {
63 free(vf->priv->Line); 63 free(vf->priv->Line);
64 } 64 }
65 65
66 #define LowPass(Prev, Curr, Coef) (Curr + Coef[Prev - Curr]) 66 #define LowPass(Prev, Curr, Coef) (Curr + Coef[Prev - Curr])
107 } 107 }
108 } 108 }
109 109
110 110
111 111
112 static int put_image(struct vf_instance_s* vf, mp_image_t *mpi, double pts){ 112 static int put_image(struct vf_instance *vf, mp_image_t *mpi, double pts){
113 int cw= mpi->w >> mpi->chroma_x_shift; 113 int cw= mpi->w >> mpi->chroma_x_shift;
114 int ch= mpi->h >> mpi->chroma_y_shift; 114 int ch= mpi->h >> mpi->chroma_y_shift;
115 int W = mpi->w, H = mpi->h; 115 int W = mpi->w, H = mpi->h;
116 116
117 mp_image_t *dmpi=vf_get_image(vf->next,mpi->imgfmt, 117 mp_image_t *dmpi=vf_get_image(vf->next,mpi->imgfmt,
145 return vf_next_put_image(vf,dmpi, pts); 145 return vf_next_put_image(vf,dmpi, pts);
146 } 146 }
147 147
148 //===========================================================================// 148 //===========================================================================//
149 149
150 static int query_format(struct vf_instance_s* vf, unsigned int fmt){ 150 static int query_format(struct vf_instance *vf, unsigned int fmt){
151 switch(fmt) 151 switch(fmt)
152 { 152 {
153 case IMGFMT_YV12: 153 case IMGFMT_YV12:
154 case IMGFMT_I420: 154 case IMGFMT_I420:
155 case IMGFMT_IYUV: 155 case IMGFMT_IYUV: