swscale: reindent h[cy]scale_fast() and updateDitherTables().

This commit is contained in:
Ronald S. Bultje 2011-05-24 17:50:03 -04:00
parent e2bad983b5
commit 836b82e3c9
1 changed files with 131 additions and 130 deletions

View File

@ -2029,7 +2029,6 @@ static inline void RENAME(hyscale_fast)(SwsContext *c, int16_t *dst,
PREFETCH" 64(%%"REG_c") \n\t" PREFETCH" 64(%%"REG_c") \n\t"
#if ARCH_X86_64 #if ARCH_X86_64
#define CALL_MMX2_FILTER_CODE \ #define CALL_MMX2_FILTER_CODE \
"movl (%%"REG_b"), %%esi \n\t"\ "movl (%%"REG_b"), %%esi \n\t"\
"call *%4 \n\t"\ "call *%4 \n\t"\
@ -2039,7 +2038,6 @@ static inline void RENAME(hyscale_fast)(SwsContext *c, int16_t *dst,
"xor %%"REG_a", %%"REG_a" \n\t"\ "xor %%"REG_a", %%"REG_a" \n\t"\
#else #else
#define CALL_MMX2_FILTER_CODE \ #define CALL_MMX2_FILTER_CODE \
"movl (%%"REG_b"), %%esi \n\t"\ "movl (%%"REG_b"), %%esi \n\t"\
"call *%4 \n\t"\ "call *%4 \n\t"\
@ -2071,7 +2069,9 @@ static inline void RENAME(hyscale_fast)(SwsContext *c, int16_t *dst,
,"%"REG_b ,"%"REG_b
#endif #endif
); );
for (i=dstWidth-1; (i*xInc)>>16 >=srcW-1; i--) dst[i] = src[srcW-1]*128;
for (i=dstWidth-1; (i*xInc)>>16 >=srcW-1; i--)
dst[i] = src[srcW-1]*128;
} }
static inline void RENAME(hcscale_fast)(SwsContext *c, int16_t *dst, static inline void RENAME(hcscale_fast)(SwsContext *c, int16_t *dst,
@ -2131,6 +2131,7 @@ static inline void RENAME(hcscale_fast)(SwsContext *c, int16_t *dst,
,"%"REG_b ,"%"REG_b
#endif #endif
); );
for (i=dstWidth-1; (i*xInc)>>16 >=srcW-1; i--) { for (i=dstWidth-1; (i*xInc)>>16 >=srcW-1; i--) {
dst[i] = src1[srcW-1]*128; dst[i] = src1[srcW-1]*128;
dst[i+VOFW] = src2[srcW-1]*128; dst[i+VOFW] = src2[srcW-1]*128;