Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Disable luma horizontal scaling for OBE until swscale disables it pro…
…perly
  • Loading branch information
kierank committed Jan 26, 2012
1 parent 8c417af commit 5a35402
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion libswscale/swscale.c
Expand Up @@ -2497,6 +2497,9 @@ static int swScale(SwsContext *c, const uint8_t* src[],
lastLumSrcY, lastChrSrcY);
}

//Disable luma horizontal scaling for OBE until swscale is fixed
const uint8_t *lum_src= src[0]+(lastInLumBuf + 1 - srcSliceY)*srcStride[0];
#if 0
//Do horizontal scaling
while(lastInLumBuf < lastLumSrcY) {
const uint8_t *src1[4] = {
Expand All @@ -2522,6 +2525,7 @@ static int swScale(SwsContext *c, const uint8_t* src[],
DEBUG_BUFFERS("\t\tlumBufIndex %d: lastInLumBuf: %d\n",
lumBufIndex, lastInLumBuf);
}
#endif
while(lastInChrBuf < lastChrSrcY) {
const uint8_t *src1[4] = {
src[0] + (lastInChrBuf + 1 - chrSrcSliceY) * srcStride[0],
Expand Down Expand Up @@ -2613,13 +2617,16 @@ static int swScale(SwsContext *c, const uint8_t* src[],

if (isPlanarYUV(dstFormat) || dstFormat==PIX_FMT_GRAY8) { //YV12 like
const int chrSkipMask= (1<<c->chrDstVSubSample)-1;

#if 0
if (vLumFilterSize == 1) {
yuv2plane1(lumSrcPtr[0], dest[0], dstW, c->lumDither8, 0);
} else {
yuv2planeX(vLumFilter + dstY * vLumFilterSize, vLumFilterSize,
lumSrcPtr, dest[0], dstW, c->lumDither8, 0);
}
#endif
//temporary fix for OBE codepaths
memcpy(dest[0], lum_src, dstW*sizeof(uint16_t));

if (!((dstY&chrSkipMask) || isGray(dstFormat))) {
if (yuv2nv12cX) {
Expand Down

0 comments on commit 5a35402

Please sign in to comment.