You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
swscale: reindent h[cy]scale_fast() and updateDitherTables().
This commit is contained in:
committed by
Michael Niedermayer
parent
c3f07903ec
commit
fc72ec727e
@@ -2184,7 +2184,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"\
|
||||||
@@ -2194,7 +2193,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"\
|
||||||
@@ -2226,7 +2224,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,
|
||||||
@@ -2286,6 +2286,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;
|
||||||
|
Reference in New Issue
Block a user