/external/skia/tests/ |
CTest.cpp | 20 uint32_t pixel[1] = { 0 }; local 22 sk_surface_t* surface = sk_surface_new_raster_direct(&info, pixel, sizeof(uint32_t)); 27 REPORTER_ASSERT(reporter, 0xFF000000 == pixel[0]); 31 REPORTER_ASSERT(reporter, 0xFFFFFFFF == pixel[0]);
|
SkImageTest.cpp | 40 uint32_t pixel = 0; local 42 canvas.readPixels(info, &pixel, 4, 0, 0); 43 REPORTER_ASSERT(reporter, pixel == SK_ColorGREEN); 44 canvas.readPixels(info, &pixel, 4, gWidth - 6, gWidth - 6); 45 REPORTER_ASSERT(reporter, pixel == SK_ColorGREEN); 47 canvas.readPixels(info, &pixel, 4, gWidth - 5, gWidth - 5); 48 REPORTER_ASSERT(reporter, pixel == SK_ColorTRANSPARENT);
|
BitmapHeapTest.cpp | 50 uint32_t* pixel = bm.getAddr32(1,0); local 51 *pixel = SK_ColorBLUE;
|
KtxTest.cpp | 48 SkPMColor &pixel = *(reinterpret_cast<SkPMColor*>(row + x*sizeof(SkPMColor))); local 49 pixel = SkPreMultiplyARGB(a, r, g, b); 105 0xFF, 0xFF, 0xFF, 0x80, // Pixel 1 106 0xFF, 0xFF, 0xFF, 0x80, // Pixel 2 107 0xFF, 0xFF, 0xFF, 0x80, // Pixel 3 108 0xFF, 0xFF, 0xFF, 0x80};// Pixel 4 130 SkPMColor pixel = *(reinterpret_cast<SkPMColor*>(row + i*sizeof(SkPMColor))); local 131 REPORTER_ASSERT(reporter, SkPreMultiplyARGB(0x80, 0xFF, 0xFF, 0xFF) == pixel);
|
DrawPathTest.cpp | 17 SkPMColor pixel[1]; local 18 output.installPixels(SkImageInfo::MakeN32Premul(1, 1), pixel, 4); 27 // check that the pixel in question starts as transparent (by the surface) 29 REPORTER_ASSERT(reporter, 0 == pixel[0]); 44 REPORTER_ASSERT(reporter, 0xFFFFFFFF == pixel[0]);
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
DrawableTestingUtils.java | 33 final int pixel = b.getPixel(x, y); local 35 return pixel;
|
/external/androidplot/AndroidPlot-Core/src/test/java/com/androidplot/util/ |
ValPixConverterTest.java | 64 // (remember that 0,0 is the top left pixel)
104 float pixel = ValPixConverter.valToPix(value, min, max, sizeInPix, true);
local 105 assertEquals(value, ValPixConverter.pixToVal(pixel, min, max, sizeInPix, true));
108 pixel = ValPixConverter.valToPix(value, min, max, sizeInPix, true);
109 assertEquals(value, ValPixConverter.pixToVal(pixel, min, max, sizeInPix, true));
114 pixel = ValPixConverter.valToPix(value, min, max, sizeInPix, true);
115 assertEquals(value, ValPixConverter.pixToVal(pixel, min, max, sizeInPix, true));
119 pixel = ValPixConverter.valToPix(value, min, max, sizeInPix, true);
120 assertEquals(value, ValPixConverter.pixToVal(pixel, min, max, sizeInPix, true));
124 pixel = ValPixConverter.valToPix(value, min, max, sizeInPix, true); [all...] |
/external/clang/test/CXX/dcl.dcl/dcl.spec/dcl.constexpr/ |
p9.cpp | 33 struct pixel { struct 36 constexpr pixel ur = { 1294, 1024 }; // ok 37 constexpr pixel origin; // expected-error {{default initialization of an object of const type 'const pixel' without a user-provided default constructor}} expected-note {{add an explicit initializer to initialize 'origin'}}
|
/external/libdrm/tests/planetest/ |
bo.c | 35 uint8_t *pixel = row + j * 4; local 40 pixel[0] = b; 41 pixel[1] = g; 42 pixel[2] = r; 43 pixel[3] = a; 45 pixel[0] = r; 46 pixel[1] = g; 47 pixel[2] = b; 48 pixel[3] = a;
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
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);
|
DiscretePathEffectTest.java | 80 int pixel = bitmap.getPixel(x, y); local 81 if (Color.green(pixel) > 0) { 85 assertEquals(0xFF, Color.blue(pixel)); 86 if (Color.red(pixel) > 0) {
|
EmbossMaskFilterTest.java | 86 int pixel = b.getPixel(x, y); local 87 color += Color.red(pixel) + Color.green(pixel) + Color.blue(pixel);
|
/cts/tests/tests/nativeopengl/standalone/jni/tests/ |
GLTest_test.cpp | 173 << "Pixel comparison failed with tolerance " << tolerance << "\n" 192 GLubyte pixel[4]; local 193 glReadPixels(0, 0, 1, 1, GL_RGBA, GL_UNSIGNED_BYTE, pixel); 195 ASSERT_PRED_FORMAT3(AssertPixel, pixel, expected, 2);
|
/external/ceres-solver/examples/ |
denoising.cc | 117 // Build a vector with the pixel indices of this patch. 122 double* pixel = solution->MutablePixel(x + x_delta_indices[i], local 124 pixels.push_back(pixel); 166 std::min(255.0, std::max(0.0, solution->Pixel(x, y)));
|
/external/mesa3d/src/mesa/drivers/x11/ |
xm_line.c | 52 * Render an array of points into a pixmap, any pixel format. 66 unsigned long pixel = xmesa_color_to_pixel( xmesa, 70 XMesaSetForeground( dpy, gc, pixel ); 134 unsigned long pixel; \ 135 PACK_TRUECOLOR( pixel, color[0], color[1], color[2] ); 137 #define PLOT(X,Y) XMesaPutPixel(xrb->ximage, X, YFLIP(xrb, Y), pixel ); 149 GLuint pixel = PACK_8A8B8G8R(color[0], color[1], color[2], color[3]); 154 #define PLOT(X,Y) *pixelPtr = pixel; 166 GLuint pixel = PACK_8A8R8G8B(color[0], color[1], color[2], color[3]); 171 #define PLOT(X,Y) *pixelPtr = pixel; 422 unsigned long pixel = xmesa_color_to_pixel(ctx, local [all...] |
/frameworks/base/media/mca/filterpacks/native/imageproc/ |
brightness.c | 32 } Pixel; 82 Pixel pixel; local 84 pixel.value = *(input_ptr++); 86 const short r = (pixel.rgba[0] * factor) / 255; 87 const short g = (pixel.rgba[1] * factor) / 255; 88 const short b = (pixel.rgba[2] * factor) / 255; 93 | (pixel.rgba[3] << 24);
|
/external/freetype/include/ |
ftcache.h | 411 /* pixel :: A Boolean. If 1, the `width' and `height' fields are */ 412 /* interpreted as integer pixel character sizes. */ 415 /* x_res :: Only used when `pixel' is value~0 to indicate the */ 418 /* y_res :: Only used when `pixel' is value~0 to indicate the */ 430 FT_Int pixel; member in struct:FTC_ScalerRec_ [all...] |
/external/freetype/src/smooth/ |
ftsmooth.c | 327 FT_UInt pixel = line[xx-1]; local 330 end[-3] = (FT_Byte)pixel; 331 end[-2] = (FT_Byte)pixel; 332 end[-1] = (FT_Byte)pixel;
|
/external/pdfium/core/src/fxge/agg/agg23/ |
agg_pixfmt_gray.h | 93 AGG_INLINE color_type pixel(int x, int y) const function in class:agg::pixel_formats_gray
|
/external/pdfium/third_party/freetype/include/ |
ftcache.h | 411 /* pixel :: A Boolean. If 1, the `width' and `height' fields are */ 412 /* interpreted as integer pixel character sizes. */ 415 /* x_res :: Only used when `pixel' is value~0 to indicate the */ 418 /* y_res :: Only used when `pixel' is value~0 to indicate the */ 430 FT_Int pixel; member in struct:FTC_ScalerRec_ [all...] |
/external/pdfium/third_party/freetype/src/smooth/ |
ftsmooth.c | 327 FT_UInt pixel = line[xx-1]; local 330 end[-3] = (FT_Byte)pixel; 331 end[-2] = (FT_Byte)pixel; 332 end[-1] = (FT_Byte)pixel;
|
/frameworks/base/media/mca/filterfw/jni/ |
jni_native_frame.cpp | 33 } Pixel; 179 Pixel* src_ptr; 188 const Pixel pixel = *(src_ptr++); local 189 *(dst_ptr++) = (pixel.rgba[0] + pixel.rgba[1] + pixel.rgba[2]) / 3; 195 const Pixel pixel = *(src_ptr++); local 196 *(dst_ptr++) = pixel.rgba[0] [all...] |
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
BlendComposite.java | 158 int pixel = srcPixels[x]; local 159 srcPixel[0] = (pixel >> 16) & 0xFF; 160 srcPixel[1] = (pixel >> 8) & 0xFF; 161 srcPixel[2] = (pixel ) & 0xFF; 162 srcPixel[3] = (pixel >> 24) & 0xFF; 164 pixel = dstPixels[x]; 165 dstPixel[0] = (pixel >> 16) & 0xFF; 166 dstPixel[1] = (pixel >> 8) & 0xFF; 167 dstPixel[2] = (pixel ) & 0xFF; 168 dstPixel[3] = (pixel >> 24) & 0xFF [all...] |
/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...] |