Commit ad33d55f authored by michael's avatar michael

fixing y422p output


git-svn-id: file:///var/local/repositories/mplayer/trunk/postproc@7352 b3059339-0415-0410-9bf9-f77b7e298cf2
parent bbacf4e0
...@@ -2503,7 +2503,8 @@ i--; ...@@ -2503,7 +2503,8 @@ i--;
{ {
if(isPlanarYUV(dstFormat) || isGray(dstFormat)) //YV12 like if(isPlanarYUV(dstFormat) || isGray(dstFormat)) //YV12 like
{ {
if((dstY&1) || isGray(dstFormat)) uDest=vDest= NULL; //FIXME split functions in lumi / chromi const int chrSkipMask= (1<<c->chrDstVSubSample)-1;
if((dstY&chrSkipMask) || isGray(dstFormat)) uDest=vDest= NULL; //FIXME split functions in lumi / chromi
if(vLumFilterSize == 1 && vChrFilterSize == 1) // Unscaled YV12 if(vLumFilterSize == 1 && vChrFilterSize == 1) // Unscaled YV12
{ {
int16_t *lumBuf = lumPixBuf[0]; int16_t *lumBuf = lumPixBuf[0];
...@@ -2559,7 +2560,8 @@ i--; ...@@ -2559,7 +2560,8 @@ i--;
int16_t **chrSrcPtr= chrPixBuf + chrBufIndex + firstChrSrcY - lastInChrBuf + vChrBufSize; int16_t **chrSrcPtr= chrPixBuf + chrBufIndex + firstChrSrcY - lastInChrBuf + vChrBufSize;
if(isPlanarYUV(dstFormat) || isGray(dstFormat)) //YV12 if(isPlanarYUV(dstFormat) || isGray(dstFormat)) //YV12
{ {
if((dstY&1) || isGray(dstFormat)) uDest=vDest= NULL; const int chrSkipMask= (1<<c->chrDstVSubSample)-1;
if((dstY&chrSkipMask) || isGray(dstFormat)) uDest=vDest= NULL; //FIXME split functions in lumi / chromi
yuv2yuvXinC( yuv2yuvXinC(
vLumFilter+dstY*vLumFilterSize , lumSrcPtr, vLumFilterSize, vLumFilter+dstY*vLumFilterSize , lumSrcPtr, vLumFilterSize,
vChrFilter+chrDstY*vChrFilterSize, chrSrcPtr, vChrFilterSize, vChrFilter+chrDstY*vChrFilterSize, chrSrcPtr, vChrFilterSize,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment