comparison libmpcodecs/vf_sab.c @ 17906:20aca9baf5d8

passing pts through the filter layer (lets see if pts or cola comes out at the end)
author michael
date Tue, 21 Mar 2006 21:26:42 +0000
parents 401b440a6d76
children 8579acff875e
comparison
equal deleted inserted replaced
17905:433494f162a9 17906:20aca9baf5d8
234 dst[x + y*dstStride]= (sum + div/2)/div; 234 dst[x + y*dstStride]= (sum + div/2)/div;
235 } 235 }
236 } 236 }
237 } 237 }
238 238
239 static int put_image(struct vf_instance_s* vf, mp_image_t *mpi){ 239 static int put_image(struct vf_instance_s* vf, mp_image_t *mpi, double pts){
240 int cw= mpi->w >> mpi->chroma_x_shift; 240 int cw= mpi->w >> mpi->chroma_x_shift;
241 int ch= mpi->h >> mpi->chroma_y_shift; 241 int ch= mpi->h >> mpi->chroma_y_shift;
242 242
243 mp_image_t *dmpi=vf_get_image(vf->next,mpi->imgfmt, 243 mp_image_t *dmpi=vf_get_image(vf->next,mpi->imgfmt,
244 MP_IMGTYPE_TEMP, MP_IMGFLAG_ACCEPT_STRIDE, 244 MP_IMGTYPE_TEMP, MP_IMGFLAG_ACCEPT_STRIDE,
248 248
249 blur(dmpi->planes[0], mpi->planes[0], mpi->w,mpi->h, dmpi->stride[0], mpi->stride[0], &vf->priv->luma); 249 blur(dmpi->planes[0], mpi->planes[0], mpi->w,mpi->h, dmpi->stride[0], mpi->stride[0], &vf->priv->luma);
250 blur(dmpi->planes[1], mpi->planes[1], cw , ch , dmpi->stride[1], mpi->stride[1], &vf->priv->chroma); 250 blur(dmpi->planes[1], mpi->planes[1], cw , ch , dmpi->stride[1], mpi->stride[1], &vf->priv->chroma);
251 blur(dmpi->planes[2], mpi->planes[2], cw , ch , dmpi->stride[2], mpi->stride[2], &vf->priv->chroma); 251 blur(dmpi->planes[2], mpi->planes[2], cw , ch , dmpi->stride[2], mpi->stride[2], &vf->priv->chroma);
252 252
253 return vf_next_put_image(vf,dmpi); 253 return vf_next_put_image(vf,dmpi, pts);
254 } 254 }
255 255
256 //===========================================================================// 256 //===========================================================================//
257 257
258 static int query_format(struct vf_instance_s* vf, unsigned int fmt){ 258 static int query_format(struct vf_instance_s* vf, unsigned int fmt){