Mercurial > mplayer.hg
comparison libmpcodecs/vf_scale.c @ 9934:89da8ec89558
vf_clone_mpi_attributes()
author | michael |
---|---|
date | Sat, 19 Apr 2003 02:48:53 +0000 |
parents | 5025150738eb |
children | 3914afe5c0a7 |
comparison
equal
deleted
inserted
replaced
9933:3548701a13fe | 9934:89da8ec89558 |
---|---|
249 } | 249 } |
250 | 250 |
251 if(vf->priv->w==mpi->w && vf->priv->h==mpi->h){ | 251 if(vf->priv->w==mpi->w && vf->priv->h==mpi->h){ |
252 // just conversion, no scaling -> keep postprocessing data | 252 // just conversion, no scaling -> keep postprocessing data |
253 // this way we can apply pp filter to non-yv12 source using scaler | 253 // this way we can apply pp filter to non-yv12 source using scaler |
254 dmpi->qscale=mpi->qscale; | 254 vf_clone_mpi_attributes(dmpi, mpi); |
255 dmpi->qstride=mpi->qstride; | |
256 } | 255 } |
257 | 256 |
258 if(vf->priv->palette) dmpi->planes[1]=vf->priv->palette; // export palette! | 257 if(vf->priv->palette) dmpi->planes[1]=vf->priv->palette; // export palette! |
259 | 258 |
260 return vf_next_put_image(vf,dmpi); | 259 return vf_next_put_image(vf,dmpi); |