Home | History | Annotate | Download | only in test

Lines Matching refs:bmp

46 int RunBlitTests(SDL_Surface *screen, SDL_Surface *bmp, int blitcount)
53 maxx = (int)screen->w - bmp->w + 1;
54 maxy = (int)screen->h - bmp->h + 1;
67 dst.w = bmp->w;
68 dst.h = bmp->h;
69 SDL_BlitSurface(bmp, NULL, screen, &dst);
84 SDL_Surface *bmp, *bmpcc, *tmp;
138 bmp = SDL_LoadBMP("sample.bmp");
139 if ( ! bmp ) {
140 printf("Couldn't load sample.bmp: %s\n", SDL_GetError());
144 bmp->w, bmp->h, bmp->format->BitsPerPixel);
145 PrintFlags(bmp->flags);
148 frames = RunBlitTests(screen, bmp, NUM_BLITS);
167 bmpcc = SDL_LoadBMP("sample.bmp");
169 printf("Couldn't load sample.bmp: %s\n", SDL_GetError());
198 tmp = bmp;
199 bmp = SDL_DisplayFormat(bmp);
201 if ( ! bmp ) {
202 printf("Couldn't convert sample.bmp: %s\n", SDL_GetError());
206 bmp->w, bmp->h, bmp->format->BitsPerPixel);
207 PrintFlags(bmp->flags);
210 frames = RunBlitTests(screen, bmp, NUM_BLITS);
233 printf("Couldn't convert sample.bmp: %s\n", SDL_GetError());
260 if (bmp->format->BitsPerPixel>8)
262 SDL_FreeSurface(bmp);
263 bmp = SDL_LoadBMP("sample.bmp");
264 SDL_SetAlpha(bmp, SDL_SRCALPHA, 85); /* 85 - 33% alpha */
265 tmp = bmp;
266 bmp = SDL_DisplayFormat(bmp);
268 if ( ! bmp ) {
269 printf("Couldn't convert sample.bmp: %s\n", SDL_GetError());
273 bmp->w, bmp->h, bmp->format->BitsPerPixel);
274 PrintFlags(bmp->flags);
277 frames = RunBlitTests(screen, bmp, NUM_BLITS);
297 if (bmp->format->BitsPerPixel>8)
300 bmpcc = SDL_LoadBMP("sample.bmp");
307 printf("Couldn't convert sample.bmp: %s\n", SDL_GetError());
326 SDL_FreeSurface(bmp);