comparison libmpcodecs/vf_flip.c @ 5691:61fd0f9e4344

10l
author arpi
date Thu, 18 Apr 2002 22:21:54 +0000
parents 1972c3475d93
children 6253fc19afb1
comparison
equal deleted inserted replaced
5690:436cf6ef67fd 5691:61fd0f9e4344
41 if(mpi->flags&MP_IMGFLAG_DIRECT){ 41 if(mpi->flags&MP_IMGFLAG_DIRECT){
42 vf_next_put_image(vf,vf->priv->dmpi); 42 vf_next_put_image(vf,vf->priv->dmpi);
43 return; // we've used DR, so we're ready... 43 return; // we've used DR, so we're ready...
44 } 44 }
45 45
46 // hope we'll get DR buffer:
47 vf->priv->dmpi=vf_get_image(vf->next,mpi->imgfmt, 46 vf->priv->dmpi=vf_get_image(vf->next,mpi->imgfmt,
48 MP_IMGTYPE_TEMP, MP_IMGFLAG_ACCEPT_STRIDE, 47 MP_IMGTYPE_EXPORT, MP_IMGFLAG_ACCEPT_STRIDE,
49 mpi->width, mpi->height); 48 mpi->width, mpi->height);
50 49
51 // set up mpi as a upside-down image of dmpi: 50 // set up mpi as a upside-down image of dmpi:
52 vf->priv->dmpi->planes[0]=mpi->planes[0]+ 51 vf->priv->dmpi->planes[0]=mpi->planes[0]+
53 mpi->stride[0]*(mpi->height-1); 52 mpi->stride[0]*(mpi->height-1);