comparison src/video/SDL_yuv.c @ 1341:d02b552e5304

Configure dynamically generates SDL_config.h I'm still wrestling with autoheader, but this should work for now... Fixed lots of build problems with C library support disabled
author Sam Lantinga <slouken@libsdl.org>
date Tue, 07 Feb 2006 12:11:33 +0000
parents 604d73db6802
children c71e05b4dc2e
comparison
equal deleted inserted replaced
1340:58b114ef50e7 1341:d02b552e5304
21 */ 21 */
22 22
23 /* This is the implementation of the YUV video surface support */ 23 /* This is the implementation of the YUV video surface support */
24 24
25 #include "SDL_stdlib.h" 25 #include "SDL_stdlib.h"
26 #include "SDL_string.h"
26 #include "SDL_video.h" 27 #include "SDL_video.h"
27 #include "SDL_error.h" 28 #include "SDL_error.h"
28 #include "SDL_sysvideo.h" 29 #include "SDL_sysvideo.h"
29 #include "SDL_yuvfuncs.h" 30 #include "SDL_yuvfuncs.h"
30 #include "SDL_yuv_sw_c.h" 31 #include "SDL_yuv_sw_c.h"
52 } 53 }
53 } 54 }
54 overlay = NULL; 55 overlay = NULL;
55 yuv_hwaccel = SDL_getenv("SDL_VIDEO_YUV_HWACCEL"); 56 yuv_hwaccel = SDL_getenv("SDL_VIDEO_YUV_HWACCEL");
56 if ( ((display == SDL_VideoSurface) && video->CreateYUVOverlay) && 57 if ( ((display == SDL_VideoSurface) && video->CreateYUVOverlay) &&
57 (!yuv_hwaccel || (*yuv_hwaccel != '0')) ) { 58 (!yuv_hwaccel || (SDL_atoi(yuv_hwaccel) > 0)) ) {
58 overlay = video->CreateYUVOverlay(this, w, h, format, display); 59 overlay = video->CreateYUVOverlay(this, w, h, format, display);
59 } 60 }
60 /* If hardware YUV overlay failed ... */ 61 /* If hardware YUV overlay failed ... */
61 if ( overlay == NULL ) { 62 if ( overlay == NULL ) {
62 overlay = SDL_CreateYUV_SW(this, w, h, format, display); 63 overlay = SDL_CreateYUV_SW(this, w, h, format, display);