Home
last modified time | relevance | path

Searched refs:BitsPerPixel (Results 1 – 25 of 67) sorted by relevance

123

/external/jpeg/
Dwrgif.c223 int BitsPerPixel, ColorMapSize, InitCodeSize, FlagByte; in emit_header() local
230 BitsPerPixel = 1; in emit_header()
231 while (num_colors > (1 << BitsPerPixel)) in emit_header()
232 BitsPerPixel++; in emit_header()
233 ColorMapSize = 1 << BitsPerPixel; in emit_header()
234 if (BitsPerPixel <= 1) in emit_header()
237 InitCodeSize = BitsPerPixel; in emit_header()
252 FlagByte |= (BitsPerPixel-1) << 4; /* color resolution */ in emit_header()
253 FlagByte |= (BitsPerPixel-1); /* size of global color table */ in emit_header()
/external/qemu/distrib/jpeg-6b/
Dwrgif.c223 int BitsPerPixel, ColorMapSize, InitCodeSize, FlagByte; in emit_header() local
230 BitsPerPixel = 1; in emit_header()
231 while (num_colors > (1 << BitsPerPixel)) in emit_header()
232 BitsPerPixel++; in emit_header()
233 ColorMapSize = 1 << BitsPerPixel; in emit_header()
234 if (BitsPerPixel <= 1) in emit_header()
237 InitCodeSize = BitsPerPixel; in emit_header()
252 FlagByte |= (BitsPerPixel-1) << 4; /* color resolution */ in emit_header()
253 FlagByte |= (BitsPerPixel-1); /* size of global color table */ in emit_header()
/external/qemu/distrib/sdl-1.2.12/src/video/riscos/
DSDL_riscosvideo.c181 vformat->BitsPerPixel = (1 << vals[0]); in RISCOS_VideoInit()
188 if (vformat->BitsPerPixel < 8) vformat->BitsPerPixel = 8; in RISCOS_VideoInit()
191 switch (vformat->BitsPerPixel) in RISCOS_VideoInit()
198 vformat->BitsPerPixel = 16; /* SDL wants actual number of bits used */ in RISCOS_VideoInit()
244 return(SDL_modelist[((format->BitsPerPixel+7)/8)-1]); in RISCOS_ListModes()
/external/giflib/
Ddgif_lib.c235 int i, BitsPerPixel; in DGifGetScreenDesc() local
255 BitsPerPixel = (Buf[0] & 0x07) + 1; in DGifGetScreenDesc()
259 GifFile->SColorMap = MakeMapObject(1 << BitsPerPixel, NULL); in DGifGetScreenDesc()
331 int i, BitsPerPixel; in DGifGetImageDesc() local
351 BitsPerPixel = (Buf[0] & 0x07) + 1; in DGifGetImageDesc()
360 GifFile->Image.ColorMap = MakeMapObject(1 << BitsPerPixel, NULL); in DGifGetImageDesc()
655 *CodeSize = Private->BitsPerPixel;
699 int i, BitsPerPixel; local
705 BitsPerPixel = CodeSize;
708 Private->BitsPerPixel = BitsPerPixel;
[all …]
Dgif_lib_private.h35 BitsPerPixel, /* Bits per pixel (Codes uses at least this + 1). */ member
/external/qemu/distrib/sdl-1.2.12/src/video/qtopia/
DSDL_sysvideo.cc218 vformat->BitsPerPixel = QPixmap::defaultDepth(); in QT_VideoInit()
224 QT_AddMode(_this, ((vformat->BitsPerPixel+7)/8)-1, in QT_VideoInit()
226 QT_AddMode(_this, ((vformat->BitsPerPixel+7)/8)-1, in QT_VideoInit()
250 modes = SDL_modelist[((format->BitsPerPixel+7)/8)-1]; in QT_ListModes()
252 if ( format->BitsPerPixel == in QT_ListModes()
253 _this->screen->format->BitsPerPixel ) { in QT_ListModes()
/external/qemu/distrib/sdl-1.2.12/src/video/
DSDL_video.c248 vformat.BitsPerPixel, in SDL_VideoInit()
263 SDL_DitherColors(vf->palette->colors, vf->BitsPerPixel); in SDL_VideoInit()
389 format.BitsPerPixel = SDL_closest_depths[table][b]; in SDL_VideoModeOK()
426 static int SDL_GetVideoMode (int *w, int *h, int *BitsPerPixel, Uint32 flags) in SDL_GetVideoMode() argument
435 if ( *BitsPerPixel < 8 || *BitsPerPixel > 32 ) { in SDL_GetVideoMode()
445 native_bpp = SDL_VideoModeOK(*w, *h, *BitsPerPixel, flags); in SDL_GetVideoMode()
446 if ( native_bpp == *BitsPerPixel ) { in SDL_GetVideoMode()
450 *BitsPerPixel = native_bpp; in SDL_GetVideoMode()
457 table = ((*BitsPerPixel+7)/8)-1; in SDL_GetVideoMode()
458 SDL_closest_depths[table][0] = *BitsPerPixel; in SDL_GetVideoMode()
[all …]
DSDL_bmp.c362 if ( saveme->format->BitsPerPixel == 8 ) { in SDL_SaveBMP_RW()
366 saveme->format->BitsPerPixel); in SDL_SaveBMP_RW()
369 else if ( (saveme->format->BitsPerPixel == 24) && in SDL_SaveBMP_RW()
432 biBitCount = surface->format->BitsPerPixel; in SDL_SaveBMP_RW()
DSDL_stretch.c191 if ( src->format->BitsPerPixel != dst->format->BitsPerPixel ) { in SDL_SoftStretch()
/external/qemu/distrib/sdl-1.2.12/src/video/xbios/
DSDL_xbios.c310 vformat->BitsPerPixel = 8; in XBIOS_VideoInit()
345 vformat->BitsPerPixel = 8; in XBIOS_VideoInit()
392 vformat->BitsPerPixel = 16; in XBIOS_VideoInit()
481 if ((format->BitsPerPixel != 8) && (format->BitsPerPixel !=16)) { in XBIOS_ListModes()
485 return(SDL_modelist[(format->BitsPerPixel)>>4]); in XBIOS_ListModes()
730 if ((surface->format->BitsPerPixel) == 8) { in XBIOS_UpdateRects()
771 if ((surface->format->BitsPerPixel) > 8) { in XBIOS_UpdateRects()
779 if ((surface->format->BitsPerPixel) == 8) { in XBIOS_FlipHWSurface()
809 if ((surface->format->BitsPerPixel) > 8) { in XBIOS_FlipHWSurface()
/external/qemu/distrib/sdl-1.2.12/src/video/fbcon/
DSDL_fb3dfx.c69 bpp = dst->format->BitsPerPixel; in FillHWRect()
117 bpp = src->format->BitsPerPixel; in HWAccelBlit()
120 bpp = dst->format->BitsPerPixel; in HWAccelBlit()
/external/qemu/distrib/sdl-1.2.12/src/video/ggi/
DSDL_ggivideo.c208 ggiGetPalette(VIS, 0, 1 << vformat->BitsPerPixel, pal); in GGI_VideoInit()
220 vformat->BitsPerPixel = db->buffer.plb.pixelformat->depth; in GGI_VideoInit()
237 SDL_modelist[((vformat->BitsPerPixel + 7) / 8) - 1] = &video_mode; in GGI_VideoInit()
245 return(&SDL_modelist[((format->BitsPerPixel + 7) / 8) - 1]); in GGI_ListModes()
/external/qemu/distrib/sdl-1.2.12/src/video/photon/
DSDL_ph_modes.c84 if(mode_info.bits_per_pixel == format->BitsPerPixel) in ph_ListModes()
254 … if ((mode = get_mode_any_format(screen->w, screen->h, screen->format->BitsPerPixel)) == 0) in ph_EnterFullScreen()
262 if ((mode = ph_GetVideoMode(screen->w, screen->h, screen->format->BitsPerPixel)) == 0) in ph_EnterFullScreen()
DSDL_ph_image.c41 bpp=screen->format->BitsPerPixel; in ph_SetupImage()
118 bpp=screen->format->BitsPerPixel; in ph_SetupOCImage()
194 if ((screen->format->BitsPerPixel==8) && (desktopbpp!=8)) in ph_SetupFullScreenImage()
316 …if (ph_SetupOpenGLContext(this, screen->w, screen->h, screen->format->BitsPerPixel, screen->flags)… in ph_SetupOpenGLImage()
363 if ((screen->format->BitsPerPixel==8) && (desktopbpp!=8)) in ph_DestroyImage()
661 switch(surface->format->BitsPerPixel) in ph_ExpandColor()
/external/qemu/distrib/sdl-1.2.12/src/video/windib/
DSDL_dibvideo.c306 vformat->BitsPerPixel = DIB_SussScreenDepth(); in DIB_VideoInit()
307 switch (vformat->BitsPerPixel) { in DIB_VideoInit()
312 vformat->BitsPerPixel = 16; in DIB_VideoInit()
369 DIB_AddMode(this, vformat->BitsPerPixel, in DIB_VideoInit()
376 if ( vformat->BitsPerPixel <= 8 ) { in DIB_VideoInit()
379 DIB_CreatePalette(this, vformat->BitsPerPixel); in DIB_VideoInit()
401 return(SDL_modelist[((format->BitsPerPixel+7)/8)-1]); in DIB_ListModes()
506 if ( bpp == current->format->BitsPerPixel ) {
629 settings.dmBitsPerPel = video->format->BitsPerPixel;
743 binfo->bmiHeader.biBitCount = video->format->BitsPerPixel;
/external/qemu/distrib/sdl-1.2.12/src/video/wincommon/
DSDL_syswm.c122 (icon->format->BitsPerPixel == icon_256->format->BitsPerPixel)){ in WIN_SetWMIcon()
134 icon_256->format->BitsPerPixel); in WIN_SetWMIcon()
/external/qemu/distrib/sdl-1.2.12/src/video/bwindow/
DSDL_sysvideo.cc282 vformat->BitsPerPixel = ColorSpaceToBitsPerPixel(bscreen.ColorSpace()); in BE_VideoInit()
283 if ( vformat->BitsPerPixel == 0 ) { in BE_VideoInit()
332 modes = SDL_modelist[((format->BitsPerPixel+7)/8)-1]; in BE_ListModes()
334 if ( format->BitsPerPixel == in BE_ListModes()
335 _this->screen->format->BitsPerPixel ) { in BE_ListModes()
416 bpp = screen->format->BitsPerPixel; in BE_SetFullScreen()
/external/qemu/distrib/sdl-1.2.12/src/video/macdsp/
DSDL_dspvideo.c443 …err = NewGWorld (&offscreen, vformat->BitsPerPixel, &bounds, NULL, SDL_Display, useDistantHdwrMem … in DSp_IsHWAvailable()
449 …err = NewGWorld (&offscreen, vformat->BitsPerPixel, &bounds, NULL, SDL_Display, useLocalHdwrMem | … in DSp_IsHWAvailable()
553 vformat->BitsPerPixel = GetPixDepth ( (**SDL_Display).gdPMap ); in DSp_VideoInit()
554 dsp_old_depth = vformat->BitsPerPixel; in DSp_VideoInit()
556 switch (vformat->BitsPerPixel) { in DSp_VideoInit()
612 if ( format->BitsPerPixel == 0 ) in DSp_ListModes()
617 if (SDL_modelist[i]->x & format->BitsPerPixel) { in DSp_ListModes()
1088 if ( DSp_NewHWSurface (this, &temp, surface->format->BitsPerPixel, surface->w, surface->h) < 0 ) in DSp_AllocHWSurface()
/external/qemu-pc-bios/vgabios/
Dvbe.h64 Bit8u BitsPerPixel; member
118 Bit8u BitsPerPixel; member
/external/qemu/distrib/sdl-1.2.12/src/video/nanox/
DSDL_nxmodes.c36 if (SDL_Visual.bpp == format -> BitsPerPixel) { in NX_ListModes()
/external/qemu-pc-bios/vgabios/tests/lfbprof/
Dlfbprof.c469 || modeInfo.BitsPerPixel != 8 in AvailableModes()
474 modeInfo.BitsPerPixel); in AvailableModes()
502 || modeInfo.BitsPerPixel != 8 in InitGraphics()
Dlfbprof.h58 char BitsPerPixel; /* Bits per pixel */ member
/external/qemu/distrib/sdl-1.2.12/src/video/epoc/
DSDL_epocvideo.cpp298 vformat->BitsPerPixel = /*!!GetBpp(displayMode) */ 8; in EPOC_VideoInit()
321 if (format->BitsPerPixel == 12 || format->BitsPerPixel == 8) in EPOC_ListModes()
487 TInt sourceNumBytesPerPixel = ((_this->screen->format->BitsPerPixel-1)>>3) + 1; in EPOC_DirectUpdate()
543 if (_this->screen->format->BitsPerPixel == 12) { in EPOC_DirectUpdate()
/external/qemu/distrib/sdl-1.2.12/src/video/gapi/
DSDL_gapivideo.c543 …vformat->BitsPerPixel = this->hidden->gxProperties.cBPP < 8 ? 16 : (unsigned char)this->hidden->gx… in GAPI_VideoInit()
547 vformat->BitsPerPixel = 16; in GAPI_VideoInit()
555 vformat->BitsPerPixel = 16; in GAPI_VideoInit()
564 vformat->BitsPerPixel = 16; in GAPI_VideoInit()
584 return(this->hidden->SDL_modelist[((format->BitsPerPixel+7)/8)-1]); in GAPI_ListModes()
603 if (bpp == current->format->BitsPerPixel) { in GAPI_SetVideoMode()
772 printf("video surface bpp: %d\n", video->format->BitsPerPixel); in GAPI_SetVideoMode()
/external/qemu/distrib/sdl-1.2.12/src/video/macrom/
DSDL_romvideo.c216 vformat->BitsPerPixel = (**(**SDL_Display).gdPMap).pixelSize; in ROM_VideoInit()
217 switch (vformat->BitsPerPixel) { in ROM_VideoInit()
261 if ( this->screen->format->BitsPerPixel == format->BitsPerPixel ) { in ROM_ListModes()

123