Mercurial > sdl-ios-xcode
comparison src/video/SDL_yuv_sw.c @ 1361:19418e4422cb
New configure-based build system. Still work in progress, but much improved
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Thu, 16 Feb 2006 10:11:48 +0000 |
parents | c71e05b4dc2e |
children | d910939febfa |
comparison
equal
deleted
inserted
replaced
1360:70a9cfb4cf1b | 1361:19418e4422cb |
---|---|
1056 /* You have chosen wisely... */ | 1056 /* You have chosen wisely... */ |
1057 switch (format) { | 1057 switch (format) { |
1058 case SDL_YV12_OVERLAY: | 1058 case SDL_YV12_OVERLAY: |
1059 case SDL_IYUV_OVERLAY: | 1059 case SDL_IYUV_OVERLAY: |
1060 if ( display->format->BytesPerPixel == 2 ) { | 1060 if ( display->format->BytesPerPixel == 2 ) { |
1061 #if defined(i386) && defined(__GNUC__) && defined(USE_ASMBLIT) | 1061 #if i386 && __GNUC__ && SDL_ASSEMBLY_BLITTERS |
1062 /* inline assembly functions */ | 1062 /* inline assembly functions */ |
1063 if ( SDL_HasMMX() && (Rmask == 0xF800) && | 1063 if ( SDL_HasMMX() && (Rmask == 0xF800) && |
1064 (Gmask == 0x07E0) && | 1064 (Gmask == 0x07E0) && |
1065 (Bmask == 0x001F) && | 1065 (Bmask == 0x001F) && |
1066 (width & 15) == 0) { | 1066 (width & 15) == 0) { |
1078 if ( display->format->BytesPerPixel == 3 ) { | 1078 if ( display->format->BytesPerPixel == 3 ) { |
1079 swdata->Display1X = Color24DitherYV12Mod1X; | 1079 swdata->Display1X = Color24DitherYV12Mod1X; |
1080 swdata->Display2X = Color24DitherYV12Mod2X; | 1080 swdata->Display2X = Color24DitherYV12Mod2X; |
1081 } | 1081 } |
1082 if ( display->format->BytesPerPixel == 4 ) { | 1082 if ( display->format->BytesPerPixel == 4 ) { |
1083 #if defined(i386) && defined(__GNUC__) && defined(USE_ASMBLIT) | 1083 #if i386 && __GNUC__ && SDL_ASSEMBLY_BLITTERS |
1084 /* inline assembly functions */ | 1084 /* inline assembly functions */ |
1085 if ( SDL_HasMMX() && (Rmask == 0x00FF0000) && | 1085 if ( SDL_HasMMX() && (Rmask == 0x00FF0000) && |
1086 (Gmask == 0x0000FF00) && | 1086 (Gmask == 0x0000FF00) && |
1087 (Bmask == 0x000000FF) && | 1087 (Bmask == 0x000000FF) && |
1088 (width & 15) == 0) { | 1088 (width & 15) == 0) { |