Searched defs:rgb (Results 1 - 25 of 75) sorted by relevance

123

/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
H A DShadowColor.java11 public static int rgb(int red, int green, int blue) { method in class:ShadowColor
/external/libvncserver/libvncclient/
H A Dcursor.c50 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/mesa3d/src/gallium/drivers/r300/compiler/
H A Dradeon_pair_translate.c132 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 Dradeon_program_pair.c39 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/mesa3d/src/gallium/auxiliary/util/
H A Du_format_r11g11b10f.h220 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 Du_format_rgb9e5.h101 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/skia/src/images/
H A DSkImageDecoder_libbmp.cpp86 const uint8_t* rgb() const { return fRGB.begin(); } function in class:SkBmpDecoderCallback
110 // Now decode the BMP into callback's rgb() array [r,g,b, r,g,b, ...]
154 const uint8_t* srcRow = callback.rgb();
/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 DUtils.java148 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/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/materials/
H A DMaterialHelper.java470 * This method converts rgb values to hsv values.
523 * This method converts rgb values to hsv values.
531 * @param rgb
532 * rgb result vector (should have 3 elements)
534 public void hsvToRgb(float h, float s, float v, float[] rgb) { argument
537 rgb[0] = rgb[1] = rgb[2] = v;
551 rgb[0] = v;
552 rgb[
[all...]
/external/jpeg/
H A Djdcolor.c242 INT32 rgb; local
257 rgb = PACK_SHORT_565(r,g,b);
258 *(INT16*)outptr = rgb;
269 rgb = PACK_SHORT_565(r,g,b);
277 rgb = PACK_TWO_PIXELS(rgb, PACK_SHORT_565(r,g,b));
278 WRITE_TWO_ALIGNED_PIXELS(outptr, rgb);
288 rgb = PACK_SHORT_565(r,g,b);
289 *(INT16*)outptr = rgb;
315 INT32 rgb; local
410 INT32 rgb; local
463 INT32 rgb; local
610 INT32 rgb; local
649 INT32 rgb; local
[all...]
H A Djdmerge.c326 INT32 rgb; local
346 rgb = PACK_SHORT_565(r,g,b);
351 rgb = PACK_TWO_PIXELS(rgb, PACK_SHORT_565(r,g,b));
352 WRITE_TWO_PIXELS(outptr, rgb);
366 rgb = PACK_SHORT_565(r,g,b);
367 *(INT16*)outptr = rgb;
392 INT32 rgb; local
413 rgb = PACK_SHORT_565(r,g,b);
419 rgb
540 INT32 rgb; local
628 INT32 rgb; local
[all...]
/external/libvncserver/libvncserver/
H A Dtranslate.c365 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 Dvl_compositor.h109 void *rgb; member in struct:vl_compositor::__anon12045
/external/mesa3d/src/gallium/drivers/llvmpipe/
H A Dlp_bld_blend_aos.c190 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 Ds_zoom.c127 * 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/utils/
H A DSkParseColor.cpp35 int rgb; member in struct:SkNameRGB
215 SkDebugf("0x%08x, ", nameRGB.rgb);
507 SkASSERT(result == (SkColor) (nameRGB.rgb | 0xFF000000));
/external/webp/src/dsp/
H A Dalpha_processing.c223 uint8_t* const rgb = rgba + (alpha_first ? 1 : 0); local
230 rgb[4 * i + 0] = PREMULTIPLY(rgb[4 * i + 0], mult);
231 rgb[4 * i + 1] = PREMULTIPLY(rgb[4 * i + 1], mult);
232 rgb[4 * i + 2] = PREMULTIPLY(rgb[4 * i + 2], mult);
H A Dyuv.h107 uint8_t* const rgb) {
108 rgb[0] = VP8YUVToR(y, v);
109 rgb[1] = VP8YUVToG(y, u, v);
110 rgb[2] = VP8YUVToB(y, u);
121 uint8_t* const rgb) {
128 rgb[0] = gb;
129 rgb[1] = rg;
131 rgb[0] = rg;
132 rgb[1] = gb;
163 uint8_t* const rgb) {
106 VP8YuvToRgb(int y, int u, int v, uint8_t* const rgb) argument
120 VP8YuvToRgb565(int y, int u, int v, uint8_t* const rgb) argument
162 VP8YuvToRgb(int y, int u, int v, uint8_t* const rgb) argument
182 VP8YuvToRgb565(int y, int u, int v, uint8_t* const rgb) argument
[all...]
H A Dyuv_sse2.c107 uint8_t* const rgb) {
112 _mm_storel_epi64((__m128i*)rgb, tmp2);
106 YuvToRgbSSE2(uint8_t y, uint8_t u, uint8_t v, uint8_t* const rgb) argument
/external/neven/
H A DFaceDetector_jni.cpp221 uint16_t rgb = src[x]; local
222 int r = rgb >> 11;
223 int g2 = (rgb >> 5) & 0x3F;
224 int b = rgb & 0x1F;
/external/pdfium/fpdfsdk/src/fxedit/
H A Dfxet_pageobjs.cpp406 FX_FLOAT rgb[3]; local
407 rgb[0] = FXARGB_R(crFill) / 255.0f ;
408 rgb[1] = FXARGB_G(crFill) / 255.0f;
409 rgb[2] = FXARGB_B(crFill) / 255.0f;
410 pPathObj->m_ColorState.SetFillColor(CPDF_ColorSpace::GetStockCS(PDFCS_DEVICERGB), rgb, 3); local
435 FX_FLOAT rgb[3]; local
436 rgb[0] = FXARGB_R(crText) / 255.0f ;
437 rgb[1] = FXARGB_G(crText) / 255.0f;
438 rgb[2] = FXARGB_B(crText) / 255.0f;
439 pTxtObj->m_ColorState.SetFillColor(CPDF_ColorSpace::GetStockCS(PDFCS_DEVICERGB),rgb, local
440 pTxtObj->m_ColorState.SetStrokeColor(CPDF_ColorSpace::GetStockCS(PDFCS_DEVICERGB),rgb, 3); local
[all...]
/external/skia/src/pdf/
H A DSkPDFBitmap.cpp44 static void pmcolor_to_rgb24(SkPMColor pmColor, uint8_t* rgb) { argument
46 rgb[0] = SkUnPreMultiply::ApplyScale(s, SkGetPackedR32(pmColor));
47 rgb[1] = SkUnPreMultiply::ApplyScale(s, SkGetPackedG32(pmColor));
48 rgb[2] = SkUnPreMultiply::ApplyScale(s, SkGetPackedB32(pmColor));
63 uint8_t rgb[3]) {
82 rgb[0] = SkToU8(255 * r / a);
83 rgb[1] = SkToU8(255 * g / a);
84 rgb[2] = SkToU8(255 * b / a);
86 rgb[0] = rgb[
60 get_neighbor_avg_color(const SkBitmap& bm, int xOrig, int yOrig, uint8_t rgb[3]) argument
[all...]
/external/deqp/modules/gles2/accuracy/
H A Des2aTextureFilteringTests.cpp162 deUint32 rgb = step*levelNdx; local
163 deUint32 colorA = 0xff000000 | rgb;
164 deUint32 colorB = 0xff000000 | ~rgb;
434 deUint32 rgb = step*levelNdx*face; local
435 deUint32 colorA = 0xff000000 | rgb;
436 deUint32 colorB = 0xff000000 | ~rgb;
/external/deqp/modules/gles2/functional/
H A Des2fTextureFilteringTests.cpp193 deUint32 rgb = step*levelNdx; local
194 deUint32 colorA = 0xff000000 | rgb;
195 deUint32 colorB = 0xff000000 | ~rgb;
467 deUint32 rgb = step*levelNdx*face; local
468 deUint32 colorA = 0xff000000 | rgb;
469 deUint32 colorB = 0xff000000 | ~rgb;
/external/deqp/modules/gles3/accuracy/
H A Des3aTextureFilteringTests.cpp153 deUint32 rgb = step*levelNdx; local
154 deUint32 colorA = 0xff000000 | rgb;
155 deUint32 colorB = 0xff000000 | ~rgb;
421 deUint32 rgb = step*levelNdx*face; local
422 deUint32 colorA = 0xff000000 | rgb;
423 deUint32 colorB = 0xff000000 | ~rgb;

Completed in 594 milliseconds

123