Mercurial > mplayer.hg
comparison libmpcodecs/vf_2xsai.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 | 6ff3379a0862 |
children | 230123782da0 |
comparison
equal
deleted
inserted
replaced
17905:433494f162a9 | 17906:20aca9baf5d8 |
---|---|
316 Init_2xSaI(outfmt&255); | 316 Init_2xSaI(outfmt&255); |
317 | 317 |
318 return vf_next_config(vf,2*width,2*height,2*d_width,2*d_height,flags,outfmt); | 318 return vf_next_config(vf,2*width,2*height,2*d_width,2*d_height,flags,outfmt); |
319 } | 319 } |
320 | 320 |
321 static int put_image(struct vf_instance_s* vf, mp_image_t *mpi){ | 321 static int put_image(struct vf_instance_s* vf, mp_image_t *mpi, double pts){ |
322 mp_image_t *dmpi; | 322 mp_image_t *dmpi; |
323 | 323 |
324 // hope we'll get DR buffer: | 324 // hope we'll get DR buffer: |
325 dmpi=vf_get_image(vf->next,mpi->imgfmt, | 325 dmpi=vf_get_image(vf->next,mpi->imgfmt, |
326 MP_IMGTYPE_TEMP, MP_IMGFLAG_ACCEPT_STRIDE, | 326 MP_IMGTYPE_TEMP, MP_IMGFLAG_ACCEPT_STRIDE, |
328 | 328 |
329 Super2xSaI_ex(mpi->planes[0], mpi->stride[0], | 329 Super2xSaI_ex(mpi->planes[0], mpi->stride[0], |
330 dmpi->planes[0], dmpi->stride[0], | 330 dmpi->planes[0], dmpi->stride[0], |
331 mpi->w, mpi->h, mpi->bpp/8); | 331 mpi->w, mpi->h, mpi->bpp/8); |
332 | 332 |
333 return vf_next_put_image(vf,dmpi); | 333 return vf_next_put_image(vf,dmpi, pts); |
334 } | 334 } |
335 | 335 |
336 //===========================================================================// | 336 //===========================================================================// |
337 | 337 |
338 static int query_format(struct vf_instance_s* vf, unsigned int fmt){ | 338 static int query_format(struct vf_instance_s* vf, unsigned int fmt){ |