Home
last modified time | relevance | path

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

/external/pdfium/core/src/fxcodec/lbmp/
Dfx_bmp.cpp365 uint8_t red_bits = 0; in _bmp_decode_rgb() local
374 red_bits++; in _bmp_decode_rgb()
378 red_bits += green_bits; in _bmp_decode_rgb()
381 red_bits -= 8; in _bmp_decode_rgb()
386 *row_buf++ = (uint8_t)((*buf++ & bmp_ptr->mask_red) >> red_bits); in _bmp_decode_rgb()
766 uint8_t red_bits = 0; in _bmp_encode_bitfields() local
775 red_bits++; in _bmp_encode_bitfields()
779 red_bits += green_bits; in _bmp_encode_bitfields()
782 red_bits -= 8; in _bmp_encode_bitfields()
795 pix_val |= (r << red_bits) & mask_red; in _bmp_encode_bitfields()
/external/mesa3d/src/gallium/state_trackers/glx/xlib/
Dxm_api.c684 GLint red_bits, green_bits, blue_bits, alpha_bits; in XMesaCreateVisual() local
740 red_bits = _mesa_bitcount(GET_REDMASK(v)); in XMesaCreateVisual()
748 red_bits = depth / 3; in XMesaCreateVisual()
749 depth -= red_bits; in XMesaCreateVisual()
754 assert( red_bits + green_bits + blue_bits == v->visinfo->depth ); in XMesaCreateVisual()
767 vis->redBits = red_bits; in XMesaCreateVisual()
771 vis->rgbBits = red_bits + green_bits + blue_bits; in XMesaCreateVisual()
/external/mesa3d/src/mesa/drivers/x11/
Dxm_api.c758 GLint red_bits, green_bits, blue_bits, alpha_bits; in XMesaCreateVisual() local
828 red_bits = _mesa_bitcount(GET_REDMASK(v)); in XMesaCreateVisual()
836 red_bits = depth / 3; in XMesaCreateVisual()
837 depth -= red_bits; in XMesaCreateVisual()
842 assert( red_bits + green_bits + blue_bits == GET_VISUAL_DEPTH(v) ); in XMesaCreateVisual()
849 red_bits, green_bits, in XMesaCreateVisual()
/external/mesa3d/src/mesa/drivers/windows/gdi/
Dwmesa.c1011 GLint red_bits, green_bits, blue_bits, alpha_bits; in WMesaCreateContext() local
1051 red_bits = green_bits = blue_bits = 5; in WMesaCreateContext()
1055 red_bits = green_bits = blue_bits = 8; in WMesaCreateContext()
1062 red_bits, green_bits, blue_bits, /* color RGB */ in WMesaCreateContext()