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

/frameworks/rs/java/tests/ImageProcessing/src/com/android/rs/image/
H A Dlevels.rsh26 float3 pixel = convert_float4(in).rgb;
27 pixel = rsMatrixMultiply(&colorMat, pixel);
28 pixel = clamp(pixel, 0.f, 255.f);
29 pixel = (pixel - inBlack) * overInWMinInB;
30 pixel = pixel * outWMinOutB + outBlack;
31 pixel
[all...]
/frameworks/rs/java/tests/ImageProcessing2/src/com/android/rs/image/
H A Dlevels.rsh26 float3 pixel = convert_float4(in).rgb;
27 pixel = rsMatrixMultiply(&colorMat, pixel);
28 pixel = clamp(pixel, 0.f, 255.f);
29 pixel = (pixel - inBlack) * overInWMinInB;
30 pixel = pixel * outWMinOutB + outBlack;
31 pixel
[all...]
/frameworks/rs/java/tests/ImageProcessing_jb/src/com/android/rs/image/
H A Dlevels.rsh26 float3 pixel = convert_float4(in).rgb;
27 pixel = rsMatrixMultiply(&colorMat, pixel);
28 pixel = clamp(pixel, 0.f, 255.f);
29 pixel = (pixel - inBlack) * overInWMinInB;
30 pixel = pixel * outWMinOutB + outBlack;
31 pixel
[all...]
/frameworks/base/media/mca/filterpacks/native/imageproc/
H A Dbrightness.c81 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 Dtouchlag.cpp50 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 DTransaction_test.cpp41 uint8_t* pixel = img + (4 * (y*outBuffer.stride + x)); local
42 pixel[0] = r;
43 pixel[1] = g;
44 pixel[2] = b;
45 pixel[3] = 255;
52 // individual pixel values for testing purposes.
70 const uint8_t* pixel = img + (4 * (y*mWidth + x)); local
71 if (r != pixel[0] || g != pixel[1] || b != pixel[
[all...]
/frameworks/native/libs/gui/tests/
H A DGLTest.cpp177 GLubyte pixel[4]; local
179 glReadPixels(x, y, 1, 1, GL_RGBA, GL_UNSIGNED_BYTE, pixel);
182 msg += String8::format("error reading pixel: %#x", err);
188 if (r >= 0 && abs(r - int(pixel[0])) > tolerance) {
189 msg += String8::format("r(%d isn't %d)", pixel[0], r);
191 if (g >= 0 && abs(g - int(pixel[1])) > tolerance) {
195 msg += String8::format("g(%d isn't %d)", pixel[1], g);
197 if (b >= 0 && abs(b - int(pixel[2])) > tolerance) {
201 msg += String8::format("b(%d isn't %d)", pixel[2], b);
203 if (a >= 0 && abs(a - int(pixel[
[all...]
/frameworks/native/opengl/tests/hwc/
H A DhwcTestLib.cpp546 // single pixel of the given color and alpha values.
580 uint32_t pixel; local
581 pixel = htonl((uint32_t) round((((1 << attrib->c1Size) - 1) * color.c1()))
582 << ((sizeof(pixel) * BITSPERBYTE)
584 pixel |= htonl((uint32_t) round((((1 << attrib->c2Size) - 1) * color.c2()))
585 << ((sizeof(pixel) * BITSPERBYTE)
587 pixel |= htonl((uint32_t) round((((1 << attrib->c3Size) - 1) * color.c3()))
588 << ((sizeof(pixel) * BITSPERBYTE)
591 pixel |= htonl((uint32_t) round((((1 << attrib->aSize) - 1) * alpha))
592 << ((sizeof(pixel) * BITSPERBYT
606 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 DhwcTestLib.h123 uint32_t x, uint32_t y, uint32_t pixel);
/frameworks/base/media/mca/filterfw/jni/
H A Djni_native_frame.cpp188 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/base/core/tests/coretests/src/android/hardware/display/
H A DVirtualDisplayTest.java453 int pixel = 0;
454 pixel |= (buffer.get(offset) & 0xff) << 16; // R
455 pixel |= (buffer.get(offset + 1) & 0xff) << 8; // G
456 pixel |= (buffer.get(offset + 2) & 0xff); // B
457 pixel |= (buffer.get(offset + 3) & 0xff) << 24; // A
458 if (pixel == Color.BLACK || pixel == 0) {
460 } else if (pixel == BLUEISH) {
462 } else if (pixel == GREENISH) {
467 Log.d(TAG, "- Found unexpected color: " + Integer.toHexString(pixel));
[all...]
/frameworks/native/opengl/libs/ETC1/
H A Detc1.cpp70 | 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 DSurfaceMediaSource_test.cpp293 GLubyte pixel[4]; local
295 glReadPixels(x, y, 1, 1, GL_RGBA, GL_UNSIGNED_BYTE, pixel);
298 msg += String8::format("error reading pixel: %#x", err);
302 fprintf(stderr, "pixel check failure: %s\n", msg.string());
306 if (r >= 0 && abs(r - int(pixel[0])) > tolerance) {
307 msg += String8::format("r(%d isn't %d)", pixel[0], r);
309 if (g >= 0 && abs(g - int(pixel[1])) > tolerance) {
313 msg += String8::format("g(%d isn't %d)", pixel[1], g);
315 if (b >= 0 && abs(b - int(pixel[2])) > tolerance) {
319 msg += String8::format("b(%d isn't %d)", pixel[
[all...]
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DBlendComposite.java211 int pixel = srcPixels[x];
212 srcPixel[0] = (pixel >> 16) & 0xFF;
213 srcPixel[1] = (pixel >> 8) & 0xFF;
214 srcPixel[2] = (pixel ) & 0xFF;
215 srcPixel[3] = (pixel >> 24) & 0xFF;
217 pixel = dstPixels[x];
218 dstPixel[0] = (pixel >> 16) & 0xFF;
219 dstPixel[1] = (pixel >> 8) & 0xFF;
220 dstPixel[2] = (pixel ) & 0xFF;
221 dstPixel[3] = (pixel >> 2
[all...]
/frameworks/minikin/libs/minikin/
H A DLayout.cpp250 int pixel = (int)dst[xx] + (int)src[xx - x]; local
251 pixel = pixel > 0xff ? 0xff : pixel;
252 dst[xx] = pixel;
/frameworks/native/opengl/libs/EGL/
H A DeglApi.cpp497 ALOGE("error setting native window pixel format: %s (%d)",
1096 uint32_t pixel; local
1101 GL_RGBA,GL_UNSIGNED_BYTE,&pixel);

Completed in 388 milliseconds