/frameworks/base/media/mca/filterpacks/native/imageproc/ |
H A D | brightness.c | 81 Pixel pixel; local 83 pixel.value = *(input_ptr++); 85 const short r = (pixel.rgba[0] * factor) / 255; 86 const short g = (pixel.rgba[1] * factor) / 255; 87 const short b = (pixel.rgba[2] * factor) / 255; 92 | (pixel.rgba[3] << 24);
|
/frameworks/base/tests/touchlag/ |
H A D | touchlag.cpp | 50 void clearBuffer(Buffer* buf, uint32_t pixel) { argument 51 android_memset32(buf->pixels, pixel, buf->s * buf->h * 4); 54 void drawTwoPixels(Buffer* buf, uint32_t pixel, ssize_t x, ssize_t y, size_t w) { argument 58 bits[x] = pixel; 62 bits[x+W] = pixel; 67 void drawHLine(Buffer* buf, uint32_t pixel, ssize_t x, ssize_t y, size_t w) { argument 79 android_memset32(bits, pixel, W*4); 84 void drawRect(Buffer* buf, uint32_t pixel, ssize_t x, ssize_t y, size_t w, size_t h) { argument 99 android_memset32(bits, pixel, W*4); 105 void drawCircle(Buffer* buf, uint32_t pixel, argument [all...] |
/frameworks/native/services/surfaceflinger/tests/ |
H A D | Transaction_test.cpp | 40 uint8_t* pixel = img + (4 * (y*info.s + x)); local 41 pixel[0] = r; 42 pixel[1] = g; 43 pixel[2] = b; 44 pixel[3] = 255; 51 // individual pixel values for testing purposes. 68 const uint8_t* pixel = img + (4 * (y*mWidth + x)); local 69 if (r != pixel[0] || g != pixel[1] || b != pixel[ [all...] |
/frameworks/native/opengl/tests/hwc/ |
H A D | hwcTestLib.cpp | 542 // single pixel of the given color and alpha values. 578 uint32_t pixel; local 579 pixel = htonl((uint32_t) round((((1 << attrib->c1Size) - 1) * color.c1())) 580 << ((sizeof(pixel) * BITSPERBYTE) 582 pixel |= htonl((uint32_t) round((((1 << attrib->c2Size) - 1) * color.c2())) 583 << ((sizeof(pixel) * BITSPERBYTE) 585 pixel |= htonl((uint32_t) round((((1 << attrib->c3Size) - 1) * color.c3())) 586 << ((sizeof(pixel) * BITSPERBYTE) 589 pixel |= htonl((uint32_t) round((((1 << attrib->aSize) - 1) * alpha)) 590 << ((sizeof(pixel) * BITSPERBYT 604 hwcTestSetPixel(GraphicBuffer *gBuf, unsigned char *buf, uint32_t x, uint32_t y, uint32_t pixel) argument 659 uint32_t pixel; local 708 uint32_t pixel; local [all...] |
H A D | hwcTestLib.h | 126 uint32_t x, uint32_t y, uint32_t pixel);
|
/frameworks/base/media/mca/filterfw/jni/ |
H A D | jni_native_frame.cpp | 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]; 197 *(dst_ptr++) = pixel.rgba[1]; 198 *(dst_ptr++) = pixel.rgba[2]; 207 ALOGE("Unsupported bytes-per-pixel %d in setBitmap!", bytes_per_sample); 259 ALOGE("Unsupported bytes-per-pixel [all...] |
/frameworks/native/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/av/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/native/libs/gui/tests/ |
H A D | SurfaceTexture_test.cpp | 196 GLubyte pixel[4]; local 198 glReadPixels(x, y, 1, 1, GL_RGBA, GL_UNSIGNED_BYTE, pixel); 201 msg += String8::format("error reading pixel: %#x", err); 205 fprintf(stderr, "pixel check failure: %s\n", msg.string()); 209 if (r >= 0 && abs(r - int(pixel[0])) > tolerance) { 210 msg += String8::format("r(%d isn't %d)", pixel[0], r); 212 if (g >= 0 && abs(g - int(pixel[1])) > tolerance) { 216 msg += String8::format("g(%d isn't %d)", pixel[1], g); 218 if (b >= 0 && abs(b - int(pixel[2])) > tolerance) { 222 msg += String8::format("b(%d isn't %d)", pixel[ [all...] |
/frameworks/native/opengl/libs/EGL/ |
H A D | eglApi.cpp | 254 ALOGE("error setting native window pixel format: %s (%d)", 807 uint32_t pixel; local 812 GL_RGBA,GL_UNSIGNED_BYTE,&pixel);
|