101++
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 21 Feb 2002 19:41:50 +0000 (19:41 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 21 Feb 2002 19:41:50 +0000 (19:41 +0000)
Originally committed as revision 4795 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

postproc/swscale.c
postproc/swscale_template.c

index 9de8ab1a3d5d0b6ebfd0823f368fe2a6eee35eff..67b1c40034210ccbf79c6b91ae6de5cdc7cb73c0 100644 (file)
@@ -68,6 +68,7 @@ untested special converters
 //#define HAVE_3DNOW
 //#undef HAVE_MMX
 //#undef ARCH_X86
 //#define HAVE_3DNOW
 //#undef HAVE_MMX
 //#undef ARCH_X86
+//#define WORDS_BIGENDIAN
 #define DITHER1XBPP
 
 #define FAST_BGR2YV12 // use 7 bit coeffs instead of 15bit
 #define DITHER1XBPP
 
 #define FAST_BGR2YV12 // use 7 bit coeffs instead of 15bit
@@ -294,10 +295,10 @@ static inline void yuv2rgbXinC(int16_t *lumFilter, int16_t **lumSrc, int lumFilt
 {
        if(dstFormat==IMGFMT_BGR32)
        {
 {
        if(dstFormat==IMGFMT_BGR32)
        {
+               int i;
 #ifdef WORDS_BIGENDIAN
        dest++;
 #endif
 #ifdef WORDS_BIGENDIAN
        dest++;
 #endif
-               int i;
                for(i=0; i<(dstW>>1); i++){
                        int j;
                        int Y1=0;
                for(i=0; i<(dstW>>1); i++){
                        int j;
                        int Y1=0;
index a14bc97d5486afdd3f0140ac7e41206af4ef1dbb..aca4d1f0fa91fe3052a99deb0773c2ac5a60fd0b 100644 (file)
@@ -992,10 +992,10 @@ FULL_YSCALEYUV2RGB
 #else
                if(dstFormat==IMGFMT_BGR32)
                {
 #else
                if(dstFormat==IMGFMT_BGR32)
                {
+                       int i;
 #ifdef WORDS_BIGENDIAN
                        dest++;
 #endif
 #ifdef WORDS_BIGENDIAN
                        dest++;
 #endif
-                       int i;
                        for(i=0;i<dstW;i++){
                                // vertical linear interpolation && yuv2rgb in a single step:
                                int Y=yuvtab_2568[((buf0[i]*yalpha1+buf1[i]*yalpha)>>19)];
                        for(i=0;i<dstW;i++){
                                // vertical linear interpolation && yuv2rgb in a single step:
                                int Y=yuvtab_2568[((buf0[i]*yalpha1+buf1[i]*yalpha)>>19)];
@@ -1118,10 +1118,10 @@ FULL_YSCALEYUV2RGB
 #else
                if(dstFormat==IMGFMT_BGR32)
                {
 #else
                if(dstFormat==IMGFMT_BGR32)
                {
+                       int i;
 #ifdef WORDS_BIGENDIAN
                        dest++;
 #endif
 #ifdef WORDS_BIGENDIAN
                        dest++;
 #endif
-                       int i;
                        for(i=0; i<dstW-1; i+=2){
                                // vertical linear interpolation && yuv2rgb in a single step:
                                int Y1=yuvtab_2568[((buf0[i]*yalpha1+buf1[i]*yalpha)>>19)];
                        for(i=0; i<dstW-1; i+=2){
                                // vertical linear interpolation && yuv2rgb in a single step:
                                int Y1=yuvtab_2568[((buf0[i]*yalpha1+buf1[i]*yalpha)>>19)];
@@ -1399,10 +1399,10 @@ static inline void RENAME(yuv2rgb1)(uint16_t *buf0, uint16_t *uvbuf0, uint16_t *
 
        if(dstFormat==IMGFMT_BGR32)
        {
 
        if(dstFormat==IMGFMT_BGR32)
        {
+               int i;
 #ifdef WORDS_BIGENDIAN
                dest++;
 #endif
 #ifdef WORDS_BIGENDIAN
                dest++;
 #endif
-               int i;
                for(i=0; i<dstW-1; i+=2){
                        // vertical linear interpolation && yuv2rgb in a single step:
                        int Y1=yuvtab_2568[buf0[i]>>7];
                for(i=0; i<dstW-1; i+=2){
                        // vertical linear interpolation && yuv2rgb in a single step:
                        int Y1=yuvtab_2568[buf0[i]>>7];