/external/chromium_org/third_party/angle/tests/angle_tests/ |
H A D | SRGBTextureTest.cpp | 35 GLubyte pixel[3] = { 0 }; local 36 glTexImage2D(GL_TEXTURE_2D, 0, GL_SRGB, 1, 1, 0, GL_SRGB, GL_UNSIGNED_BYTE, pixel); 41 glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, 0, 0, GL_SRGB, GL_UNSIGNED_BYTE, pixel); 63 GLubyte pixel[4] = { 0 }; local 64 glTexImage2D(GL_TEXTURE_2D, 0, GL_SRGB_ALPHA_EXT, 1, 1, 0, GL_SRGB_ALPHA_EXT, GL_UNSIGNED_BYTE, pixel); 69 glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, 0, 0, GL_SRGB_ALPHA_EXT, GL_UNSIGNED_BYTE, pixel);
|
H A D | TextureTest.cpp | 119 const GLubyte *pixel[4] = { 0 }; local 121 glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, 0, 0, GL_RGBA, GL_UNSIGNED_BYTE, pixel); 124 glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, 0, 1, GL_RGBA, GL_UNSIGNED_BYTE, pixel); 127 glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, 1, 0, GL_RGBA, GL_UNSIGNED_BYTE, pixel);
|
H A D | LineLoopTest.cpp | 115 const GLubyte* pixel = pixels.data() + ((y * getWindowWidth() + x) * 4); local 117 EXPECT_EQ(pixel[0], 0); 118 EXPECT_EQ(pixel[1], pixel[2]); 119 EXPECT_EQ(pixel[3], 255);
|
H A D | MaxTextureSizeTest.cpp | 108 GLubyte* pixel = data.data() + ((y * textureWidth + x) * 4); local 111 pixel[0] = static_cast<GLubyte>((float(x) / textureWidth) * 255); 112 pixel[1] = static_cast<GLubyte>((float(y) / textureHeight) * 255); 113 pixel[2] = 0; 114 pixel[3] = 255; 168 GLubyte* pixel = data.data() + ((y * textureWidth + x) * 4); local 171 pixel[0] = static_cast<GLubyte>((float(x) / textureWidth) * 255); 172 pixel[1] = static_cast<GLubyte>((float(y) / textureHeight) * 255); 173 pixel[2] = 0; 174 pixel[ [all...] |
H A D | ReadPixelsTest.cpp | 105 const GLubyte* pixel = pixels.data() + ((y * (pixelsWidth + offset) + x) * 4); local 106 unsigned int r = static_cast<unsigned int>(pixel[0]); 107 unsigned int g = static_cast<unsigned int>(pixel[1]); 108 unsigned int b = static_cast<unsigned int>(pixel[2]); 109 unsigned int a = static_cast<unsigned int>(pixel[3]); 167 // Test pixel 0 is red (existing data) 173 // Test pixel 16 is green (new data)
|
/external/chromium_org/third_party/skia/tests/ |
H A D | BitmapHeapTest.cpp | 38 uint32_t* pixel = bm.getAddr32(1,0); local 39 *pixel = SK_ColorBLUE;
|
H A D | KtxTest.cpp | 48 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 D | 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]);
|
/external/skia/tests/ |
H A D | BitmapHeapTest.cpp | 38 uint32_t* pixel = bm.getAddr32(1,0); local 39 *pixel = SK_ColorBLUE;
|
H A D | KtxTest.cpp | 49 SkPMColor &pixel = *(reinterpret_cast<SkPMColor*>(row + x*sizeof(SkPMColor))); local 50 pixel = SkPreMultiplyARGB(a, r, g, b); 131 SkPMColor pixel = *(reinterpret_cast<SkPMColor*>(row + i*sizeof(SkPMColor))); local 132 REPORTER_ASSERT(reporter, SkPreMultiplyARGB(0x80, 0xFF, 0xFF, 0xFF) == pixel);
|
/external/chromium_org/media/base/simd/ |
H A D | convert_rgb_to_yuv_c.cc | 39 // Since the input pixel format is RGB32, there are 4 bytes per pixel. 40 const uint8* pixel = rgbframe + 4 * j; local 41 yplane[j] = clip_byte(((pixel[r] * 66 + pixel[g] * 129 + 42 pixel[b] * 25 + 128) >> 8) + 16); 44 uplane[j / 2] = clip_byte(((pixel[r] * -38 + pixel[g] * -74 + 45 pixel[b] * 112 + 128) >> 8) + 128); 46 vplane[j / 2] = clip_byte(((pixel[ 71 const uint8* pixel = rgbframe + 3 * j; local [all...] |
H A D | filter_yuv_sse2.cc | 21 int pixel = 0; local 26 while (pixel < width && pixel < unaligned_width) { 27 dest[pixel] = (src0[pixel] * (256 - fraction) + 28 src1[pixel] * fraction) >> 8; 29 ++pixel; 36 reinterpret_cast<const __m128i*>(src0 + pixel); 38 reinterpret_cast<const __m128i*>(src1 + pixel); 39 __m128i* dest128 = reinterpret_cast<__m128i*>(dest + pixel); [all...] |
/external/clang/test/CXX/dcl.dcl/dcl.spec/dcl.constexpr/ |
H A D | 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' requires a user-provided default constructor}}
|
/external/pixman/demos/ |
H A D | clip-test.c | 10 create_solid_bits (uint32_t pixel) argument 16 pixels[i] = pixel;
|
/external/chromium_org/chrome/browser/ui/libgtk2ui/ |
H A D | skia_utils_gtk2.cc | 68 // more complex when a pixel isn't perfectly a word of memory. 75 guchar* pixel = gdk_pixels + row + (x * 3); local 76 const unsigned char& red = pixel[0]; 77 const unsigned char& green = pixel[1]; 78 const unsigned char& blue = pixel[2]; 112 uint32 pixel = bitmap.getAddr32(0, y)[x]; local 114 int alpha = SkColorGetA(pixel); 116 SkColor unmultiplied = SkUnPreMultiply::PMColorToColor(pixel); 122 divided[i + 0] = SkColorGetR(pixel); 123 divided[i + 1] = SkColorGetG(pixel); [all...] |
/external/chromium_org/third_party/mesa/src/src/mesa/drivers/x11/ |
H A D | 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...] |
/external/mesa3d/src/mesa/drivers/x11/ |
H A D | 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...] |
/external/ceres-solver/examples/ |
H A D | 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);
|
/external/chromium_org/ash/desktop_background/ |
H A D | wallpaper_resizer_unittest.cc | 36 const SkColor pixel = SkColorSetARGB(component, component, local 38 *(src.getAddr32(x, y)) = pixel;
|
/external/chromium_org/third_party/angle/samples/angle/sample_util/ |
H A D | tga_utils.cpp | 88 Byte4 pixel; local 89 pixel[0] = (pixelComponentCount > 2) ? buffer[pixelIdx + 2] : 0; 90 pixel[2] = (pixelComponentCount > 0) ? buffer[pixelIdx + 0] : 0; 91 pixel[1] = (pixelComponentCount > 1) ? buffer[pixelIdx + 1] : 0; 92 pixel[3] = (pixelComponentCount > 3) ? buffer[pixelIdx + 3] : 255; 94 image->data.push_back(pixel);
|
/external/chromium_org/third_party/freetype/include/freetype/ |
H A D | 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_
|
/external/chromium_org/third_party/mesa/src/src/mesa/main/ |
H A D | texcompress_cpal.c | 71 GLuint index, GLubyte *pixel) 73 memcpy(pixel, palette + info->size * index, info->size); 70 get_palette_entry(const struct cpal_format_info *info, const GLubyte *palette, GLuint index, GLubyte *pixel) argument
|
/external/chromium_org/ui/gfx/ |
H A D | color_analysis_unittest.cc | 93 // Creates a 1-dimensional png of the pixel colors found in |colors|. 289 // Write a black pixel into the image. A dark grey input pixel should match 291 uint32_t* pixel = bitmap.getAddr32(0, 0); local 292 *pixel = SK_ColorBLACK;
|
/external/chromium_org/ui/gfx/x/ |
H A D | x11_types.cc | 119 const uint32_t pixel = *(bitmap_in++); local 120 bitmap32[0] = (pixel >> 16) & 0xff; // Red 121 bitmap32[1] = (pixel >> 8) & 0xff; // Green 122 bitmap32[2] = pixel & 0xff; // Blue 123 bitmap32[3] = (pixel >> 24) & 0xff; // Alpha 145 const uint32_t pixel = *(bitmap_in++); local 146 uint16_t out_pixel = ((pixel >> 8) & 0xf800) | 147 ((pixel >> 5) & 0x07e0) | 148 ((pixel >> 3) & 0x001f);
|
/external/freetype/include/ |
H A D | 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_
|