Lines Matching refs:format
143 * Initialize the video and event subsystems -- determine native pixel format
245 /* Create a zero sized video surface of the appropriate format */
261 if ( SDL_VideoSurface->format->palette ) {
262 SDL_PixelFormat *vf = SDL_VideoSurface->format;
268 video->info.vfmt = SDL_VideoSurface->format;
320 * given format, sorted largest to smallest. Returns NULL if there are
321 * no dimensions available for a particular format, or (SDL_Rect **)-1
322 * if any dimension is okay for the given format. If 'format' is NULL,
323 * the mode list will be for the format given by SDL_GetVideoInfo()->vfmt
325 SDL_Rect ** SDL_ListModes (SDL_PixelFormat *format, Uint32 flags)
333 if ( format == NULL ) {
334 format = SDL_VideoSurface->format;
336 modes = video->ListModes(this, format, flags);
371 SDL_PixelFormat format;
383 SDL_memset(&format, 0, sizeof(format));
389 format.BitsPerPixel = SDL_closest_depths[table][b];
390 sizes = SDL_ListModes(&format, flags);
431 SDL_PixelFormat format;
455 SDL_memset(&format, 0, sizeof(format));
459 SDL_closest_depths[table][7] = SDL_VideoSurface->format->BitsPerPixel;
463 format.BitsPerPixel = SDL_closest_depths[table][b];
464 sizes = SDL_ListModes(&format, flags);
500 black = SDL_MapRGB(surface->format, 0, 0, 0);
517 if ( depth == (SDL_VideoSurface->format)->BitsPerPixel ) {
518 Rmask = (SDL_VideoSurface->format)->Rmask;
519 Gmask = (SDL_VideoSurface->format)->Gmask;
520 Bmask = (SDL_VideoSurface->format)->Bmask;
532 if ( SDL_ShadowSurface->format->palette ) {
534 if ( depth == (SDL_VideoSurface->format)->BitsPerPixel ) {
535 SDL_memcpy(SDL_ShadowSurface->format->palette->colors,
536 SDL_VideoSurface->format->palette->colors,
537 SDL_VideoSurface->format->palette->ncolors*
541 SDL_ShadowSurface->format->palette->colors, depth);
601 bpp = SDL_VideoSurface->format->BitsPerPixel;
700 if ( mode->format->palette ) {
701 SDL_PixelFormat *vf = mode->format;
718 video->offset_x*mode->format->BytesPerPixel;
723 mode->w, mode->h, mode->format->BitsPerPixel, mode->offset);
795 support the GL_UNSIGNED_SHORT_5_6_5 texture format.
878 (SDL_VideoSurface->format->BitsPerPixel != bpp)) ||
899 video->info.vfmt = SDL_VideoSurface->format;
908 * Convert a surface into the video pixel format.
929 return(SDL_ConvertSurface(surface, SDL_PublicSurface->format, flags));
933 * Convert a surface into a format that's suitable for blitting to
939 SDL_PixelFormat *format;
952 vf = SDL_PublicSurface->format;
968 /* Keep the video format, as long as the high 8 bits are
978 optimised alpha format is written, add the converter here */
981 format = SDL_AllocFormat(32, rmask, gmask, bmask, amask);
984 converted = SDL_ConvertSurface(surface, format, flags);
985 SDL_FreeFormat(format);
1027 SDL_Palette *pal = screen->format->palette;
1089 SDL_Palette *pal = screen->format->palette;
1137 SDL_Palette *pal = screen->format->palette;
1146 vidpal = SDL_VideoSurface->format->palette;
1195 pp = screen->format->palette;
1261 pal = screen->format->palette;
1266 palsize = 1 << screen->format->BitsPerPixel;
1573 this->screen->format->BytesPerPixel * update.x +
1633 this->glPixelStorei( GL_UNPACK_ROW_LENGTH, this->screen->pitch / this->screen->format->BytesPerPixel );
1719 colorkey = icon->format->colorkey;
1720 switch (icon->format->BytesPerPixel) {
1740 } else if((flags & 2) && (*pixels & icon->format->Amask) == 0) {
1756 } else if((flags & 2) && (*pixels & icon->format->Amask) == 0) {