Home
last modified time | relevance | path

Searched refs:red_bits (Results 1 – 4 of 4) sorted by relevance

/external/pdfium/core/fxcodec/bmp/
Dcfx_bmpdecompressor.cpp398 uint8_t red_bits = 0; in DecodeRGB() local
405 red_bits++; in DecodeRGB()
408 red_bits += green_bits; in DecodeRGB()
409 if (blue_bits > 8 || green_bits < 8 || red_bits < 8) in DecodeRGB()
413 red_bits -= 8; in DecodeRGB()
421 static_cast<uint8_t>((*buf++ & mask_red_) >> red_bits); in DecodeRGB()
/external/mesa3d/src/mesa/drivers/dri/common/
Dutils.c230 int red_bits; in driCreateConfigs() local
292 red_bits = _mesa_get_format_bits(format, GL_RED_BITS); in driCreateConfigs()
318 (red_bits + green_bits + blue_bits + alpha_bits == 16)) in driCreateConfigs()
328 modes->redBits = red_bits; in driCreateConfigs()
/external/mesa3d/src/gallium/frontends/glx/xlib/
Dxm_api.c764 GLint red_bits, green_bits, blue_bits, alpha_bits; in XMesaCreateVisual() local
823 red_bits = util_bitcount(GET_REDMASK(v)); in XMesaCreateVisual()
831 red_bits = depth / 3; in XMesaCreateVisual()
832 depth -= red_bits; in XMesaCreateVisual()
837 assert( red_bits + green_bits + blue_bits == v->visinfo->depth ); in XMesaCreateVisual()
849 vis->redBits = red_bits; in XMesaCreateVisual()
853 vis->rgbBits = red_bits + green_bits + blue_bits; in XMesaCreateVisual()
/external/mesa3d/src/mesa/drivers/x11/
Dxm_api.c760 GLint red_bits, green_bits, blue_bits, alpha_bits; in XMesaCreateVisual() local
830 red_bits = util_bitcount(GET_REDMASK(v)); in XMesaCreateVisual()
838 red_bits = depth / 3; in XMesaCreateVisual()
839 depth -= red_bits; in XMesaCreateVisual()
844 assert( red_bits + green_bits + blue_bits == GET_VISUAL_DEPTH(v) ); in XMesaCreateVisual()
851 red_bits, green_bits, in XMesaCreateVisual()