comparison src/video/SDL_yuv_sw.c @ 1402:d910939febfa

Use consistent identifiers for the various platforms we support. Make sure every source file includes SDL_config.h, so the proper system headers are chosen.
author Sam Lantinga <slouken@libsdl.org>
date Tue, 21 Feb 2006 08:46:50 +0000
parents 19418e4422cb
children 40edc79b0926
comparison
equal deleted inserted replaced
1401:1819fd069e89 1402:d910939febfa
17 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 17 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 18
19 Sam Lantinga 19 Sam Lantinga
20 slouken@libsdl.org 20 slouken@libsdl.org
21 */ 21 */
22 #include "SDL_config.h"
22 23
23 /* This is the software implementation of the YUV video overlay support */ 24 /* This is the software implementation of the YUV video overlay support */
24 25
25 /* This code was derived from code carrying the following copyright notices: 26 /* This code was derived from code carrying the following copyright notices:
26 27
1056 /* You have chosen wisely... */ 1057 /* You have chosen wisely... */
1057 switch (format) { 1058 switch (format) {
1058 case SDL_YV12_OVERLAY: 1059 case SDL_YV12_OVERLAY:
1059 case SDL_IYUV_OVERLAY: 1060 case SDL_IYUV_OVERLAY:
1060 if ( display->format->BytesPerPixel == 2 ) { 1061 if ( display->format->BytesPerPixel == 2 ) {
1061 #if i386 && __GNUC__ && SDL_ASSEMBLY_BLITTERS 1062 #if defined(__GNUC__) && defined(__i386__) && SDL_ASSEMBLY_ROUTINES
1062 /* inline assembly functions */ 1063 /* inline assembly functions */
1063 if ( SDL_HasMMX() && (Rmask == 0xF800) && 1064 if ( SDL_HasMMX() && (Rmask == 0xF800) &&
1064 (Gmask == 0x07E0) && 1065 (Gmask == 0x07E0) &&
1065 (Bmask == 0x001F) && 1066 (Bmask == 0x001F) &&
1066 (width & 15) == 0) { 1067 (width & 15) == 0) {
1078 if ( display->format->BytesPerPixel == 3 ) { 1079 if ( display->format->BytesPerPixel == 3 ) {
1079 swdata->Display1X = Color24DitherYV12Mod1X; 1080 swdata->Display1X = Color24DitherYV12Mod1X;
1080 swdata->Display2X = Color24DitherYV12Mod2X; 1081 swdata->Display2X = Color24DitherYV12Mod2X;
1081 } 1082 }
1082 if ( display->format->BytesPerPixel == 4 ) { 1083 if ( display->format->BytesPerPixel == 4 ) {
1083 #if i386 && __GNUC__ && SDL_ASSEMBLY_BLITTERS 1084 #if defined(__GNUC__) && defined(__i386__) && SDL_ASSEMBLY_ROUTINES
1084 /* inline assembly functions */ 1085 /* inline assembly functions */
1085 if ( SDL_HasMMX() && (Rmask == 0x00FF0000) && 1086 if ( SDL_HasMMX() && (Rmask == 0x00FF0000) &&
1086 (Gmask == 0x0000FF00) && 1087 (Gmask == 0x0000FF00) &&
1087 (Bmask == 0x000000FF) && 1088 (Bmask == 0x000000FF) &&
1088 (width & 15) == 0) { 1089 (width & 15) == 0) {