Mercurial > mplayer.hg
comparison libmpcodecs/vf_pp.c @ 7368:a894e99c1e51
changing return type of put_image void->int
author | arpi |
---|---|
date | Tue, 10 Sep 2002 22:18:32 +0000 |
parents | 1e47c2e7aa8e |
children | f483ab704252 |
comparison
equal
deleted
inserted
replaced
7367:5b0baab4c4fd | 7368:a894e99c1e51 |
---|---|
65 mpi->stride[2]=vf->priv->dmpi->stride[2]; | 65 mpi->stride[2]=vf->priv->dmpi->stride[2]; |
66 } | 66 } |
67 mpi->flags|=MP_IMGFLAG_DIRECT; | 67 mpi->flags|=MP_IMGFLAG_DIRECT; |
68 } | 68 } |
69 | 69 |
70 static void put_image(struct vf_instance_s* vf, mp_image_t *mpi){ | 70 static int put_image(struct vf_instance_s* vf, mp_image_t *mpi){ |
71 if(!(mpi->flags&MP_IMGFLAG_DIRECT)){ | 71 if(!(mpi->flags&MP_IMGFLAG_DIRECT)){ |
72 // no DR, so get a new image! hope we'll get DR buffer: | 72 // no DR, so get a new image! hope we'll get DR buffer: |
73 vf->priv->dmpi=vf_get_image(vf->next,vf->priv->outfmt, | 73 vf->priv->dmpi=vf_get_image(vf->next,vf->priv->outfmt, |
74 MP_IMGTYPE_TEMP, MP_IMGFLAG_ACCEPT_STRIDE|MP_IMGFLAG_PREFER_ALIGNED_STRIDE, | 74 MP_IMGTYPE_TEMP, MP_IMGFLAG_ACCEPT_STRIDE|MP_IMGFLAG_PREFER_ALIGNED_STRIDE, |
75 // MP_IMGTYPE_TEMP, MP_IMGFLAG_ACCEPT_STRIDE, | 75 // MP_IMGTYPE_TEMP, MP_IMGFLAG_ACCEPT_STRIDE, |
85 (mpi->w+7)&(~7),mpi->h, | 85 (mpi->w+7)&(~7),mpi->h, |
86 mpi->qscale, mpi->qstride, | 86 mpi->qscale, mpi->qstride, |
87 vf->priv->pp); | 87 vf->priv->pp); |
88 } | 88 } |
89 | 89 |
90 vf_next_put_image(vf,vf->priv->dmpi); | 90 return vf_next_put_image(vf,vf->priv->dmpi); |
91 } | 91 } |
92 | 92 |
93 //===========================================================================// | 93 //===========================================================================// |
94 | 94 |
95 extern int divx_quality; | 95 extern int divx_quality; |