Commit bc5a0444 authored by Luca Barbato's avatar Luca Barbato

Reindent. SoC Patch from Keiji Costantini

Originally committed as revision 27213 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
parent 2d35ae56
...@@ -1732,9 +1732,8 @@ static int yvu9toyv12Wrapper(SwsContext *c, uint8_t* src[], int srcStride[], int ...@@ -1732,9 +1732,8 @@ static int yvu9toyv12Wrapper(SwsContext *c, uint8_t* src[], int srcStride[], int
/* unscaled copy like stuff (assumes nearly identical formats) */ /* unscaled copy like stuff (assumes nearly identical formats) */
static int packedCopy(SwsContext *c, uint8_t* src[], int srcStride[], int srcSliceY, static int packedCopy(SwsContext *c, uint8_t* src[], int srcStride[], int srcSliceY,
int srcSliceH, uint8_t* dst[], int dstStride[]){ int srcSliceH, uint8_t* dst[], int dstStride[])
{
if (dstStride[0]==srcStride[0] && srcStride[0] > 0) if (dstStride[0]==srcStride[0] && srcStride[0] > 0)
memcpy(dst[0] + dstStride[0]*srcSliceY, src[0], srcSliceH*dstStride[0]); memcpy(dst[0] + dstStride[0]*srcSliceY, src[0], srcSliceH*dstStride[0]);
else else
...@@ -1756,13 +1755,12 @@ static int packedCopy(SwsContext *c, uint8_t* src[], int srcStride[], int srcSli ...@@ -1756,13 +1755,12 @@ static int packedCopy(SwsContext *c, uint8_t* src[], int srcStride[], int srcSli
dstPtr+= dstStride[0]; dstPtr+= dstStride[0];
} }
} }
return srcSliceH; return srcSliceH;
} }
static int planarCopy(SwsContext *c, uint8_t* src[], int srcStride[], int srcSliceY, static int planarCopy(SwsContext *c, uint8_t* src[], int srcStride[], int srcSliceY,
int srcSliceH, uint8_t* dst[], int dstStride[]) int srcSliceH, uint8_t* dst[], int dstStride[])
{ {
int plane; int plane;
for (plane=0; plane<3; plane++) for (plane=0; plane<3; plane++)
{ {
...@@ -1793,7 +1791,6 @@ static int planarCopy(SwsContext *c, uint8_t* src[], int srcStride[], int srcSli ...@@ -1793,7 +1791,6 @@ static int planarCopy(SwsContext *c, uint8_t* src[], int srcStride[], int srcSli
} }
} }
} }
return srcSliceH; return srcSliceH;
} }
......
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