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

12345

/external/chromium_org/media/base/simd/
H A Dconvert_rgb_to_yuv_unittest.cc13 int ConvertRGBToY(const uint8* rgb) { argument
14 int y = 25 * rgb[0] + 129 * rgb[1] + 66 * rgb[2];
19 int ConvertRGBToU(const uint8* rgb, int size) { argument
20 int u = 112 * rgb[0] - 74 * rgb[1] - 38 * rgb[2];
25 int ConvertRGBToV(const uint8* rgb, int size) { argument
26 int v = -18 * rgb[
[all...]
/external/chromium_org/ui/gfx/
H A Dcolor_utils_unittest.cc46 SkColor rgb = SkColorSetARGB(255, r, g, b); local
48 SkColorToHSL(rgb, &hsl);
50 EXPECT_EQ(SkColorGetR(out), SkColorGetR(rgb));
51 EXPECT_EQ(SkColorGetG(out), SkColorGetG(rgb));
52 EXPECT_EQ(SkColorGetB(out), SkColorGetB(rgb));
59 SkColor rgb = SkColorSetARGB(255, r, g, b); local
61 SkColorToHSL(rgb, &hsl);
63 EXPECT_EQ(SkColorGetR(out), SkColorGetR(rgb));
64 EXPECT_EQ(SkColorGetG(out), SkColorGetG(rgb));
65 EXPECT_EQ(SkColorGetB(out), SkColorGetB(rgb));
[all...]
/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/chromium_org/third_party/mesa/src/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/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/chromium_org/third_party/mesa/src/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/chromium_org/third_party/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/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/qemu/android/utils/
H A Djpeg-compress.c193 JSAMPROW rgb = (JSAMPROW)(fb + (cinfo.next_scanline + y) * bpl + x_shift); local
194 jpeg_write_scanlines(&cinfo, (JSAMPARRAY)&rgb, 1);
199 JSAMPROW rgb = (JSAMPROW)(fb + (y_shift - cinfo.next_scanline) * bpl + x_shift); local
200 jpeg_write_scanlines(&cinfo, (JSAMPARRAY)&rgb, 1);
/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/chromium_org/third_party/WebKit/Source/platform/graphics/
H A DColor.h109 RGBA32 rgb() const { return m_color; } // Preserve the alpha. function in class:blink::Color
111 void setRGB(RGBA32 rgb) { m_color = rgb; } argument
142 return a.rgb() == b.rgb();
166 return Color(colorFromPremultipliedARGB(premultBlended.rgb()));
/external/chromium_org/third_party/angle/src/libGLESv2/renderer/
H A Dloadimage.cpp299 uint16_t rgb = source[x]; local
300 dest[4 * x + 0] = ((rgb & 0x001F) << 3) | ((rgb & 0x001F) >> 2);
301 dest[4 * x + 1] = ((rgb & 0x07E0) >> 3) | ((rgb & 0x07E0) >> 9);
302 dest[4 * x + 2] = ((rgb & 0xF800) >> 8) | ((rgb & 0xF800) >> 13);
321 uint16_t rgb = source[x]; local
322 dest[4 * x + 0] = ((rgb & 0xF800) >> 8) | ((rgb
[all...]
/external/chromium_org/third_party/libwebp/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/chromium_org/third_party/mesa/src/src/gallium/auxiliary/vl/
H A Dvl_compositor.h109 void *rgb; member in struct:vl_compositor::__anon13791
/external/chromium_org/third_party/mesa/src/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/chromium_org/third_party/mesa/src/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/chromium_org/third_party/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/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/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...]

Completed in 927 milliseconds

12345