Searched defs:bpp (Results 1 - 25 of 83) sorted by relevance

1234

/external/qemu/distrib/sdl-1.2.12/src/video/xbios/
H A DSDL_xbios_sb3.c53 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 DUpdateChunk.cpp106 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 DSDL_ph_gl.c195 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 DSDL_ph_modes.c113 /* 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 DSDL_riscossprite.c44 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 DSDL_riscosvideo.c55 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 Dgrfmt_imageio.cpp127 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 Dimage.cpp70 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 DSDL_stretch.c58 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 DSDL_pixels.c37 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 DSDL_nullvideo.c54 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 DSDL_fb3dfx.c54 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 DSDL_nxvideo.h46 int bpp ; member in struct:NX_SDL_VISUAL
H A DSDL_nxvideo.c44 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 DSDL_x11image.c105 int bpp; local
111 bpp = screen->format->BytesPerPixel;
H A DSDL_x11yuv.c101 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 Dftbitmap.c106 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 Dmain.cpp11 #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 Dfb-updates-impl.c199 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 Dfile.h31 int bpp; /* bits per pixel, 32 or 16 */ member in struct:SkinDisplay
/external/qemu/distrib/sdl-1.2.12/src/video/aalib/
H A DSDL_aavideo.c46 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 DSDL_cgximage.c384 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 DSDL_cgxvideo.h89 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 DSDL_dcvideo.c41 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 DSDL_ggivideo.c54 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);

Completed in 3742 milliseconds

1234