Searched refs:pixel (Results 1 - 25 of 110) sorted by relevance

12345

/external/skia/tests/
H A DCTest.cpp20 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]);
H A DSkImageTest.cpp40 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);
H A DBitmapHeapTest.cpp50 uint32_t* pixel = bm.getAddr32(1,0); local
51 *pixel = SK_ColorBLUE;
H A DReadPixelsTest.cpp103 SkPMColor* pixel = reinterpret_cast<SkPMColor*>(pixels + y * bmp.rowBytes() + x * bmp.bytesPerPixel()); local
104 *pixel = getCanvasColor(x, y);
125 SkPMColor* pixel = reinterpret_cast<SkPMColor*>(pixels + y * bitmap->rowBytes() + x * bitmap->bytesPerPixel()); local
126 *pixel = getBitmapColor(x, y, w);
180 const uint32_t* pixel = bitmap.getAddr32(bx, by); local
186 SkPMColor pmPixel = convertToPMColor(ct, at, pixel, &didPremul);
194 REPORTER_ASSERT(reporter, getBitmapColor(bx, by, bw) == *pixel);
195 if (getBitmapColor(bx, by, bw) != *pixel) {
/external/clang/test/CXX/dcl.dcl/dcl.spec/dcl.constexpr/
H A Dp9.cpp33 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'}}
H A Dp1.cpp103 constexpr struct pixel { // expected-error {{struct cannot be marked constexpr}} struct
106 constexpr pixel(int);
109 constexpr pixel::pixel(int a) function in class:pixel
113 constexpr pixel small(2); // expected-error {{must be initialized by a constant expression}} expected-note {{in call to 'pixel(2)'}}
119 constexpr pixel large(4);
/external/skia/src/codec/
H A DSkMasks.h52 uint8_t getRed(uint32_t pixel);
53 uint8_t getGreen(uint32_t pixel);
54 uint8_t getBlue(uint32_t pixel);
55 uint8_t getAlpha(uint32_t pixel);
H A DSkMasks.cpp61 static uint8_t get_comp(uint32_t pixel, uint32_t mask, uint32_t shift, argument
63 return convert_to_8((pixel & mask) >> shift, size);
71 uint8_t SkMasks::getRed(uint32_t pixel) { argument
72 return get_comp(pixel, fRed.mask, fRed.shift, fRed.size);
74 uint8_t SkMasks::getGreen(uint32_t pixel) { argument
75 return get_comp(pixel, fGreen.mask, fGreen.shift, fGreen.size);
77 uint8_t SkMasks::getBlue(uint32_t pixel) { argument
78 return get_comp(pixel, fBlue.mask, fBlue.shift, fBlue.size);
80 uint8_t SkMasks::getAlpha(uint32_t pixel) { argument
81 return get_comp(pixel, fAlph
[all...]
/external/freetype/src/cache/
H A Dftcmanag.h158 ((a)->pixel != 0) == ((b)->pixel != 0) && \
159 ( (a)->pixel || \
166 ( (q)->pixel ? 0 : ( (q)->x_res*33 ^ (q)->y_res*61 ) ) )
/external/androidplot/AndroidPlot-Core/src/test/java/com/androidplot/util/
H A DValPixConverterTest.java64 // (remember that 0,0 is the top left pixel)
104 float pixel = ValPixConverter.valToPix(value, min, max, sizeInPix, true);
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
[all...]
/external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/textures/
H A DTexturePixel.java11 * The class that stores the pixel values of a texture.
18 /** The pixel data. */
22 * Copies the values from the given pixel.
24 * @param pixel
25 * the pixel that we read from
27 public void fromPixel(TexturePixel pixel) { argument
28 this.intensity = pixel.intensity;
29 this.red = pixel.red;
30 this.green = pixel.green;
31 this.blue = pixel
200 merge(TexturePixel pixel) argument
231 add(TexturePixel pixel) argument
[all...]
/external/mesa3d/src/gallium/state_trackers/xa/
H A Dxa_priv.h168 xa_pixel_to_float4(uint32_t pixel, float *color) argument
172 a = (pixel >> 24) & 0xff;
173 r = (pixel >> 16) & 0xff;
174 g = (pixel >> 8) & 0xff;
175 b = (pixel >> 0) & 0xff;
183 xa_pixel_to_float4_a8(uint32_t pixel, float *color) argument
187 a = (pixel >> 24) & 0xff;
/external/libpng/contrib/gregbook/
H A Drpng2-x.c26 - 1.10: added support for non-default visuals; fixed X pixel-conversion
997 /* to avoid testing the byte order every pixel (or doubling the size of
1065 ulg pixel; local
1285 pixel = (red << RShift) |
1289 *dest++ = (char)((pixel >> 24) & 0xff);
1290 *dest++ = (char)((pixel >> 16) & 0xff);
1291 *dest++ = (char)((pixel >> 8) & 0xff);
1292 *dest++ = (char)( pixel & 0xff);
1299 pixel = (red << RShift) |
1305 *dest++ = (char)((pixel >> 1
1357 ulg i, pixel; local
1598 ulg pixel; local
[all...]
H A Drpng-x.c21 - 1.10: added support for non-default visuals; fixed X pixel-conversion
669 /* to avoid testing the byte order every pixel (or doubling the size of
692 ulg pixel; local
717 pixel = (red << RShift) |
722 *dest++ = (char)((pixel >> 24) & 0xff);
723 *dest++ = (char)((pixel >> 16) & 0xff);
724 *dest++ = (char)((pixel >> 8) & 0xff);
725 *dest++ = (char)( pixel & 0xff);
730 pixel = (red & RMask) | (green & GMask) | (blue & BMask);
732 *dest++ = (char)((pixel >> 2
[all...]
/external/mesa3d/src/mesa/drivers/x11/
H A Dxm_line.c52 * 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...]
/external/mesa3d/src/mesa/swrast/
H A Ds_clear.c78 TYPE pixel, pixelMask; \
79 _mesa_pack_float_rgba_row(rb->Format, 1, clearColor, &pixel); \
82 pixel &= pixelMask; \
89 row[j] = (row[j] & pixelMask) | pixel; \
94 row[j] = pixel; \
105 TYPE pixel[N], pixelMask[N]; \
107 _mesa_pack_float_rgba_row(rb->Format, 1, clearColor, pixel); \
111 pixel[k] &= pixelMask[k]; \
121 (row[j * N + k] & pixelMask[k]) | pixel[k]; \
128 row[j * N + k] = pixel[
[all...]
/external/libdrm/tests/planetest/
H A Dbo.c35 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;
/external/clang/test/SemaCXX/
H A Daltivec.cpp12 vector pixel vp;
82 catch (vector pixel px) {}
/external/webp/src/dsp/
H A Dlossless_neon.c33 uint8x16x4_t pixel = vld4q_u8((uint8_t*)src); local
35 const uint8x16_t tmp = pixel.val[0];
36 pixel.val[0] = pixel.val[2];
37 pixel.val[2] = tmp;
38 vst4q_u8(dst, pixel);
48 const uint8x16x4_t pixel = vld4q_u8((uint8_t*)src); local
49 const uint8x16x3_t tmp = { { pixel.val[0], pixel.val[1], pixel
60 const uint8x16x4_t pixel = vld4q_u8((uint8_t*)src); local
[all...]
/external/clang/test/Parser/
H A Daltivec.c25 __vector pixel vv__p;
50 vector pixel v__p;
86 vector bool pixel v_bp; // expected-error {{cannot use '__pixel' with '__vector bool'}}
92 vector __bool pixel v___bp; // expected-error {{cannot use '__pixel' with '__vector bool'}}
108 vector pixel i16;
H A Dcxx-altivec.cpp25 __vector pixel vv__p;
50 vector pixel v__p;
85 vector bool pixel v_bp; // expected-error {{cannot use '__pixel' with '__vector bool'}}
91 vector __bool pixel v___bp; // expected-error {{cannot use '__pixel' with '__vector bool'}}
/external/deqp/framework/delibs/deimage/
H A DdeImage.c170 deARGB pixel = deImage_getPixel(image, x, y); local
172 pixels[4*ndx+0] = (deUint8)deARGB_getRed(pixel);
173 pixels[4*ndx+1] = (deUint8)deARGB_getGreen(pixel);
174 pixels[4*ndx+2] = (deUint8)deARGB_getBlue(pixel);
175 pixels[4*ndx+3] = (deUint8)deARGB_getAlpha(pixel);
/external/mesa3d/docs/
H A DMESA_pack_invert.spec33 This extension adds a new pixel storage parameter to indicate that
35 conventional bottom-to-top order. Only pixel packing can be
53 Resolved: No, we're only concerned with pixel packing. There are other
54 solutions for inverting images when using glDrawPixels (negative Y pixel
56 enough to define a complementary extension for pixel packing in the
134 PACK_INVERT_MESA boolean GetBoolean FALSE Value of PACK_INVERT_MESA 4.3.2 pixel-store
H A DMESA_pixmap_colormap.spec34 in order to compute pixel values during rendering.
65 to compute pixel values from RGB values Mesa requires a colormap.
/external/pdfium/core/src/fxge/dib/
H A Ddib_int.h52 PixelWeight* GetPixelWeight(int pixel) argument
54 return (PixelWeight*)(m_pWeightTables + (pixel - m_DestMin) * m_ItemSize);

Completed in 3800 milliseconds

12345