comparison libmpcodecs/vf_down3dright.c @ 16138:6cada718a809

If scaleh == 1 our destination image must be readable
author reimar
date Thu, 28 Jul 2005 15:53:18 +0000
parents 44fbb21a4eba
children 6ff3379a0862
comparison
equal deleted inserted replaced
16137:23b7f5476b61 16138:6cada718a809
83 { 83 {
84 mp_image_t *dmpi; 84 mp_image_t *dmpi;
85 85
86 // hope we'll get DR buffer: 86 // hope we'll get DR buffer:
87 dmpi=vf_get_image(vf->next, IMGFMT_YV12, 87 dmpi=vf_get_image(vf->next, IMGFMT_YV12,
88 MP_IMGTYPE_TEMP, MP_IMGFLAG_ACCEPT_STRIDE, 88 MP_IMGTYPE_TEMP, MP_IMGFLAG_ACCEPT_STRIDE |
89 (vf->priv->scaleh == 1) ? MP_IMGFLAG_READABLE : 0,
89 mpi->w * vf->priv->scalew, 90 mpi->w * vf->priv->scalew,
90 mpi->h / vf->priv->scaleh - vf->priv->skipline); 91 mpi->h / vf->priv->scaleh - vf->priv->skipline);
91 92
92 toright(dmpi->planes, mpi->planes, dmpi->stride, 93 toright(dmpi->planes, mpi->planes, dmpi->stride,
93 mpi->stride, mpi->w, mpi->h, vf->priv); 94 mpi->stride, mpi->w, mpi->h, vf->priv);