/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ |
saturation.rs | 104 static ushort rgb2hue( uchar4 rgb) 108 int ri = rgb.r; 109 int gi = rgb.g; 110 int bi = rgb.b;
|
/cts/apps/CameraITS/tests/scene1/ |
test_reprocess_noise_reduction.py | 115 r_snrs = [rgb[0] for rgb in rgb_snr_list] 116 g_snrs = [rgb[1] for rgb in rgb_snr_list] 117 b_snrs = [rgb[2] for rgb in rgb_snr_list] 134 pylab.plot(range(5), snrs[channel], "rgb"[channel])
|
/external/chromium-trace/catapult/third_party/flot/ |
jquery.colorhelpers.min.js | 1 (function($){$.color={};$.color.make=function(r,g,b,a){var o={};o.r=r||0;o.g=g||0;o.b=b||0;o.a=a!=null?a:1;o.add=function(c,d){for(var i=0;i<c.length;++i)o[c.charAt(i)]+=d;return o.normalize()};o.scale=function(c,f){for(var i=0;i<c.length;++i)o[c.charAt(i)]*=f;return o.normalize()};o.toString=function(){if(o.a>=1){return"rgb("+[o.r,o.g,o.b].join(",")+")"}else{return"rgba("+[o.r,o.g,o.b,o.a].join(",")+")"}};o.normalize=function(){function clamp(min,value,max){return value<min?min:value>max?max:value}o.r=clamp(0,parseInt(o.r),255);o.g=clamp(0,parseInt(o.g),255);o.b=clamp(0,parseInt(o.b),255);o.a=clamp(0,o.a,1);return o};o.clone=function(){return $.color.make(o.r,o.b,o.g,o.a)};return o.normalize()};$.color.extract=function(elem,css){var c;do{c=elem.css(css).toLowerCase();if(c!=""&&c!="transparent")break;elem=elem.parent()}while(elem.length&&!$.nodeName(elem.get(0),"body"));if(c=="rgba(0, 0, 0, 0)")c="transparent";return $.color.parse(c)};$.color.parse=function(str){var res,m=$.color.make;if(res=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(str))return m(parseInt(res[1],10),parseInt(res[2],10),parseInt(res[3],10));if(res=/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]+(?:\.[0-9]+)?)\s*\)/.exec(str))return m(parseInt(res[1],10),parseInt(res[2],10),parseInt(res[3],10),parseFloat(res[4]));if(res=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec (…)
|
/external/chromium-trace/catapult/tracing/tracing/ui/extras/chrome/cc/ |
picture_ops_list_view.css | 49 color: rgb(136, 0, 0); 54 background-color: rgb(171, 217, 202); 61 background-color: rgb(103, 199, 165);
|
/external/mesa3d/src/gallium/drivers/r300/compiler/ |
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 54 && index != pair->RGB.Src[RC_PAIR_PRESUB_SRC].Index) { 66 if (rgb) { 67 if (pair->RGB.Src[i].Used) { 68 if (pair->RGB.Src[i].File != file || 69 pair->RGB.Src[i].Index != index) { 94 } else if (candidate < 0 || (rgb && rgb_used > 2 [all...] |
radeon_pair_schedule.c | 67 /** If the scheduler has paired an RGB and an Alpha instruction together, 257 else if (sinst->Instruction->U.P.RGB.Opcode == RC_OPCODE_NOP) 306 if (!sinst->Instruction->U.P.RGB.OutputWriteMask && 310 RGB.OutputWriteMask 341 sinst->Score += sinst->Instruction->U.P.RGB.Src[src_idx].Used + 497 * dst_full is an rgb instruction, meaning that it has a vector instruction(rgb) 517 dst_sub = &dst_full->RGB; 529 info = rc_get_opcode_info(dst_full->RGB.Opcode); 575 /*If this arg does not read from an rgb source [all...] |
radeon_program_pair.h | 52 /* For rgb and alpha instructions when arg[n].Source = RC_PAIR_PRESUB_SRC, then 54 * {RGB,Alpha}.Src[RC_PAIR_PRESUB_SRC].File will be set to RC_FILE_PRESUB. 86 struct rc_pair_sub_instruction RGB; 103 unsigned int rgb, unsigned int alpha,
|
/external/opencv3/modules/imgcodecs/src/ |
utils.cpp | 50 void icvCvt_BGR2Gray_8u_C3C1R( const uchar* rgb, int rgb_step, 58 for( i = 0; i < size.width; i++, rgb += 3 ) 60 int t = descale( rgb[swap_rb]*cB + rgb[1]*cG + rgb[swap_rb^2]*cR, SCALE ); 64 rgb += rgb_step - size.width*3; 69 void icvCvt_BGRA2Gray_16u_CnC1R( const ushort* rgb, int rgb_step, 77 for( i = 0; i < size.width; i++, rgb += ncn ) 79 int t = descale( rgb[swap_rb]*cB + rgb[1]*cG + rgb[swap_rb^2]*cR, SCALE ) [all...] |
/external/mesa3d/src/mesa/swrast/ |
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)[3] = (const GLfloat (*)[3]) src [all...] |
/frameworks/base/tools/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/ |
ImageUtils.java | 119 int rgb = image.getRGB(x, y); local 120 if (goldenRgb == rgb) { 126 if (((goldenRgb & 0xFF000000) == 0) && (rgb & 0xFF000000) == 0) { 131 int deltaR = ((rgb & 0xFF0000) >>> 16) - ((goldenRgb & 0xFF0000) >>> 16); 133 int deltaG = ((rgb & 0x00FF00) >>> 8) - ((goldenRgb & 0x00FF00) >>> 8); 135 int deltaB = (rgb & 0x0000FF) - (goldenRgb & 0x0000FF); 139 + ((rgb & 0xFF000000) >>> 24)) / 2) << 24;
|
/external/libpng/contrib/gregbook/ |
rpng2-x.c | 221 } rgb[] = { variable in typeref:struct:rgb_color 241 static int num_rgb = sizeof(rgb) / sizeof(struct rgb_color); 492 " bg \tdesired background color in 7-character hex RGB format\n" [all...] |
rpng2-win.c | 199 } rgb[] = { variable in typeref:struct:rgb_color 218 static int num_rgb = sizeof(rgb) / sizeof(struct rgb_color); 457 " bg \tdesired background color in 7-character hex RGB format\n" 865 uch r1_min = rgb[bg[pat].rgb1_min].r; 866 uch g1_min = rgb[bg[pat].rgb1_min].g; 867 uch b1_min = rgb[bg[pat].rgb1_min].b; 868 uch r2_min = rgb[bg[pat].rgb2_min].r; 869 uch g2_min = rgb[bg[pat].rgb2_min].g; 870 uch b2_min = rgb[bg[pat].rgb2_min].b; 871 int r1_diff = rgb[bg[pat].rgb1_max].r - r1_min [all...] |
/hardware/intel/img/hwcomposer/moorefield_hdmi/ips/anniedale/ |
PlaneCapabilities.cpp | 95 VLOGTRACE("stride %d", stride.rgb.stride); 96 if (stride.rgb.stride > SPRITE_PLANE_MAX_STRIDE_LINEAR) { 97 VLOGTRACE("too large stride %d", stride.rgb.stride);
|
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/common/layout/ |
TestGraphics.java | 130 public @NonNull IColor registerColor(int rgb) { 131 mDrawn.add("registerColor(" + Integer.toHexString(rgb) + ")"); 132 return new TestColor(rgb);
|
/cts/common/host-side/tradefed/res/report/ |
compatibility_result.css | 35 background-color: rgb(212, 233, 169); 58 background-color: rgb(212, 233, 169); 77 background-color: rgb(212, 233, 169);
|
/frameworks/support/v7/palette/src/main/java/android/support/v7/graphics/ |
ColorCutQuantizer.java | 35 * The color space is represented as a 3-dimensional cube with each dimension being an RGB 352 // Now revert all of the colors so that they are packed as RGB again 405 // Already in RGB, no need to do anything 408 // We need to do a RGB to GRB swap, or vice-versa 417 // We need to do a RGB to BGR swap, or vice-versa 429 final int rgb = approximateToRgb888(color565); local 430 ColorUtils.colorToHSL(rgb, mTempHsl); 431 return shouldIgnoreColor(rgb, mTempHsl); 438 private boolean shouldIgnoreColor(int rgb, float[] hsl) { 441 if (!mFilters[i].isAllowed(rgb, hsl)) [all...] |
/external/androidplot/Examples/DemoApp/src/com/androidplot/demos/ |
ListViewActivity.java | 89 Color.rgb(new Double(rl * 255).intValue(), new Double(gl * 255).intValue(), new Double(bl * 255).intValue()),
90 Color.rgb(new Double(rp * 255).intValue(), new Double(gp * 255).intValue(), new Double(bp * 255).intValue()),
|
XYRegionExampleActivity.java | 286 Color.rgb(100, 25, 20),
287 Color.rgb(100, 25, 20),
299 Color.rgb(100, 25, 200),
300 Color.rgb(100, 25, 200),
314 Color.rgb(200, 25, 200),
315 Color.rgb(200, 25, 200),
327 Color.rgb(220, 25, 20),
328 Color.rgb(220, 25, 20),
|
DualScaleXYPlotExampleActivity.java | 136 series1Format = new LineAndPointFormatter(Color.rgb(0, 200, 0), Color.rgb(0, 100, 0), null, new PointLabelFormatter(Color.WHITE));
137 series2Format = new LineAndPointFormatter(Color.rgb(0, 0, 200), Color.rgb(0, 0, 100), null, new PointLabelFormatter(Color.WHITE));
|
/external/pdfium/samples/ |
image_diff_png.cc | 28 // 3 bytes per pixel (packed), in RGB order regardless of endianness. 60 unsigned char* rgb, bool* is_opaque) { 63 unsigned char* pixel_out = &rgb[x * 3]; 121 void ConvertRGBtoRGBA(const unsigned char* rgb, int pixel_width, 124 const unsigned char* pixel_in = &rgb[x * 3]; 133 void ConvertRGBtoBGRA(const unsigned char* rgb, int pixel_width, 136 const unsigned char* pixel_in = &rgb[x * 3]; 169 // Expand to ensure we use 24-bit for RGB and 32-bit for RGBA. 182 // Expand grayscale to RGB. 386 unsigned char* rgb, bool* is_opaque) [all...] |
/external/skia/src/images/ |
SkImageDecoder_libbmp.cpp | 87 const uint8_t* rgb() const { return fRGB.begin(); } function in class:SkBmpDecoderCallback 114 // Now decode the BMP into callback's rgb() array [r,g,b, r,g,b, ...] 158 const uint8_t* srcRow = callback.rgb();
|
/external/skia/src/pdf/ |
SkPDFBitmap.cpp | 97 static void pmcolor_to_rgb24(uint32_t color, uint8_t* rgb, SkColorType ct) { 99 rgb[0] = SkUnPreMultiply::ApplyScale(s, SkGetR32Component(color, ct)); 100 rgb[1] = SkUnPreMultiply::ApplyScale(s, SkGetG32Component(color, ct)); 101 rgb[2] = SkUnPreMultiply::ApplyScale(s, SkGetB32Component(color, ct)); 116 uint8_t rgb[3], 135 rgb[0] = SkToU8(255 * r / a); 136 rgb[1] = SkToU8(255 * g / a); 137 rgb[2] = SkToU8(255 * b / a); 139 rgb[0] = rgb[1] = rgb[2] = 0 [all...] |
/external/mesa3d/src/gallium/drivers/llvmpipe/ |
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) {
|
/external/opencv3/samples/cpp/ |
openni_capture.cpp | 21 "2.) Data given from RGB image generator\n" 27 static void colorizeDisparity( const Mat& gray, Mat& rgb, double maxDisp=-1.f, float S=1.f, float V=1.f ) 38 rgb.create( gray.size(), CV_8UC3 ); 39 rgb = Scalar::all(0); 75 rgb.at<Point3_<uchar> >(y,x) = Point3_<uchar>(b, g, r); 93 cout << " 2 - CAP_OPENNI_SXGA_30HZ (0 by default). Ignored if rgb image or gray image are not selected to show." << endl; 95 cout << " determine: is depth map, disparity map, valid pixels mask, rgb image, gray image need or not (correspondently)?" << endl ; 96 cout << " By default -m 01010 i.e. disparity map and rgb image will be shown." << endl ; 301 imshow( "rgb image", bgrImage );
|
/frameworks/base/tests/UiBench/src/com/android/test/uibench/ |
FullscreenOverdrawActivity.java | 49 paint.setColor(Color.rgb(mColorValue, 255 - mColorValue, 255));
|