/external/qemu/distrib/sdl-1.2.12/src/video/xbios/ |
H A D | SDL_xbios_sb3.c | 53 int bpp; local 55 /* Check if current SB3 mode is usable, i.e. 8 or 16bpp */ 57 bpp = 1<<(SDL_XBIOS_scpn_planes_device[scrinfo->device]); 59 if ((bpp==8) || (bpp==16)) {
|
/external/webkit/Source/WebKit2/Shared/qt/ |
H A D | UpdateChunk.cpp | 106 int bpp; local 108 bpp = 2; 110 bpp = 4; 112 return ((m_rect.width() * bpp + 3) & ~0x3) 123 int bpp; local 126 bpp = 2; 129 bpp = 4; 132 return QImage(reinterpret_cast<unsigned char*>(m_sharedMemory->data()), m_rect.width(), m_rect.height(), (m_rect.width() * bpp + 3) & ~0x3, format);
|
/external/qemu/distrib/sdl-1.2.12/src/video/photon/ |
H A D | SDL_ph_gl.c | 195 int ph_SetupOpenGLContext(_THIS, int width, int height, int bpp, Uint32 flags) argument 205 if ((oglctx!=NULL) && (oglflags==flags) && (oglbpp==bpp)) 263 oglbpp=bpp; 278 int ph_SetupOpenGLContext(_THIS, int width, int height, int bpp, Uint32 flags) argument 399 oglbpp=bpp;
|
H A D | SDL_ph_modes.c | 113 /* return the mode associated with width, height and bpp */ 115 int ph_GetVideoMode(int width, int height, int bpp) argument 141 (mode_info.bits_per_pixel == bpp)) 148 (mode_info.bits_per_pixel == bpp)) 165 /* return the mode associated with width, height and bpp */ 166 /* if requested bpp is not found the mode with closest bpp is returned */ 167 int get_mode_any_format(int width, int height, int bpp) argument 192 /* get closest bpp */ 194 if (mode_info.bits_per_pixel == bpp) [all...] |
/external/qemu/distrib/sdl-1.2.12/src/video/riscos/ |
H A D | SDL_riscossprite.c | 44 unsigned char *WIMP_CreateBuffer(int width, int height, int bpp) argument 54 switch(bpp) 93 if (bpp == 8) 96 regs.r[6] = 28; /* 8bpp 90x90dpi */ 99 regs.r[6] = (((bpp == 16) ? 5 : 6) << 27) /* Type 6 = 32bpp sprite, 5 = 16bpp sprite */ 106 if (bpp == 8)
|
H A D | SDL_riscosvideo.c | 55 static SDL_Surface *RISCOS_SetVideoMode(_THIS, SDL_Surface *current, int width, int height, int bpp, Uint32 flags); 65 extern SDL_Surface *FULLSCREEN_SetVideoMode(_THIS, SDL_Surface *current, int width, int height, int bpp, Uint32 flags); 71 extern SDL_Surface *WIMP_SetVideoMode(_THIS, SDL_Surface *current, int width, int height, int bpp, Uint32 flags); 173 vars[0] = 9; /* Log base 2 bpp */ 187 /* Minimum bpp for SDL is 8 */ 252 int width, int height, int bpp, Uint32 flags) 260 return FULLSCREEN_SetVideoMode(this, current, width, height, bpp, flags); 264 return WIMP_SetVideoMode(this, current, width, height, bpp, flags); 251 RISCOS_SetVideoMode(_THIS, SDL_Surface *current, int width, int height, int bpp, Uint32 flags) argument
|
/external/opencv/otherlibs/highgui/ |
H A D | grfmt_imageio.cpp | 127 int bpp; // Bytes per pixel local 146 bpp = 1; 152 bpp = 4; /* CG only has 8 and 32 bit color spaces, so we waste a byte */ 158 bitmap = (uchar*)malloc( bpp * m_height * m_width ); 169 bpp * m_width, /* bytes per row */ 213 bitmapIndex += bpp; 282 int bpp = (_channels == 1) ? 1 : 4; local 289 if( bpp == 1 ) 291 else if( bpp == 4 ) 296 bitmapData = (uchar*)malloc( bpp * heigh [all...] |
H A D | image.cpp | 70 bool CvvImage::Create( int w, int h, int bpp, int origin ) argument 74 if( (bpp != 8 && bpp != 24 && bpp != 32) || 82 if( !m_img || Bpp() != bpp || m_img->width != w || m_img->height != h ) 88 m_img = cvCreateImage( cvSize( w, h ), IPL_DEPTH_8U, bpp/8 );
|
/external/qemu/distrib/sdl-1.2.12/src/video/ |
H A D | SDL_stretch.c | 58 static int generate_rowbytes(int src_w, int dst_w, int bpp) argument 61 int bpp; member in struct:__anon8180 73 (dst_w == last.dst_w) && (bpp == last.bpp) ) { 76 last.bpp = bpp; 80 switch (bpp) { 91 SDL_SetError("ASM stretch of %d bytes isn't supported\n", bpp); 99 if ( bpp == 2 ) { 105 if ( bpp 189 const int bpp = dst->format->BytesPerPixel; local [all...] |
H A D | SDL_pixels.c | 37 SDL_PixelFormat *SDL_AllocFormat(int bpp, argument 53 format->BitsPerPixel = bpp; 54 format->BytesPerPixel = (bpp+7)/8; 93 } else if ( bpp > 8 ) { /* Packed pixels with standard mask */ 95 if ( bpp > 24 ) 96 bpp = 24; 97 format->Rloss = 8-(bpp/3); 98 format->Gloss = 8-(bpp/3)-(bpp%3); 99 format->Bloss = 8-(bpp/ 224 SDL_ReallocFormat(SDL_Surface *surface, int bpp, Uint32 Rmask, Uint32 Gmask, Uint32 Bmask, Uint32 Amask) argument 266 SDL_DitherColors(SDL_Color *colors, int bpp) argument 467 int bpp; local [all...] |
/external/qemu/distrib/sdl-1.2.12/src/video/dummy/ |
H A D | SDL_nullvideo.c | 54 static SDL_Surface *DUMMY_SetVideoMode(_THIS, SDL_Surface *current, int width, int height, int bpp, Uint32 flags); 162 int width, int height, int bpp, Uint32 flags) 168 this->hidden->buffer = SDL_malloc(width * height * (bpp / 8)); 176 SDL_memset(this->hidden->buffer, 0, width * height * (bpp / 8)); 179 if ( ! SDL_ReallocFormat(current, bpp, 0, 0, 0, 0) ) { 190 current->pitch = current->w * (bpp / 8); 161 DUMMY_SetVideoMode(_THIS, SDL_Surface *current, int width, int height, int bpp, Uint32 flags) argument
|
/external/qemu/distrib/sdl-1.2.12/src/video/fbcon/ |
H A D | SDL_fb3dfx.c | 54 int bpp; local 69 bpp = dst->format->BitsPerPixel; 70 format = dst->pitch | ((bpp+((bpp==8) ? 0 : 8)) << 13); 97 int bpp; local 117 bpp = src->format->BitsPerPixel; 118 src_format = src->pitch | ((bpp+((bpp==8) ? 0 : 8)) << 13); 120 bpp = dst->format->BitsPerPixel; 121 dst_format = dst->pitch | ((bpp [all...] |
/external/qemu/distrib/sdl-1.2.12/src/video/nanox/ |
H A D | SDL_nxvideo.h | 46 int bpp ; member in struct:NX_SDL_VISUAL
|
H A D | SDL_nxvideo.c | 44 static SDL_Surface * NX_SetVideoMode (_THIS, SDL_Surface * current, int width, int height, int bpp, Uint32 flags) ; 210 SDL_Visual.bpp = si.bpp ; 234 vformat -> BitsPerPixel = SDL_Visual.bpp ; 301 int w, int h, int bpp, Uint32 flags) 317 if ( ! SDL_ReallocFormat (screen, bpp, SDL_Visual.red_mask, 364 int width, int height, int bpp, Uint32 flags) 371 bpp = SDL_Visual.bpp ; 372 if (NX_CreateWindow (this, current, width, height, bpp, flag 300 NX_CreateWindow(_THIS, SDL_Surface * screen, int w, int h, int bpp, Uint32 flags) argument 363 NX_SetVideoMode(_THIS, SDL_Surface * current, int width, int height, int bpp, Uint32 flags) argument [all...] |
/external/qemu/distrib/sdl-1.2.12/src/video/x11/ |
H A D | SDL_x11image.c | 105 int bpp; local 111 bpp = screen->format->BytesPerPixel;
|
H A D | SDL_x11yuv.c | 101 int bpp; local 161 /* Precalculate the bpp for the pitch workaround below */ 167 bpp = 2; 170 bpp = 1; 255 if ( hwdata->image != NULL && hwdata->image->pitches[0] != (width*bpp) ) { 258 width = hwdata->image->pitches[0] / bpp; 299 if ( hwdata->image != NULL && hwdata->image->pitches[0] != (width*bpp) ) { 302 width = hwdata->image->pitches[0] / bpp;
|
/external/freetype/src/base/ |
H A D | ftbitmap.c | 106 FT_UInt bpp; local 120 bpp = 1; 124 bpp = 2; 128 bpp = 4; 134 bpp = 8; 146 FT_Int bit_last = ( width + xpixels ) * bpp; 181 FT_Int len = ( width * bpp + 7 ) >> 3; 190 FT_Int len = ( width * bpp + 7 ) >> 3;
|
/external/mesa3d/test/ |
H A D | main.cpp | 11 #define USE_16BPP_TEXTURE 0 // forces texture to load as 16bpp, define before image_file.h 24 extern "C" int SetupDrawingSurface(unsigned * width, unsigned * height, unsigned * bpp); 100 unsigned width = 0, height = 0, bpp = 0; local 101 SetupDrawingSurface(&width, &height, &bpp);
|
/external/qemu/android/protocol/ |
H A D | fb-updates-impl.c | 199 char* bpp = strstr(handshake, "bitsperpixel="); local 200 if (bpp != NULL) { 202 bpp += strlen("bitsperpixel="); 203 end = strchr(bpp, ' '); 205 end = bpp + strlen(bpp); 207 fbi->bits_per_pixel = strtol(bpp, &end, 0);
|
/external/qemu/android/skin/ |
H A D | file.h | 31 int bpp; /* bits per pixel, 32 or 16 */ member in struct:SkinDisplay
|
/external/qemu/distrib/sdl-1.2.12/src/video/aalib/ |
H A D | SDL_aavideo.c | 46 static SDL_Surface *AA_SetVideoMode(_THIS, SDL_Surface *current, int width, int height, int bpp, Uint32 flags); 246 int width, int height, int bpp, Uint32 flags) 245 AA_SetVideoMode(_THIS, SDL_Surface *current, int width, int height, int bpp, Uint32 flags) argument
|
/external/qemu/distrib/sdl-1.2.12/src/video/cybergfx/ |
H A D | SDL_cgximage.c | 384 int bpp; local 410 bpp=this->hidden->BytesPerPixel; // That one is the only one that needs bpp 497 for(t=0;t<bpp;t++) 501 dst+=bpp; 681 int bpp; local 712 bpp=this->hidden->BytesPerPixel; // That one is the only one that needs bpp 771 for(t=0;t<bpp;t++) 775 dst+=bpp; [all...] |
H A D | SDL_cgxvideo.h | 89 int bpp; /* pixel quantum in bits */ member in struct:SDL_PrivateVideoData::__anon8308 94 int depth; /* current visual depth (not bpp) */ 148 int w, int h, int bpp, Uint32 flags);
|
/external/qemu/distrib/sdl-1.2.12/src/video/dc/ |
H A D | SDL_dcvideo.c | 41 static SDL_Surface *DC_SetVideoMode(_THIS, SDL_Surface *current, int width, int height, int bpp, Uint32 flags); 191 int width, int height, int bpp, Uint32 flags) 204 switch(bpp) { 217 case 24: bpp = 32; 231 // if ( bpp != current->format->BitsPerPixel ) { 232 if ( ! SDL_ReallocFormat(current, bpp, Rmask, Gmask, Bmask, 0) ) { 190 DC_SetVideoMode(_THIS, SDL_Surface *current, int width, int height, int bpp, Uint32 flags) argument
|
/external/qemu/distrib/sdl-1.2.12/src/video/ggi/ |
H A D | SDL_ggivideo.c | 54 static SDL_Surface *GGI_SetVideoMode(_THIS, SDL_Surface *current, int width, int height, int bpp, Uint32 flags); 251 SDL_Surface *GGI_SetVideoMode(_THIS, SDL_Surface *current, int width, int height, int bpp, Uint32 flags) argument 272 switch (bpp) 306 ggiGetPalette(VIS, 0, 1 << bpp, pal);
|