Lines Matching refs:bpp

34 // TODO: optimize 8bpp landscape mode
77 extern int DIB_AddMode(_THIS, int bpp, int w, int h);
82 static SDL_Surface *GAPI_SetVideoMode(_THIS, SDL_Surface *current, int width, int height, int bpp, Uint32 flags);
189 static int GAPI_AddMode(_THIS, int bpp, int w, int h)
196 if ( bpp < 8 ) { /* Not supported */
199 index = ((bpp+7)/8)-1;
499 int i,bpp;
510 // SDL does not supports 2/4bpp mode, so use 16 bpp
511 bpp = gapi->gxProperties.cBPP < 8 ? 16 : gapi->gxProperties.cBPP;
514 GAPI_AddMode(this, bpp, gapi->gxProperties.cyHeight, gapi->gxProperties.cxWidth);
515 GAPI_AddMode(this, bpp, gapi->gxProperties.cxWidth, gapi->gxProperties.cyHeight);
524 // SDL does not supports 2/4bpp mode, so use 16 bpp
525 bpp = gapi->gxProperties.cBPP < 8 ? 16 : gapi->gxProperties.cBPP;
528 GAPI_AddMode(this, bpp, gapi->gxProperties.cyHeight, gapi->gxProperties.cxWidth);
529 GAPI_AddMode(this, bpp, gapi->gxProperties.cxWidth, gapi->gxProperties.cyHeight);
589 int width, int height, int bpp, Uint32 flags)
596 if( bpp < 4 )
598 SDL_SetError("1 bpp and 2 bpp modes is not implemented yet!");
603 if (bpp == current->format->BitsPerPixel) {
607 switch(bpp) {
638 0, 0, bpp, Rmask, Gmask, Bmask, 0);
754 printf("display bpp: %d\n", gapi->gxProperties.cBPP);
772 printf("video surface bpp: %d\n", video->format->BitsPerPixel);
1043 yNibble = rects[i].y & 1; // TODO: only for 4 bpp
1180 int bpp = 16; // we always use either 8 or 16 bpp internally
1200 pHeader->biBitCount = bpp;
1202 pHeader->biSizeImage = (this->hidden->w * this->hidden->h * bpp) / 8;
1205 if( bpp == 16 )