Mercurial > mplayer.hg
comparison libmpcodecs/vf_test.c @ 6539:79b536a37e40
better planar support, chroma subsampling support and Y8/Y800 support
author | alex |
---|---|
date | Sun, 23 Jun 2002 21:08:31 +0000 |
parents | ac9c125ea627 |
children | a894e99c1e51 |
comparison
equal
deleted
inserted
replaced
6538:afb4f3c107e7 | 6539:79b536a37e40 |
---|---|
277 MP_IMGTYPE_TEMP, MP_IMGFLAG_ACCEPT_STRIDE, | 277 MP_IMGTYPE_TEMP, MP_IMGFLAG_ACCEPT_STRIDE, |
278 WIDTH, HEIGHT); | 278 WIDTH, HEIGHT); |
279 | 279 |
280 // clean | 280 // clean |
281 memset(dmpi->planes[0], 0, dmpi->stride[0]*dmpi->h); | 281 memset(dmpi->planes[0], 0, dmpi->stride[0]*dmpi->h); |
282 memset(dmpi->planes[1], 128, dmpi->stride[1]*dmpi->h>>1); | 282 memset(dmpi->planes[1], 128, dmpi->stride[1]*dmpi->h>>dmpi->chroma_y_shift); |
283 memset(dmpi->planes[2], 128, dmpi->stride[2]*dmpi->h>>1); | 283 memset(dmpi->planes[2], 128, dmpi->stride[2]*dmpi->h>>dmpi->chroma_y_shift); |
284 | 284 |
285 if(frame%30) | 285 if(frame%30) |
286 { | 286 { |
287 switch(frame/30) | 287 switch(frame/30) |
288 { | 288 { |