Searched refs:pixel (Results 26 - 50 of 110) sorted by relevance

12345

/external/skia/tests/
H A DDrawPathTest.cpp17 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]);
H A DKtxTest.cpp48 SkPMColor &pixel = *(reinterpret_cast<SkPMColor*>(row + x*sizeof(SkPMColor))); local
49 pixel = SkPreMultiplyARGB(a, r, g, b);
130 SkPMColor pixel = *(reinterpret_cast<SkPMColor*>(row + i*sizeof(SkPMColor))); local
131 REPORTER_ASSERT(reporter, SkPreMultiplyARGB(0x80, 0xFF, 0xFF, 0xFF) == pixel);
H A DImageFilterTest.cpp234 uint32_t pixel = *result.getAddr32(0, 0); local
236 REPORTER_ASSERT(reporter, pixel == SK_ColorGREEN);
835 uint32_t pixel = *bitmap.getAddr32(0, 0); local
836 REPORTER_ASSERT(reporter, pixel == SK_ColorGREEN);
854 pixel = *bitmap.getAddr32(0, 0);
857 REPORTER_ASSERT(reporter, pixel != SK_ColorGREEN);
859 REPORTER_ASSERT(reporter, pixel == SK_ColorGREEN);
917 uint32_t pixel = *bitmap.getAddr32(0, 0); local
918 REPORTER_ASSERT(reporter, pixel == SK_ColorGREEN);
927 pixel
1047 uint32_t pixel; local
1098 uint32_t pixel; local
[all...]
/external/libvncserver/examples/android/jni/
H A Dfbvncserver.c403 unsigned int pixel = *f; local
405 if (pixel != *c)
407 *c = pixel;
411 if (pixel == 0x18e320e4 || pixel == 0x20e418e3)
412 pixel = 0x18e318e3;
414 *r = PIXEL_FB_TO_RFB(pixel,
/external/glide/third_party/gif_encoder/src/main/java/com/bumptech/glide/gifencoder/
H A DAnimatedGifEncoder.java176 writePixels(); // encode and write pixel data
387 // The algorithm requires 3 bytes per pixel as RGB.
393 for (final int pixel : pixelsInt) {
394 if (pixel == Color.TRANSPARENT) {
397 pixels[pixelsIndex++] = (byte) (pixel & 0xFF);
398 pixels[pixelsIndex++] = (byte) ((pixel >> 8) & 0xFF);
399 pixels[pixelsIndex++] = (byte) ((pixel >> 16) & 0xFF);
479 out.write(0); // pixel aspect ratio - assume 1:1
508 * Encodes and writes pixel data
/external/mesa3d/src/mesa/drivers/windows/gdi/
H A Dwmesa.c117 * Determine the pixel format based on the pixel size.
641 DWORD pixel; local
648 pixel = lpdw[i];
649 rgba[i][RCOMP] = (GLubyte)((pixel & 0x00ff0000) >> 16);
650 rgba[i][GCOMP] = (GLubyte)((pixel & 0x0000ff00) >> 8);
651 rgba[i][BCOMP] = (GLubyte)(pixel & 0x000000ff);
665 DWORD pixel; local
672 pixel = *lpdw;
673 rgba[i][RCOMP] = (GLubyte)((pixel
852 GLuint i, pixel; local
876 GLuint i, pixel; local
[all...]
/external/deqp/modules/glshared/
H A DglsRasterizationTestUtil.cpp104 bool pixelNearLineSegment (const tcu::IVec2& pixel, const tcu::Vec2& p0, const tcu::Vec2& p1) argument
106 const tcu::Vec2 pixelCenterPosition = tcu::Vec2(pixel.x() + 0.5f, pixel.y() + 0.5f);
108 // "Near" = Distance from the line to the pixel is less than 2 * pixel_max_radius. (pixel_max_radius = sqrt(2) / 2)
129 // distance from line endpoint 1 to pixel is less than line length + maxPixelDistance
141 bool pixelOnlyOnASharedEdge (const tcu::IVec2& pixel, const TriangleSceneSpec::SceneTriangle& triangle, const tcu::IVec2& viewportSize) argument
158 const bool pixelOnEdge0 = pixelNearLineSegment(pixel, triangleScreenSpace[0], triangleScreenSpace[1]);
159 const bool pixelOnEdge1 = pixelNearLineSegment(pixel, triangleScreenSpace[1], triangleScreenSpace[2]);
160 const bool pixelOnEdge2 = pixelNearLineSegment(pixel, triangleScreenSpace[2], triangleScreenSpace[0]);
162 // If the pixel i
[all...]
H A DglsRasterizationTestUtil.hpp50 VERIFICATIONMODE_STRICT = 0, // !< do not allow even a single bad pixel
109 * \brief Calculates triangle coverage at given pixel
111 * triangle should not be z-clipped. If multisample is false, the pixel
113 * whole pixel area is compared.
115 CoverageType calculateTriangleCoverage (const tcu::Vec4& p0, const tcu::Vec4& p1, const tcu::Vec4& p2, const tcu::IVec2& pixel, const tcu::IVec2& viewportSize, int subpixelBits, bool multisample);
/external/mesa3d/src/mesa/drivers/x11/
H A Dxm_dd.c129 GLuint pixel = (GLuint) xmesa->clearpixel; local
133 pixel = ((pixel >> 8) & 0x00ff) | ((pixel << 8) & 0xff00);
139 ptr2[i] = pixel;
184 register GLuint pixel = (GLuint) xmesa->clearpixel; local
190 pixel = ((pixel >> 24) & 0x000000ff)
191 | ((pixel >> 8) & 0x0000ff00)
192 | ((pixel <<
[all...]
H A Dxm_tri.c326 unsigned long pixel; \
327 PACK_TRUECOLOR(pixel, v2->color[0], v2->color[1], v2->color[2]);
334 XMesaPutPixel(img, x, y, pixel); \
647 PIXEL_TYPE *pixel = pRow; \
648 for (i = 0; i < span.end; i++, pixel++) { \
649 pixel->r = FixedToInt(span.red); \
650 pixel->g = FixedToInt(span.green); \
651 pixel->b = FixedToInt(span.blue); \
741 unsigned long pixel; \
742 PACK_TRUECOLOR(pixel, v
[all...]
/external/mesa3d/src/gallium/auxiliary/util/
H A Du_debug.c441 * \param cpp bytes per pixel
683 struct bmp_rgb_quad pixel; local
684 pixel.rgbRed = float_to_ubyte(ptr[x*4 + 0]);
685 pixel.rgbGreen = float_to_ubyte(ptr[x*4 + 1]);
686 pixel.rgbBlue = float_to_ubyte(ptr[x*4 + 2]);
687 pixel.rgbAlpha = float_to_ubyte(ptr[x*4 + 3]);
688 fwrite(&pixel, 1, 4, stream);
/external/skia/src/images/
H A DSkImageDecoder_libico.cpp261 // The AND mask is a 1-bit alpha mask for each pixel that comes after the
330 //function to place the pixel, determined by the bitCount
353 // setup for the next pixel
366 int pixel = (byte >> 4) & 0xF; local
368 *address = (alphaBit-1)&(colors[pixel]);
373 pixel = byte & 0xF;
377 *address = (alphaBit-1)&(colors[pixel]);
385 int pixel = readByte(buf, xorOffset + pixelNo); local
387 *address = (alphaBit-1)&(colors[pixel]);
/external/ceres-solver/examples/
H A Ddenoising.cc117 // 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);
/external/mesa3d/docs/OLD/
H A DMESA_packed_depth_stencil.spec36 packed pixel formats and types which pack both stencil and depth
42 pixel formats? Should we instead provide both:
106 Add to the description of packed pixel formats:
171 The assignment of elements to fields in the packed pixel is as
/external/opencv/cvaux/src/
H A Dcvbgfg_gaussmix.cpp52 //int depth; /* pixel depth in bits: IPL_DEPTH_8U ...*/
76 Test whether pixel can be explained by background model;
291 double pixel[4]; local
295 pixel[k] = (uchar)curr_frame->imageData[p+k];
297 no_match = icvMatchTest( pixel, nChannels, match, g_point, &bg_model_params );
300 icvUpdateFullWindow( pixel, nChannels, match, g_point, &bg_model->params );
306 icvUpdatePartialWindow( pixel, nChannels, match, g_point, &bg_model_params );
308 icvUpdatePartialNoMatch( pixel, nChannels, match, g_point, &bg_model_params );
525 icvUpdatePartialNoMatch(double *pixel, argument
544 g_point->g_values[bg_model_params->n_gauss - 1].mean[m] = pixel[
[all...]
/external/freetype/src/smooth/
H A Dftsmooth.c327 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/third_party/freetype/src/smooth/
H A Dftsmooth.c327 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/libvncserver/x11vnc/
H A Dsolid.c164 unsigned long pixel = BlackPixel(dpy, scr);
169 pixel = cdef.pixel;
174 return pixel;
191 static unsigned long mask, pixel = 0;
278 pixel = get_pixel(color);
281 XSetWindowBackground(dpy, window, pixel);
306 unsigned long mask, pixel;
526 pixel = BlackPixel(dpy, scr);
531 pixel
[all...]
/external/skia/third_party/ktx/
H A Dktx.cpp295 // Read the pixel data...
531 // Write the pixel data...
537 uint32_t pixel = pixelsPtr[i]; local
539 dstPixel[0] = pixel >> SK_R32_SHIFT;
540 dstPixel[1] = pixel >> SK_G32_SHIFT;
541 dstPixel[2] = pixel >> SK_B32_SHIFT;
542 dstPixel[3] = pixel >> SK_A32_SHIFT;
/external/libvncserver/test/
H A Dbmp.c116 int numread=0, totalread=0, pixel[3], i, j; local
153 if(fscanf(fs, "%d%d%d", &pixel[0], &pixel[1], &pixel[2])!=3)
155 (*buf)[j*dstpitch+i*ps[f]+roffset[f]]=(unsigned char)(pixel[0]*255/scalefactor);
156 (*buf)[j*dstpitch+i*ps[f]+goffset[f]]=(unsigned char)(pixel[1]*255/scalefactor);
157 (*buf)[j*dstpitch+i*ps[f]+boffset[f]]=(unsigned char)(pixel[2]*255/scalefactor);
/external/skia/third_party/etc1/
H A Detc1.cpp78 | most significant pixel index bits |
84 | least significant pixel index bits |
103 Add table 3.17.3 Mapping from pixel index values to modifier values for
106 pixel index value
489 // pixel is valid or not. Invalid pixel color values are ignored when compressing.
517 // pixel (x,y) is at pIn + pixelSize * x + stride * y + redOffset;
553 int pixel = (p[1] << 8) | p[0]; local
554 *q++ = convert5To8(pixel >> 11);
555 *q++ = convert6To8(pixel >>
609 etc1_uint32 pixel = ((r >> 3) << 11) | ((g >> 2) << 5) | (b >> 3); local
[all...]
/external/clang/lib/Headers/
H A Daltivec.h61 static vector pixel __ATTRS_o_ai
62 vec_perm(vector pixel __a, vector pixel __b, vector unsigned char __c);
1812 static vector pixel __ATTRS_o_ai
1813 vec_ld(int __a, const vector pixel *__b)
1815 return (vector pixel)__builtin_altivec_lvx(__a, __b);
1922 static vector pixel __ATTRS_o_ai
1923 vec_lvx(int __a, const vector pixel *__b)
1925 return (vector pixel)__builtin_altivec_lvx(__a, __b);
2124 static vector pixel __ATTRS_o_a
[all...]
/external/webp/src/enc/
H A Dbackward_references.c384 // Alternative#2: Insert the pixel at 'i' as literal, and code the
396 const uint32_t pixel = argb[i]; local
397 // Alternative#2 is a better match. So push pixel at 'i' as literal.
399 if (use_color_cache && VP8LColorCacheContains(&hashers, pixel)) {
400 const int ix = VP8LColorCacheGetIndex(&hashers, pixel);
403 if (use_color_cache) VP8LColorCacheInsert(&hashers, pixel);
404 v = PixOrCopyCreateLiteral(pixel);
407 i++; // Backward reference to be done for next pixel.
421 // Add to the hash_chain (but cannot add the last pixel).
430 const uint32_t pixel local
[all...]
/external/deqp/framework/common/
H A DtcuFuzzyImageCompare.cpp211 static float compareToNeighbor (const FuzzyCompareParams& params, de::Random& rnd, deUint32 pixel, const ConstPixelBufferAccess& surface, int x, int y) argument
216 minErr = deFloatMin(minErr, compareColors(pixel, readUnorm8<NumChannels>(surface, x, y), params.minErrThreshold));
241 minErr = deFloatMin(minErr, compareColors(pixel, readUnorm8<NumChannels>(surface, dx, dy), params.minErrThreshold));
254 minErr = deFloatMin(minErr, compareColors(pixel, sample, params.minErrThreshold));
/external/mesa3d/docs/
H A DMESA_copy_sub_buffer.spec70 corresponds to the lower-left pixel of the window, like glReadPixels.

Completed in 944 milliseconds

12345