Mercurial > mplayer.hg
comparison libswscale/swscale.c @ 19206:c629606a0702
Comment some #endif lines.
author | diego |
---|---|
date | Fri, 28 Jul 2006 09:07:09 +0000 |
parents | e40cf0305d4e |
children | 7d39b911f0bd |
comparison
equal
deleted
inserted
replaced
19205:3f01e230c898 | 19206:c629606a0702 |
---|---|
191 static const uint64_t bgr2VCoeff attribute_used __attribute__((aligned(8))) = 0x00000038FFD2FFF8ULL; | 191 static const uint64_t bgr2VCoeff attribute_used __attribute__((aligned(8))) = 0x00000038FFD2FFF8ULL; |
192 #else | 192 #else |
193 static const uint64_t bgr2YCoeff attribute_used __attribute__((aligned(8))) = 0x000020E540830C8BULL; | 193 static const uint64_t bgr2YCoeff attribute_used __attribute__((aligned(8))) = 0x000020E540830C8BULL; |
194 static const uint64_t bgr2UCoeff attribute_used __attribute__((aligned(8))) = 0x0000ED0FDAC23831ULL; | 194 static const uint64_t bgr2UCoeff attribute_used __attribute__((aligned(8))) = 0x0000ED0FDAC23831ULL; |
195 static const uint64_t bgr2VCoeff attribute_used __attribute__((aligned(8))) = 0x00003831D0E6F6EAULL; | 195 static const uint64_t bgr2VCoeff attribute_used __attribute__((aligned(8))) = 0x00003831D0E6F6EAULL; |
196 #endif | 196 #endif /* FAST_BGR2YV12 */ |
197 static const uint64_t bgr2YOffset attribute_used __attribute__((aligned(8))) = 0x1010101010101010ULL; | 197 static const uint64_t bgr2YOffset attribute_used __attribute__((aligned(8))) = 0x1010101010101010ULL; |
198 static const uint64_t bgr2UVOffset attribute_used __attribute__((aligned(8)))= 0x8080808080808080ULL; | 198 static const uint64_t bgr2UVOffset attribute_used __attribute__((aligned(8)))= 0x8080808080808080ULL; |
199 static const uint64_t w1111 attribute_used __attribute__((aligned(8))) = 0x0001000100010001ULL; | 199 static const uint64_t w1111 attribute_used __attribute__((aligned(8))) = 0x0001000100010001ULL; |
200 #endif | 200 #endif /* defined(ARCH_X86) || defined(ARCH_X86_64) */ |
201 | 201 |
202 // clipping helper table for C implementations: | 202 // clipping helper table for C implementations: |
203 static unsigned char clip_table[768]; | 203 static unsigned char clip_table[768]; |
204 | 204 |
205 static SwsVector *sws_getConvVec(SwsVector *a, SwsVector *b); | 205 static SwsVector *sws_getConvVec(SwsVector *a, SwsVector *b); |
1426 return swScale_altivec; | 1426 return swScale_altivec; |
1427 else | 1427 else |
1428 return swScale_C; | 1428 return swScale_C; |
1429 #endif | 1429 #endif |
1430 return swScale_C; | 1430 return swScale_C; |
1431 #endif | 1431 #endif /* defined(ARCH_X86) || defined(ARCH_X86_64) */ |
1432 #else //RUNTIME_CPUDETECT | 1432 #else //RUNTIME_CPUDETECT |
1433 #ifdef HAVE_MMX2 | 1433 #ifdef HAVE_MMX2 |
1434 return swScale_MMX2; | 1434 return swScale_MMX2; |
1435 #elif defined (HAVE_3DNOW) | 1435 #elif defined (HAVE_3DNOW) |
1436 return swScale_3DNow; | 1436 return swScale_3DNow; |
1866 #elif defined (HAVE_MMX) | 1866 #elif defined (HAVE_MMX) |
1867 flags |= SWS_CPU_CAPS_MMX; | 1867 flags |= SWS_CPU_CAPS_MMX; |
1868 #elif defined (HAVE_ALTIVEC) | 1868 #elif defined (HAVE_ALTIVEC) |
1869 flags |= SWS_CPU_CAPS_ALTIVEC; | 1869 flags |= SWS_CPU_CAPS_ALTIVEC; |
1870 #endif | 1870 #endif |
1871 #endif | 1871 #endif /* RUNTIME_CPUDETECT */ |
1872 if(clip_table[512] != 255) globalInit(); | 1872 if(clip_table[512] != 255) globalInit(); |
1873 if(rgb15to16 == NULL) sws_rgb2rgb_init(flags); | 1873 if(rgb15to16 == NULL) sws_rgb2rgb_init(flags); |
1874 | 1874 |
1875 /* avoid duplicate Formats, so we don't need to check to much */ | 1875 /* avoid duplicate Formats, so we don't need to check to much */ |
1876 srcFormat = remove_dup_fourcc(origSrcFormat); | 1876 srcFormat = remove_dup_fourcc(origSrcFormat); |
2111 c->chrMmx2FilterPos= av_malloc((c->chrDstW/2/4+8)*sizeof(int32_t)); | 2111 c->chrMmx2FilterPos= av_malloc((c->chrDstW/2/4+8)*sizeof(int32_t)); |
2112 | 2112 |
2113 initMMX2HScaler( dstW, c->lumXInc, c->funnyYCode , c->lumMmx2Filter, c->lumMmx2FilterPos, 8); | 2113 initMMX2HScaler( dstW, c->lumXInc, c->funnyYCode , c->lumMmx2Filter, c->lumMmx2FilterPos, 8); |
2114 initMMX2HScaler(c->chrDstW, c->chrXInc, c->funnyUVCode, c->chrMmx2Filter, c->chrMmx2FilterPos, 4); | 2114 initMMX2HScaler(c->chrDstW, c->chrXInc, c->funnyUVCode, c->chrMmx2Filter, c->chrMmx2FilterPos, 4); |
2115 } | 2115 } |
2116 #endif | 2116 #endif /* defined(ARCH_X86) || defined(ARCH_X86_64) */ |
2117 } // Init Horizontal stuff | 2117 } // Init Horizontal stuff |
2118 | 2118 |
2119 | 2119 |
2120 | 2120 |
2121 /* precalculate vertical scaler filter coefficients */ | 2121 /* precalculate vertical scaler filter coefficients */ |
2710 av_free(c->funnyYCode); | 2710 av_free(c->funnyYCode); |
2711 av_free(c->funnyUVCode); | 2711 av_free(c->funnyUVCode); |
2712 #endif | 2712 #endif |
2713 c->funnyYCode=NULL; | 2713 c->funnyYCode=NULL; |
2714 c->funnyUVCode=NULL; | 2714 c->funnyUVCode=NULL; |
2715 #endif | 2715 #endif /* defined(ARCH_X86) || defined(ARCH_X86_64) */ |
2716 | 2716 |
2717 av_free(c->lumMmx2Filter); | 2717 av_free(c->lumMmx2Filter); |
2718 c->lumMmx2Filter=NULL; | 2718 c->lumMmx2Filter=NULL; |
2719 av_free(c->chrMmx2Filter); | 2719 av_free(c->chrMmx2Filter); |
2720 c->chrMmx2Filter=NULL; | 2720 c->chrMmx2Filter=NULL; |