comparison libmpcodecs/vf_fil.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 f8d4f8eff72b
comparison
equal deleted inserted replaced
17905:433494f162a9 17906:20aca9baf5d8
45 45
46 return vf_next_config(vf, vf->priv->width, vf->priv->height, 46 return vf_next_config(vf, vf->priv->width, vf->priv->height,
47 (d_width*vf->priv->stridefactor)>>1, 2*d_height/vf->priv->stridefactor, flags, outfmt); 47 (d_width*vf->priv->stridefactor)>>1, 2*d_height/vf->priv->stridefactor, flags, outfmt);
48 } 48 }
49 49
50 static int put_image(struct vf_instance_s* vf, mp_image_t *mpi){ 50 static int put_image(struct vf_instance_s* vf, mp_image_t *mpi, double pts){
51 if(mpi->flags&MP_IMGFLAG_DIRECT){ 51 if(mpi->flags&MP_IMGFLAG_DIRECT){
52 // we've used DR, so we're ready... 52 // we've used DR, so we're ready...
53 return vf_next_put_image(vf,(mp_image_t*)mpi->priv); 53 return vf_next_put_image(vf,(mp_image_t*)mpi->priv, pts);
54 } 54 }
55 55
56 vf->dmpi=vf_get_image(vf->next,mpi->imgfmt, 56 vf->dmpi=vf_get_image(vf->next,mpi->imgfmt,
57 MP_IMGTYPE_EXPORT, MP_IMGFLAG_ACCEPT_STRIDE, 57 MP_IMGTYPE_EXPORT, MP_IMGFLAG_ACCEPT_STRIDE,
58 vf->priv->width, vf->priv->height); 58 vf->priv->width, vf->priv->height);
66 vf->dmpi->planes[2]=mpi->planes[2]; 66 vf->dmpi->planes[2]=mpi->planes[2];
67 vf->dmpi->stride[2]=(mpi->stride[2]*vf->priv->stridefactor)>>1; 67 vf->dmpi->stride[2]=(mpi->stride[2]*vf->priv->stridefactor)>>1;
68 } else 68 } else
69 vf->dmpi->planes[1]=mpi->planes[1]; // passthru bgr8 palette!!! 69 vf->dmpi->planes[1]=mpi->planes[1]; // passthru bgr8 palette!!!
70 70
71 return vf_next_put_image(vf,vf->dmpi); 71 return vf_next_put_image(vf,vf->dmpi, pts);
72 } 72 }
73 73
74 //===========================================================================// 74 //===========================================================================//
75 75
76 static void uninit(struct vf_instance_s* vf) 76 static void uninit(struct vf_instance_s* vf)