Searched defs:pixel (Results 1 - 5 of 5) sorted by relevance
/frameworks/base/services/surfaceflinger/tests/ |
H A D | Transaction_test.cpp | 37 uint8_t* pixel = img + (4 * (y*info.s + x)); local 38 pixel[0] = r; 39 pixel[1] = g; 40 pixel[2] = b; 41 pixel[3] = 255; 48 // individual pixel values for testing purposes. 65 const uint8_t* pixel = img + (4 * (y*mWidth + x)); local 66 if (r != pixel[0] || g != pixel[1] || b != pixel[ [all...] |
/frameworks/base/media/libstagefright/tests/ |
H A D | SurfaceMediaSource_test.cpp | 292 GLubyte pixel[4]; local 294 glReadPixels(x, y, 1, 1, GL_RGBA, GL_UNSIGNED_BYTE, pixel); 297 msg += String8::format("error reading pixel: %#x", err); 301 fprintf(stderr, "pixel check failure: %s\n", msg.string()); 305 if (r >= 0 && abs(r - int(pixel[0])) > tolerance) { 306 msg += String8::format("r(%d isn't %d)", pixel[0], r); 308 if (g >= 0 && abs(g - int(pixel[1])) > tolerance) { 312 msg += String8::format("g(%d isn't %d)", pixel[1], g); 314 if (b >= 0 && abs(b - int(pixel[2])) > tolerance) { 318 msg += String8::format("b(%d isn't %d)", pixel[ [all...] |
/frameworks/base/libs/gui/tests/ |
H A D | SurfaceTexture_test.cpp | 280 GLubyte pixel[4]; local 282 glReadPixels(x, y, 1, 1, GL_RGBA, GL_UNSIGNED_BYTE, pixel); 285 msg += String8::format("error reading pixel: %#x", err); 289 fprintf(stderr, "pixel check failure: %s\n", msg.string()); 293 if (r >= 0 && abs(r - int(pixel[0])) > tolerance) { 294 msg += String8::format("r(%d isn't %d)", pixel[0], r); 296 if (g >= 0 && abs(g - int(pixel[1])) > tolerance) { 300 msg += String8::format("g(%d isn't %d)", pixel[1], g); 302 if (b >= 0 && abs(b - int(pixel[2])) > tolerance) { 306 msg += String8::format("b(%d isn't %d)", pixel[ [all...] |
/frameworks/base/opengl/libs/ETC1/ |
H A D | etc1.cpp | 70 | most significant pixel index bits | 76 | least significant pixel index bits | 95 Add table 3.17.3 Mapping from pixel index values to modifier values for 98 pixel index value 481 // pixel is valid or not. Invalid pixel color values are ignored when compressing. 509 // pixel (x,y) is at pIn + pixelSize * x + stride * y + redOffset; 545 int pixel = (p[1] << 8) | p[0]; local 546 *q++ = convert5To8(pixel >> 11); 547 *q++ = convert6To8(pixel >> 601 etc1_uint32 pixel = ((r >> 3) << 11) | ((g >> 2) << 5) | (b >> 3); local [all...] |
/frameworks/base/opengl/tests/hwc/ |
H A D | hwcTestLib.cpp | 540 // single pixel of the given color and alpha values. 576 uint32_t pixel; local 577 pixel = htonl((uint32_t) round((((1 << attrib->c1Size) - 1) * color.c1())) 578 << ((sizeof(pixel) * BITSPERBYTE) 580 pixel |= htonl((uint32_t) round((((1 << attrib->c2Size) - 1) * color.c2())) 581 << ((sizeof(pixel) * BITSPERBYTE) 583 pixel |= htonl((uint32_t) round((((1 << attrib->c3Size) - 1) * color.c3())) 584 << ((sizeof(pixel) * BITSPERBYTE) 587 pixel |= htonl((uint32_t) round((((1 << attrib->aSize) - 1) * alpha)) 588 << ((sizeof(pixel) * BITSPERBYT 602 hwcTestSetPixel(GraphicBuffer *gBuf, unsigned char *buf, uint32_t x, uint32_t y, uint32_t pixel) argument 657 uint32_t pixel; local 706 uint32_t pixel; local [all...] |
Completed in 378 milliseconds