Mercurial > mplayer.hg
comparison libswscale/swscale.c @ 27532:1ecce17e826f
Make SWS_FULL_CHR_H_INP work.
author | michael |
---|---|
date | Wed, 10 Sep 2008 02:28:38 +0000 |
parents | dbdc77f8b041 |
children | dded40ae9728 |
comparison
equal
deleted
inserted
replaced
27531:905724de832e | 27532:1ecce17e826f |
---|---|
2214 // drop every 2. pixel for chroma calculation unless user wants full chroma | 2214 // drop every 2. pixel for chroma calculation unless user wants full chroma |
2215 if ((isBGR(srcFormat) || isRGB(srcFormat)) && !(flags&SWS_FULL_CHR_H_INP) | 2215 if ((isBGR(srcFormat) || isRGB(srcFormat)) && !(flags&SWS_FULL_CHR_H_INP) |
2216 && srcFormat!=PIX_FMT_RGB8 && srcFormat!=PIX_FMT_BGR8 | 2216 && srcFormat!=PIX_FMT_RGB8 && srcFormat!=PIX_FMT_BGR8 |
2217 && srcFormat!=PIX_FMT_RGB4 && srcFormat!=PIX_FMT_BGR4 | 2217 && srcFormat!=PIX_FMT_RGB4 && srcFormat!=PIX_FMT_BGR4 |
2218 && srcFormat!=PIX_FMT_RGB4_BYTE && srcFormat!=PIX_FMT_BGR4_BYTE | 2218 && srcFormat!=PIX_FMT_RGB4_BYTE && srcFormat!=PIX_FMT_BGR4_BYTE |
2219 && srcFormat!=PIX_FMT_BGR24 && srcFormat!=PIX_FMT_RGB24) | 2219 && ((dstW>>c->chrDstHSubSample) <= (srcW>>1) || (flags&(SWS_FAST_BILINEAR|SWS_POINT)))) |
2220 c->chrSrcHSubSample=1; | 2220 c->chrSrcHSubSample=1; |
2221 | 2221 |
2222 if (param){ | 2222 if (param){ |
2223 c->param[0] = param[0]; | 2223 c->param[0] = param[0]; |
2224 c->param[1] = param[1]; | 2224 c->param[1] = param[1]; |