Home
last modified time | relevance | path

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

1234

/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.15/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/qemu/distrib/sdl-1.2.15/test/
Dtestvidinfo.c144 bmp->w, bmp->h, bmp->format->BitsPerPixel); in RunModeTests()
173 bmpcc->w, bmpcc->h, bmpcc->format->BitsPerPixel); in RunModeTests()
206 bmp->w, bmp->h, bmp->format->BitsPerPixel); in RunModeTests()
237 bmpcc->w, bmpcc->h, bmpcc->format->BitsPerPixel); in RunModeTests()
260 if (bmp->format->BitsPerPixel>8) in RunModeTests()
273 bmp->w, bmp->h, bmp->format->BitsPerPixel); in RunModeTests()
297 if (bmp->format->BitsPerPixel>8) in RunModeTests()
311 bmpcc->w, bmpcc->h, bmpcc->format->BitsPerPixel); in RunModeTests()
404 info->current_w, info->current_h, info->vfmt->BitsPerPixel); in main()
420 printf("\t%dx%dx%d\n", modes[i]->w, modes[i]->h, info->vfmt->BitsPerPixel); in main()
Dgraywin.c222 screen->format->BitsPerPixel, in main()
242 screen->format->BitsPerPixel, in main()
/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.15/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.15/src/video/
DSDL_video.c254 vformat.BitsPerPixel, in SDL_VideoInit()
269 SDL_DitherColors(vf->palette->colors, vf->BitsPerPixel); in SDL_VideoInit()
395 format.BitsPerPixel = SDL_closest_depths[table][b]; in SDL_VideoModeOK()
432 static int SDL_GetVideoMode (int *w, int *h, int *BitsPerPixel, Uint32 flags) in SDL_GetVideoMode() argument
441 if ( *BitsPerPixel < 8 || *BitsPerPixel > 32 ) { in SDL_GetVideoMode()
451 native_bpp = SDL_VideoModeOK(*w, *h, *BitsPerPixel, flags); in SDL_GetVideoMode()
452 if ( native_bpp == *BitsPerPixel ) { in SDL_GetVideoMode()
456 *BitsPerPixel = native_bpp; in SDL_GetVideoMode()
463 table = ((*BitsPerPixel+7)/8)-1; in SDL_GetVideoMode()
464 SDL_closest_depths[table][0] = *BitsPerPixel; in SDL_GetVideoMode()
[all …]
DSDL_bmp.c391 if ( saveme->format->BitsPerPixel == 8 ) { in SDL_SaveBMP_RW()
395 saveme->format->BitsPerPixel); in SDL_SaveBMP_RW()
398 else if ( (saveme->format->BitsPerPixel == 24) && in SDL_SaveBMP_RW()
461 biBitCount = surface->format->BitsPerPixel; in SDL_SaveBMP_RW()
/external/qemu/distrib/sdl-1.2.15/src/video/fbcon/
DSDL_fb3dfx.c69 bpp = dst->format->BitsPerPixel; in FillHWRect()
116 bpp = src->format->BitsPerPixel; in HWAccelBlit()
119 bpp = dst->format->BitsPerPixel; in HWAccelBlit()
/external/qemu/distrib/sdl-1.2.15/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.15/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.15/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.15/src/video/windib/
DSDL_dibvideo.c340 vformat->BitsPerPixel = DIB_SussScreenDepth(); in DIB_VideoInit()
341 switch (vformat->BitsPerPixel) { in DIB_VideoInit()
346 vformat->BitsPerPixel = 16; in DIB_VideoInit()
405 DIB_AddMode(this, vformat->BitsPerPixel, in DIB_VideoInit()
412 if ( vformat->BitsPerPixel <= 8 ) { in DIB_VideoInit()
415 DIB_CreatePalette(this, vformat->BitsPerPixel); in DIB_VideoInit()
445 return(SDL_modelist[((format->BitsPerPixel+7)/8)-1]); in DIB_ListModes()
628 (current->format->BitsPerPixel == bpp) &&
646 if ( bpp == current->format->BitsPerPixel ) {
766 settings.dmBitsPerPel = video->format->BitsPerPixel;
[all …]
/external/qemu/distrib/sdl-1.2.15/src/video/bwindow/
DSDL_sysvideo.cc281 vformat->BitsPerPixel = ColorSpaceToBitsPerPixel(bscreen.ColorSpace()); in BE_VideoInit()
282 if ( vformat->BitsPerPixel == 0 ) { in BE_VideoInit()
331 modes = SDL_modelist[((format->BitsPerPixel+7)/8)-1]; in BE_ListModes()
333 if ( format->BitsPerPixel == in BE_ListModes()
334 _this->screen->format->BitsPerPixel ) { in BE_ListModes()
434 int bpp = screen->format->BitsPerPixel; in BE_SetFullScreen()
/external/qemu/distrib/sdl-1.2.15/src/video/nds/
DSDL_ndsvideo.c99 if (src->format->BitsPerPixel != dst->format->BitsPerPixel) return false; in CheckHWBlit()
170 vformat->BitsPerPixel = 16; // mode 3 in NDS_VideoInit()
/external/qemu/distrib/sdl-1.2.15/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/distrib/sdl-1.2.15/src/video/nanox/
DSDL_nxmodes.c36 if (SDL_Visual.bpp == format -> BitsPerPixel) { in NX_ListModes()
/external/qemu-pc-bios/vgabios/
Dvbe.h64 Bit8u BitsPerPixel; member
118 Bit8u BitsPerPixel; member
/external/qemu/distrib/sdl-1.2.15/src/video/caca/
DSDL_cacavideo.c171 vformat->BitsPerPixel = 8; in Caca_VideoInit()
180 if(format->BitsPerPixel != 8) in Caca_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()
/external/qemu/distrib/sdl-1.2.15/src/video/symbian/EKA2/
DSDL_epocvideo.cpp254 vformat->BitsPerPixel = TDisplayModeUtils::NumDisplayModeBitsPerPixel(displayMode); in EPOC_VideoInit()
465 (TSize(width, height), GetDisplayMode(current->format->BitsPerPixel)); in EPOC_SetVideoMode()
510 …lEnv::AllocHwSurface(TSize(surface->w, surface->h), GetDisplayMode(surface->format->BitsPerPixel)); in EPOC_AllocHWSurface()
/external/qemu/distrib/sdl-1.2.15/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()

1234