/external/skia/experimental/docs/ |
H A D | utilities.js | 22 function rgb(r, g, b) { function
|
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
H A D | ShadowColor.java | 11 public static int rgb(int red, int green, int blue) { method in class:ShadowColor
|
/external/libvncserver/libvncclient/ |
H A D | cursor.c | 50 rfbXCursorColors rgb; local 82 if (!ReadFromRFBServer(client, (char *)&rgb, sz_rfbXCursorColors)) { 88 colors[0] = RGB24_TO_PIXEL(32, rgb.backRed, rgb.backGreen, rgb.backBlue); 89 colors[1] = RGB24_TO_PIXEL(32, rgb.foreRed, rgb.foreGreen, rgb.foreBlue);
|
/external/libdrm/tests/util/ |
H A D | format.h | 58 const struct util_rgb_info rgb; member in struct:util_format_info
|
H A D | pattern.c | 67 #define MAKE_RGBA(rgb, r, g, b, a) \ 68 ((((r) >> (8 - (rgb)->red.length)) << (rgb)->red.offset) | \ 69 (((g) >> (8 - (rgb)->green.length)) << (rgb)->green.offset) | \ 70 (((b) >> (8 - (rgb)->blue.length)) << (rgb)->blue.offset) | \ 71 (((a) >> (8 - (rgb)->alpha.length)) << (rgb)->alpha.offset)) 73 #define MAKE_RGB24(rgb, 279 fill_smpte_rgb16(const struct util_rgb_info *rgb, void *mem, unsigned int width, unsigned int height, unsigned int stride) argument 340 fill_smpte_rgb24(const struct util_rgb_info *rgb, void *mem, unsigned int width, unsigned int height, unsigned int stride) argument 403 fill_smpte_rgb32(const struct util_rgb_info *rgb, void *mem, unsigned int width, unsigned int height, unsigned int stride) argument 679 const struct util_rgb_info *rgb = &info->rgb; local 705 const struct util_rgb_info *rgb = &info->rgb; local 727 const struct util_rgb_info *rgb = &info->rgb; local [all...] |
/external/mesa3d/src/gallium/drivers/r300/compiler/ |
H A D | radeon_pair_translate.c | 132 static void src_uses(struct rc_src_register src, unsigned int * rgb, argument 139 *rgb = 1; 192 unsigned int rgb = 0; local 194 src_uses(inst->SrcReg[j], &rgb, &alpha); 195 if(rgb) { 221 * want the part of the swizzle that writes to rgb, 222 * since we are creating an rgb instruction. */ 238 "rgb instruction.\n");
|
H A D | radeon_program_pair.c | 39 unsigned int rgb, unsigned int alpha, 48 if ((!rgb && !alpha) || file == RC_FILE_NONE) 53 if (rgb && pair->RGB.Src[RC_PAIR_PRESUB_SRC].Used 66 if (rgb) { 94 } else if (candidate < 0 || (rgb && rgb_used > 2) 101 if (rgb) { 38 rc_pair_alloc_source(struct rc_pair_instruction *pair, unsigned int rgb, unsigned int alpha, rc_register_file file, unsigned int index) argument
|
/external/pdfium/core/fpdfapi/edit/ |
H A D | cpdf_pagecontentgenerator_unittest.cpp | 110 FX_FLOAT rgb[3] = {0.5f, 0.7f, 0.35f}; local 112 pPathObj->m_ColorState.SetFillColor(pCS, rgb, 3);
|
H A D | cpdf_pagecontentgenerator.cpp | 36 bool GetColor(const CPDF_Color* pColor, FX_FLOAT* rgb) { argument 43 rgb[0] = intRGB[0] / 255.0f; 44 rgb[1] = intRGB[1] / 255.0f; 45 rgb[2] = intRGB[2] / 255.0f;
|
/external/webp/src/dsp/ |
H A D | upsampling_mips_dsp_r2.c | 51 static WEBP_INLINE void YuvToRgb(int y, int u, int v, uint8_t* const rgb) { argument 54 rgb[0] = r; 55 rgb[1] = g; 56 rgb[2] = b; 65 static WEBP_INLINE void YuvToRgb565(int y, int u, int v, uint8_t* const rgb) { argument 72 rgb[0] = gb; 73 rgb[1] = rg; 75 rgb[0] = rg; 76 rgb[1] = gb;
|
H A D | alpha_processing_neon.c | 64 uint8_t* const rgb = rgba + (alpha_first ? 1 : 0); local 69 rgb[4 * i + 0] = PREMULTIPLY(rgb[4 * i + 0], mult); 70 rgb[4 * i + 1] = PREMULTIPLY(rgb[4 * i + 1], mult); 71 rgb[4 * i + 2] = PREMULTIPLY(rgb[4 * i + 2], mult);
|
/external/libjpeg-turbo/ |
H A D | jdcol565.c | 39 JLONG rgb; local 55 rgb = PACK_SHORT_565(r, g, b); 56 *(INT16*)outptr = (INT16)rgb; 68 rgb = PACK_SHORT_565(r, g, b); 77 rgb = PACK_TWO_PIXELS(rgb, PACK_SHORT_565(r, g, b)); 79 WRITE_TWO_ALIGNED_PIXELS(outptr, rgb); 90 rgb = PACK_SHORT_565(r, g, b); 91 *(INT16*)outptr = (INT16)rgb; 119 JLONG rgb; local 196 JLONG rgb; local 253 JLONG rgb; local 308 JLONG rgb; local 350 JLONG rgb; local [all...] |
H A D | jdmrg565.c | 36 JLONG rgb; local 58 rgb = PACK_SHORT_565(r, g, b); 64 rgb = PACK_TWO_PIXELS(rgb, PACK_SHORT_565(r, g, b)); 66 WRITE_TWO_PIXELS(outptr, rgb); 81 rgb = PACK_SHORT_565(r, g, b); 82 *(INT16*)outptr = (INT16)rgb; 108 JLONG rgb; local 131 rgb = PACK_SHORT_565(r, g, b); 138 rgb 181 JLONG rgb; local 279 JLONG rgb; local [all...] |
/external/mesa3d/src/gallium/auxiliary/util/ |
H A D | u_format_r11g11b10f.h | 220 static INLINE unsigned float3_to_r11g11b10f(const float rgb[3]) argument 222 return ( f32_to_uf11(rgb[0]) & 0x7ff) | 223 ((f32_to_uf11(rgb[1]) & 0x7ff) << 11) | 224 ((f32_to_uf10(rgb[2]) & 0x3ff) << 22); 227 static INLINE void r11g11b10f_to_float3(unsigned rgb, float retval[3]) argument 229 retval[0] = uf11_to_f32( rgb & 0x7ff); 230 retval[1] = uf11_to_f32((rgb >> 11) & 0x7ff); 231 retval[2] = uf10_to_f32((rgb >> 22) & 0x3ff);
|
H A D | u_format_rgb9e5.h | 101 static INLINE unsigned float3_to_rgb9e5(const float rgb[3]) argument 110 rc = rgb9e5_ClampRange(rgb[0]); 111 gc = rgb9e5_ClampRange(rgb[1]); 112 bc = rgb9e5_ClampRange(rgb[2]); 149 static INLINE void rgb9e5_to_float3(unsigned rgb, float retval[3]) argument 155 v.raw = rgb;
|
/external/pdfium/core/fpdfapi/page/ |
H A D | cpdf_colorstate.cpp | 32 void CPDF_ColorState::SetFillRGB(uint32_t rgb) { argument 33 m_Ref.GetPrivateCopy()->m_FillRGB = rgb; 40 void CPDF_ColorState::SetStrokeRGB(uint32_t rgb) { argument 41 m_Ref.GetPrivateCopy()->m_StrokeRGB = rgb; 120 uint32_t& rgb, 136 rgb = color.GetRGB(R, G, B) ? FXSYS_RGB(R, G, B) : (uint32_t)-1; 119 SetColor(CPDF_Color& color, uint32_t& rgb, CPDF_ColorSpace* pCS, FX_FLOAT* pValue, uint32_t nValues) argument
|
/external/pdfium/fpdfsdk/ |
H A D | fpdfeditpath.cpp | 38 FX_FLOAT rgb[3] = {R / 255.f, G / 255.f, B / 255.f}; local 40 CPDF_ColorSpace::GetStockCS(PDFCS_DEVICERGB), rgb, 3); local 63 FX_FLOAT rgb[3] = {R / 255.f, G / 255.f, B / 255.f}; local 65 CPDF_ColorSpace::GetStockCS(PDFCS_DEVICERGB), rgb, 3); local
|
/external/skia/gm/ |
H A D | imagefromyuvtextures.cpp | 74 int rgb[] = { 0, 0, 0 }; variable 78 rgb[0] += SkGetPackedR32(rgbColors[rgbIndex]); 79 rgb[1] += SkGetPackedG32(rgbColors[rgbIndex]); 80 rgb[2] += SkGetPackedB32(rgbColors[rgbIndex]); 84 rgb[c] /= 4; 88 ((-38 * rgb[0] - 74 * rgb[1] + 112 * rgb[2] + 128) >> 8) + 128); 90 ((112 * rgb[0] - 94 * rgb[ [all...] |
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.eclipse.test.performance.ui/src/org/eclipse/test/performance/ui/ |
H A D | Utils.java | 148 static int closest(RGB[] rgbs, int n, RGB rgb) { argument 153 int da = rgb2.red - rgb.red; 154 int dg = rgb2.green - rgb.green; 155 int db = rgb2.blue - rgb.blue; 166 RGB rgb; field in class:Utils.ColorCounter 188 RGB rgb = data.palette.getRGB(pixels[x]); 189 ColorCounter counter = (ColorCounter) freq.get(rgb); 192 counter.rgb = rgb; 193 freq.put(rgb, counte [all...] |
/external/libvncserver/libvncserver/ |
H A D | translate.c | 365 uint16_t *rgb = (uint16_t *)(&buf[sz_rfbSetColourMapEntriesMsg]); local 388 rgb[i++] = Swap16IfLE(r * 65535 / 7); 389 rgb[i++] = Swap16IfLE(g * 65535 / 7); 390 rgb[i++] = Swap16IfLE(b * 65535 / 3);
|
/external/mesa3d/src/gallium/auxiliary/vl/ |
H A D | vl_compositor.h | 109 void *rgb; member in struct:vl_compositor::__anon14530
|
/external/mesa3d/src/gallium/drivers/llvmpipe/ |
H A D | lp_bld_blend_aos.c | 190 LLVMValueRef rgb, 199 swizzled_rgb = rgb; 202 swizzled_rgb = lp_build_swizzle_scalar_aos(&bld->base, rgb, alpha_swizzle); 209 if (rgb != alpha) { 189 lp_build_blend_swizzle(struct lp_build_blend_aos_context *bld, LLVMValueRef rgb, LLVMValueRef alpha, enum lp_build_blend_swizzle rgb_swizzle, unsigned alpha_swizzle) argument
|
/external/mesa3d/src/mesa/swrast/ |
H A D | s_zoom.c | 127 * Helper function called from _swrast_write_zoomed_rgba/rgb/ 244 const GLubyte (*rgb)[3] = (const GLubyte (*)[3]) src; 250 zoomed.array->rgba8[i][0] = rgb[j][0]; 251 zoomed.array->rgba8[i][1] = rgb[j][1]; 252 zoomed.array->rgba8[i][2] = rgb[j][2]; 257 const GLushort (*rgb)[3] = (const GLushort (*)[3]) src; 263 zoomed.array->rgba16[i][0] = rgb[j][0]; 264 zoomed.array->rgba16[i][1] = rgb[j][1]; 265 zoomed.array->rgba16[i][2] = rgb[j][2]; 270 const GLfloat (*rgb)[ 340 _swrast_write_zoomed_rgb_span(struct gl_context *ctx, GLint imgX, GLint imgY, const SWspan *span, const GLvoid *rgb) argument [all...] |
/external/skia/src/codec/ |
H A D | SkAndroidCodec.cpp | 23 static void load_gamut(SkPoint rgb[], const SkMatrix44& xyz) { argument 30 rgb[0].fX = xyz.get(0, 0) / rSum; 31 rgb[0].fY = xyz.get(1, 0) / rSum; 32 rgb[1].fX = xyz.get(0, 1) / gSum; 33 rgb[1].fY = xyz.get(1, 1) / gSum; 34 rgb[2].fX = xyz.get(0, 2) / bSum; 35 rgb[2].fY = xyz.get(1, 2) / bSum; 55 SkPoint rgb[3]; local 56 load_gamut(rgb, *toXYZD50); 57 return calculate_area(rgb) > kSRGB_D50_GamutAre [all...] |
/external/skia/src/core/ |
H A D | SkICC.cpp | 107 Channel rgb[3]; local 111 rgb[i].fOffset = offset; 112 rgb[i].fCount = gammas->tableSize(i); 113 offset += rgb[i].fCount * sizeof(float); 114 ptr += rgb[i].fCount; 128 rgb[i].fOffset = offset; 129 rgb[i].fCount = kDefaultTableSize; 134 tables->fRed = rgb[0]; 135 tables->fGreen = rgb[1]; 136 tables->fBlue = rgb[ [all...] |