Home
last modified time | relevance | path

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

/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/giflib/
Degif_lib.c320 (ColorMap ? ColorMap->BitsPerPixel - 1 : 0x07 ); /* Actual size of the in EGifPutScreenDesc()
401 (ColorMap ? ColorMap->BitsPerPixel - 1 : 0); in EGifPutImageDesc()
459 Mask = CodeMask[Private->BitsPerPixel]; in EGifPutLine()
488 Pixel &= CodeMask[Private->BitsPerPixel]; in EGifPutPixel()
829 int BitsPerPixel; in EGifSetupCompress() local
835 BitsPerPixel = GifFile->Image.ColorMap->BitsPerPixel; in EGifSetupCompress()
837 BitsPerPixel = GifFile->SColorMap->BitsPerPixel; in EGifSetupCompress()
843 Buf = BitsPerPixel = (BitsPerPixel < 2 ? 2 : BitsPerPixel); in EGifSetupCompress()
847 Private->BitsPerPixel = BitsPerPixel; in EGifSetupCompress()
848 Private->ClearCode = (1 << BitsPerPixel); in EGifSetupCompress()
[all …]
Ddgif_lib.c231 int BitsPerPixel; in DGifGetScreenDesc() local
255 BitsPerPixel = (Buf[0] & 0x07) + 1; in DGifGetScreenDesc()
261 GifFile->SColorMap = GifMakeMapObject(1 << BitsPerPixel, NULL); in DGifGetScreenDesc()
333 unsigned int BitsPerPixel; in DGifGetImageDesc() local
355 BitsPerPixel = (Buf[0] & 0x07) + 1; in DGifGetImageDesc()
367 GifFile->Image.ColorMap = GifMakeMapObject(1 << BitsPerPixel, NULL); in DGifGetImageDesc()
700 *CodeSize = Private->BitsPerPixel; in DGifGetCode()
746 int i, BitsPerPixel; in DGifSetupDecompress() local
752 BitsPerPixel = CodeSize; in DGifSetupDecompress()
755 Private->BitsPerPixel = BitsPerPixel; in DGifSetupDecompress()
[all …]
Dgif_lib_private.h34 BitsPerPixel, /* Bits per pixel (Codes uses at least this + 1). */ member
Dgifalloc.c62 Object->BitsPerPixel = GifBitSize(ColorCount); in GifMakeMapObject()
195 ColorUnion->BitsPerPixel = NewGifBitSize; in GifUnionColorMap()
Dgif_lib.h41 int BitsPerPixel; member
/external/skia/src/codec/
DSkSwizzler.h77 static int BitsPerPixel(SrcConfig sc) { in BitsPerPixel() function
111 SkASSERT(SkIsAlign8(BitsPerPixel(sc))); in BytesPerPixel()
112 return BitsPerPixel(sc) >> 3; in BytesPerPixel()
DSkSwizzler.cpp408 int deltaSrc = SkIsAlign8(BitsPerPixel(sc)) ? BytesPerPixel(sc) : in CreateSwizzler()
409 BitsPerPixel(sc); in CreateSwizzler()
DSkCodec_libgif.cpp363 (unsigned) (1 << (colorMap->BitsPerPixel)));
/external/mesa3d/src/gallium/state_trackers/glx/xlib/
Dxm_api.c328 && v->BitsPerPixel == 32) { in choose_pixel_format()
340 && v->BitsPerPixel == 32) { in choose_pixel_format()
352 && v->BitsPerPixel == 32) { in choose_pixel_format()
365 && v->BitsPerPixel == 16) { in choose_pixel_format()
563 v->BitsPerPixel = bits_per_pixel(v); in initialize_visual_and_buffer()
564 assert(v->BitsPerPixel > 0); in initialize_visual_and_buffer()
582 if (v->BitsPerPixel == 32) { in initialize_visual_and_buffer()
600 printf("X/Mesa bits per pixel = %d\n", v->BitsPerPixel); in initialize_visual_and_buffer()
Dxm_api.h291 GLint BitsPerPixel; /* True bits per pixel for XImages */ member
/external/mesa3d/src/mesa/drivers/x11/
Dxm_api.c513 && v->BitsPerPixel==32 in setup_truecolor()
523 if (v->BitsPerPixel==32) { in setup_truecolor()
530 else if (v->BitsPerPixel == 24) { in setup_truecolor()
538 && v->BitsPerPixel==16 in setup_truecolor()
568 v->BitsPerPixel = bits_per_pixel(v); in initialize_visual_and_buffer()
569 assert(v->BitsPerPixel > 0); in initialize_visual_and_buffer()
599 printf("X/Mesa bits per pixel = %d\n", v->BitsPerPixel); in initialize_visual_and_buffer()
DxmesaP.h81 GLint BitsPerPixel; /* True bits per pixel for XImages */ member
Dxm_dd.c721 switch (xmesa->xm_visual->BitsPerPixel) { in xmesa_update_state()
865 xmvisual->BitsPerPixel == 32) { in xmesa_init_driver_functions()
/external/skia/src/images/
DSkImageDecoder_libgif.cpp130 cmap->ColorCount != (1 << cmap->BitsPerPixel))) { in find_colormap()
341 SkASSERT(cmap->ColorCount == (1 << (cmap->BitsPerPixel)));
DSkMovie_gif.cpp245 if (cmap == NULL || cmap->ColorCount != (1 << cmap->BitsPerPixel)) { in drawFrame()
/external/libvncserver/client_examples/
DSDLvncviewer.c282 int depth = sdl->format->BitsPerPixel; in setRealDimension()