Home
last modified time | relevance | path

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

/external/pdfium/core/fxcodec/lbmp/
Dfx_bmp.cpp367 uint8_t red_bits = 0; in DecodeRGB() local
374 red_bits++; in DecodeRGB()
377 red_bits += green_bits; in DecodeRGB()
378 if (blue_bits > 8 || green_bits < 8 || red_bits < 8) in DecodeRGB()
382 red_bits -= 8; in DecodeRGB()
390 static_cast<uint8_t>((*buf++ & mask_red) >> red_bits); in DecodeRGB()
/external/mesa3d/src/mesa/drivers/dri/common/
Dutils.c188 int red_bits; in driCreateConfigs() local
225 red_bits = _mesa_get_format_bits(format, GL_RED_BITS); in driCreateConfigs()
250 (red_bits + green_bits + blue_bits + alpha_bits == 16)) in driCreateConfigs()
259 modes->redBits = red_bits; in driCreateConfigs()
/external/mesa3d/src/gallium/state_trackers/glx/xlib/
Dxm_api.c768 GLint red_bits, green_bits, blue_bits, alpha_bits; in XMesaCreateVisual() local
824 red_bits = _mesa_bitcount(GET_REDMASK(v)); in XMesaCreateVisual()
832 red_bits = depth / 3; in XMesaCreateVisual()
833 depth -= red_bits; in XMesaCreateVisual()
838 assert( red_bits + green_bits + blue_bits == v->visinfo->depth ); in XMesaCreateVisual()
851 vis->redBits = red_bits; in XMesaCreateVisual()
855 vis->rgbBits = red_bits + green_bits + blue_bits; in XMesaCreateVisual()
/external/mesa3d/src/mesa/drivers/x11/
Dxm_api.c761 GLint red_bits, green_bits, blue_bits, alpha_bits; in XMesaCreateVisual() local
831 red_bits = _mesa_bitcount(GET_REDMASK(v)); in XMesaCreateVisual()
839 red_bits = depth / 3; in XMesaCreateVisual()
840 depth -= red_bits; in XMesaCreateVisual()
845 assert( red_bits + green_bits + blue_bits == GET_VISUAL_DEPTH(v) ); in XMesaCreateVisual()
852 red_bits, green_bits, in XMesaCreateVisual()