Mercurial > mplayer.hg
comparison libmpcodecs/vf_crop.c @ 7368:a894e99c1e51
changing return type of put_image void->int
author | arpi |
---|---|
date | Tue, 10 Sep 2002 22:18:32 +0000 |
parents | 61f39b98ba4d |
children | db98910fea8f |
comparison
equal
deleted
inserted
replaced
7367:5b0baab4c4fd | 7368:a894e99c1e51 |
---|---|
37 d_height=d_height*vf->priv->crop_h/height; | 37 d_height=d_height*vf->priv->crop_h/height; |
38 } | 38 } |
39 return vf_next_config(vf,vf->priv->crop_w,vf->priv->crop_h,d_width,d_height,flags,outfmt); | 39 return vf_next_config(vf,vf->priv->crop_w,vf->priv->crop_h,d_width,d_height,flags,outfmt); |
40 } | 40 } |
41 | 41 |
42 static void put_image(struct vf_instance_s* vf, mp_image_t *mpi){ | 42 static int put_image(struct vf_instance_s* vf, mp_image_t *mpi){ |
43 mp_image_t *dmpi=vf_get_image(vf->next,mpi->imgfmt, | 43 mp_image_t *dmpi=vf_get_image(vf->next,mpi->imgfmt, |
44 MP_IMGTYPE_EXPORT, 0, | 44 MP_IMGTYPE_EXPORT, 0, |
45 vf->priv->crop_w, vf->priv->crop_h); | 45 vf->priv->crop_w, vf->priv->crop_h); |
46 if(mpi->flags&MP_IMGFLAG_PLANAR){ | 46 if(mpi->flags&MP_IMGFLAG_PLANAR){ |
47 dmpi->planes[0]=mpi->planes[0]+ | 47 dmpi->planes[0]=mpi->planes[0]+ |
57 vf->priv->crop_y*mpi->stride[0]+ | 57 vf->priv->crop_y*mpi->stride[0]+ |
58 vf->priv->crop_x*(mpi->bpp/8); | 58 vf->priv->crop_x*(mpi->bpp/8); |
59 } | 59 } |
60 dmpi->stride[0]=mpi->stride[0]; | 60 dmpi->stride[0]=mpi->stride[0]; |
61 dmpi->width=mpi->width; | 61 dmpi->width=mpi->width; |
62 vf_next_put_image(vf,dmpi); | 62 return vf_next_put_image(vf,dmpi); |
63 } | 63 } |
64 | 64 |
65 //===========================================================================// | 65 //===========================================================================// |
66 | 66 |
67 static int open(vf_instance_t *vf, char* args){ | 67 static int open(vf_instance_t *vf, char* args){ |