/cts/tests/tests/graphics/src/android/graphics/cts/ |
EmbossMaskFilterTest.java | 86 int pixel = b.getPixel(x, y); local 87 color += Color.red(pixel) + Color.green(pixel) + Color.blue(pixel);
|
ComposeShaderTest.java | 59 int pixel = bitmap.getPixel(x, y); local 61 assertEquals(0xFF, Color.alpha(pixel), TOLERANCE); 62 assertEquals(y, Color.red(pixel), TOLERANCE); 63 assertEquals(green, Color.green(pixel), TOLERANCE); 64 assertEquals(x, Color.blue(pixel), TOLERANCE);
|
CornerPathEffectTest.java | 81 int pixel = bitmap.getPixel(x, y); local 82 if (Color.green(pixel) > 0) { 85 assertEquals(Color.YELLOW, pixel);
|
/external/libdrm/tests/planetest/ |
bo.c | 72 uint8_t *pixel = row + j * 4; local 77 pixel[0] = b; 78 pixel[1] = g; 79 pixel[2] = r; 80 pixel[3] = a; 82 pixel[0] = r; 83 pixel[1] = g; 84 pixel[2] = b; 85 pixel[3] = a;
|
/external/libpng/contrib/gregbook/ |
rpng-x.c | 21 - 1.10: added support for non-default visuals; fixed X pixel-conversion 675 /* to avoid testing the byte order every pixel (or doubling the size of 698 ulg pixel; local 723 pixel = (red << RShift) | 728 *dest++ = (char)((pixel >> 24) & 0xff); 729 *dest++ = (char)((pixel >> 16) & 0xff); 730 *dest++ = (char)((pixel >> 8) & 0xff); 731 *dest++ = (char)( pixel & 0xff); 736 pixel = (red & RMask) | (green & GMask) | (blue & BMask); 738 *dest++ = (char)((pixel >> 24) & 0xff) [all...] |
/external/ImageMagick/MagickCore/ |
quantum-private.h | 33 pixel; member in struct:_QuantumState 175 static inline unsigned char *PopCharPixel(const unsigned char pixel, 178 *pixels++=pixel; 183 const unsigned int pixel,unsigned char *pixels) 188 quantum=(unsigned int) pixel; 205 const unsigned short pixel,unsigned char *pixels) 210 quantum=pixel; 223 unsigned char *pixel) 225 *pixel=(*pixels++); 230 const unsigned char *pixels,unsigned int *pixel) [all...] |
xwindow.c | 70 #include "MagickCore/pixel-accessor.h" 454 % const XPixelInfo *pixel,XAnnotateInfo *annotate_info,Image *image, 462 % o pixel: Specifies a pointer to a XPixelInfo structure. 472 const XPixelInfo *pixel,XAnnotateInfo *annotate_info,Image *image, 513 assert(pixel != (XPixelInfo *) NULL); 589 Set this pixel to the background color. 592 pixel->box_color.red),q); 594 pixel->box_color.green),q); 596 pixel->box_color.blue),q); 604 Set this pixel to the pen color 1033 pixel; local 2150 pixel; local 3850 pixel; local 4184 pixel; local 5888 pixel, local 6504 pixel, local 7103 pixel; local 9006 pixel; local [all...] |
histogram.c | 56 #include "MagickCore/pixel-accessor.h" 165 const PixelInfo *pixel,size_t index) 171 ((ScaleQuantumToChar(ClampToQuantum(pixel->red)) >> index) & 0x01) | 172 ((ScaleQuantumToChar(ClampToQuantum(pixel->green)) >> index) & 0x01) << 1 | 173 ((ScaleQuantumToChar(ClampToQuantum(pixel->blue)) >> index) & 0x01) << 2); 175 id|=((ScaleQuantumToChar(ClampToQuantum(pixel->alpha)) >> index) & 195 pixel, 230 GetPixelInfo(image,&pixel); 247 GetPixelInfoPixel(image,p,&pixel); 248 id=ColorToNodeId(image,&pixel,index) 190 pixel, local 645 pixel, local 1014 pixel; local [all...] |
xwindow-private.h | 25 #include "MagickCore/pixel-accessor.h" 581 static inline double XPixelIntensity(const XColor *pixel) 586 if ((pixel->red == pixel->green) && (pixel->green == pixel->blue)) 587 return((double) pixel->red); 588 intensity=0.212656*pixel->red+0.715158*pixel->green+0.072186*pixel->blue [all...] |
paint.c | 61 #include "MagickCore/pixel-accessor.h" 80 % FloodfillPaintImage() changes the color value of any pixel that matches 82 % specified, the color value is changed for any neighbor pixel that does not 85 % By default target must match a particular pixel color exactly. However, 109 % o invert: paint any pixel that does not match the target color. 153 pixel; 216 GetPixelInfo(image,&pixel); 252 GetPixelInfoPixel(image,p,&pixel); 253 if (IsFuzzyEquivalencePixelInfo(&pixel,target) == invert) 285 GetPixelInfoPixel(image,p,&pixel); 151 pixel; local 955 pixel; local 1082 pixel; local 1212 pixel; local [all...] |
/external/clang/test/SemaCXX/ |
altivec.cpp | 12 vector pixel vp; 82 catch (vector pixel px) {}
|
/external/opencv3/samples/cpp/ |
connected_components.cpp | 27 Vec3b &pixel = dst.at<Vec3b>(r, c); 28 pixel = colors[label];
|
/system/core/libpixelflinger/arch-mips/ |
t32cb16blend.S | 26 * with the 32bpp ABGR pixel held in src and store the result in fb 29 * the the second pixel (shift==16) will be merged into 36 .macro pixel dreg src fb shift 94 .macro pixel dreg src fb shift 192 /* as long as there is at least one pixel */ 200 pixel $t3,$t4,$t1,0 224 pixel $t3,$t4,$t1,0 226 pixel $t3,$t5,$t1,16 241 pixel $t3,$t4,$t1,0 243 pixel $t3,$t5,$t1,1 [all...] |
/external/ImageMagick/coders/ |
dps.c | 57 #include "MagickCore/pixel-accessor.h" 125 pixel; 271 colors[i].pixel=(size_t) i; 295 colors[i].pixel=red | green | blue; 378 pixel=XGetPixel(dps_image,x,y); 379 index=(pixel >> red_shift) & red_mask; 381 index=(pixel >> green_shift) & green_mask; 383 index=(pixel >> blue_shift) & blue_mask; 400 pixel=XGetPixel(dps_image,x,y); 401 color=(pixel >> red_shift) & red_mask 123 pixel; local [all...] |
stegano.c | 58 #include "MagickCore/pixel-accessor.h" 114 pixel; 196 &pixel,exception); 204 SetBit(i,GetBit(pixel.red,j)); 209 SetBit(i,GetBit(pixel.green,j)); 214 SetBit(i,GetBit(pixel.blue,j)); 112 pixel; local
|
uil.c | 59 #include "MagickCore/pixel-accessor.h" 185 pixel; 288 Compute the character per pixel. 302 GetPixelInfo(image,&pixel); 308 pixel=image->colormap[i]; 309 pixel.colorspace=sRGBColorspace; 310 pixel.depth=8; 311 pixel.alpha=(double) OpaqueAlpha; 312 GetColorTuple(&pixel,MagickTrue,name); 180 pixel; local
|
/frameworks/native/libs/gui/tests/ |
GLTest.cpp | 177 GLubyte pixel[4]; local 179 glReadPixels(x, y, 1, 1, GL_RGBA, GL_UNSIGNED_BYTE, pixel); 182 msg += String8::format("error reading pixel: %#x", err); 188 if (r >= 0 && abs(r - int(pixel[0])) > tolerance) { 189 msg += String8::format("r(%d isn't %d)", pixel[0], r); 191 if (g >= 0 && abs(g - int(pixel[1])) > tolerance) { 195 msg += String8::format("g(%d isn't %d)", pixel[1], g); 197 if (b >= 0 && abs(b - int(pixel[2])) > tolerance) { 201 msg += String8::format("b(%d isn't %d)", pixel[2], b); 203 if (a >= 0 && abs(a - int(pixel[3])) > tolerance) [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ |
grad.rs | 101 float4 pixel = rsUnpackColor8888(in); 103 float4 wsum = pixel; 113 pixel.rgb = wsum.rgb; 114 pixel.a = 1.0f; 116 uchar4 out = rsPackColorTo8888(clamp(pixel, 0.f, 1.0f));
|
/system/core/libpixelflinger/codeflinger/ |
texturing.cpp | 216 // the iterators because there is always an extra pixel on the 417 // at 1 or 4 bytes / pixel on any texture unit. 510 // pixel size scale 709 // about ~22 cycles / pixel 712 int pixel= scratches.obtain(); local 724 int offset = pixel; 726 LDRB(AL, pixel, txPtr.reg, reg_scale_pre(offset)); 728 SMULBB(AL, d, pixel, u); 733 LDRB(AL, pixel, txPtr.reg, reg_scale_pre(lb)); 735 SMLABB(AL, d, pixel, u, d) 817 int pixel= scratches.obtain(); local 900 int pixel= scratches.obtain(); local [all...] |
/external/ImageMagick/www/api/ |
cache.php | 125 <p>GetAuthenticPixels() obtains a pixel region for read/write access. If the region is successfully accessed, a pointer to a Quantum array representing the region is returned, otherwise NULL is returned.</p> 161 <p>GetOneAuthenticPixel() returns a single pixel at the specified (x,y) location. The image background color is returned if an error occurs.</p> 167 const ssize_t y,Quantum *pixel,ExceptionInfo *exception) 182 <dd> These values define the location of the pixel to return. </dd> 185 <dt>pixel</dt> 186 <dd>return a pixel at the specified (x,y) location. </dd> 196 <p>GetOneVirtualPixel() returns a single virtual pixel at the specified (x,y) location. The image background color is returned if an error occurs. If you plan to modify the pixel, use GetOneAuthenticPixel() instead.</p> 202 const ssize_t y,Quantum *pixel,ExceptionInfo exception) 217 <dd> These values define the location of the pixel to return. </dd [all...] |
/development/samples/devbytes/graphics/ImagePixelization/src/com/example/android/imagepixelization/ |
ImagePixelization.java | 150 * pixels within some region are averaged, and that average pixel value is then 169 int pixel = 0, red = 0, green = 0, blue = 0, numPixels = 0; local 188 pixel = bitmapPixels[j * width + i]; 189 red += Color.red(pixel); 190 green += Color.green(pixel); 191 blue += Color.blue(pixel); 196 pixel = Color.rgb(red / numPixels, green / numPixels, blue / numPixels); 198 Arrays.fill(pixels, pixel);
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/projection/offscreen/ |
ProjectionOffscreenActivity.java | 253 int pixel = 0; local 254 pixel |= (buffer.get(offset) & 0xff) << 16; // R 255 pixel |= (buffer.get(offset + 1) & 0xff) << 8; // G 256 pixel |= (buffer.get(offset + 2) & 0xff); // B 257 pixel |= (buffer.get(offset + 3) & 0xff) << 24; // A 258 if (pixel == Color.BLACK || pixel == 0) { 260 } else if (pixel == Color.BLUE) { 265 Log.d(TAG, "- Found unexpected color: " + Integer.toHexString(pixel));
|
/external/libgdx/extensions/gdx-tools/src/com/badlogic/gdx/tools/particleeditor/ |
Chart.java | 187 Point pixel = new Point();
local 188 pixel.x = chartX + (int)(chartWidth * (point.x / (float)maxX));
189 pixel.y = chartY + chartHeight - (int)(chartHeight * (point.y / (float)maxY));
190 return pixel;
291 Point pixel = pointToPixel(point);
local 292 if (lastX != -1) g.drawLine(lastX, lastY, (int)pixel.x, (int)pixel.y);
293 lastX = (int)pixel.x;
294 lastY = (int)pixel.y;
299 Point pixel = pointToPixel(point); local [all...] |
/frameworks/native/services/surfaceflinger/tests/ |
Transaction_test.cpp | 46 uint8_t* pixel = img + (4 * (y*outBuffer.stride + x)); local 47 pixel[0] = r; 48 pixel[1] = g; 49 pixel[2] = b; 50 pixel[3] = 255; 57 // individual pixel values for testing purposes. 79 const uint8_t* pixel = img + (4 * (y * mBuf.stride + x)); local 80 if (r != pixel[0] || g != pixel[1] || b != pixel[2]) [all...] |
/frameworks/native/opengl/tests/hwc/ |
hwcTestLib.cpp | 544 // single pixel of the given color and alpha values. 578 uint32_t pixel; local 579 pixel = htonl((uint32_t) round((((1 << attrib->c1Size) - 1) * color.c1())) 580 << ((sizeof(pixel) * BITSPERBYTE) 582 pixel |= htonl((uint32_t) round((((1 << attrib->c2Size) - 1) * color.c2())) 583 << ((sizeof(pixel) * BITSPERBYTE) 585 pixel |= htonl((uint32_t) round((((1 << attrib->c3Size) - 1) * color.c3())) 586 << ((sizeof(pixel) * BITSPERBYTE) 589 pixel |= htonl((uint32_t) round((((1 << attrib->aSize) - 1) * alpha)) 590 << ((sizeof(pixel) * BITSPERBYTE 657 uint32_t pixel; local 705 uint32_t pixel; local [all...] |