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

/frameworks/rs/tests/java_api/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/tests/java_api/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/tests/java_api/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/rs/tests/java_api/ScriptGroupTest/src/com/android/rs/sgtest/
H A Dlevels_f.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.c82 Pixel pixel; local
84 pixel.value = *(input_ptr++);
86 const short r = (pixel.rgba[0] * factor) / 255;
87 const short g = (pixel.rgba[1] * factor) / 255;
88 const short b = (pixel.rgba[2] * factor) / 255;
93 | (pixel.rgba[3] << 24);
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/
H A DImageCompare.java30 private static double luma(int pixel) { argument
31 final int R = Color.red(pixel);
32 final int G = Color.green(pixel);
33 final int B = Color.blue(pixel);
/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/cmds/surfacereplayer/replayer/
H A DBufferQueueScheduler.cpp96 uint8_t* pixel = img + (4 * (y * outBuffer.stride + x)); local
97 pixel[0] = color.r;
98 pixel[1] = color.g;
99 pixel[2] = color.b;
100 pixel[3] = LAYER_ALPHA;
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DBlendComposite.java159 int pixel = srcPixels[x];
160 srcPixel[0] = (pixel >> 16) & 0xFF;
161 srcPixel[1] = (pixel >> 8) & 0xFF;
162 srcPixel[2] = (pixel ) & 0xFF;
163 srcPixel[3] = (pixel >> 24) & 0xFF;
165 pixel = dstPixels[x];
166 dstPixel[0] = (pixel >> 16) & 0xFF;
167 dstPixel[1] = (pixel >> 8) & 0xFF;
168 dstPixel[2] = (pixel ) & 0xFF;
169 dstPixel[3] = (pixel >> 2
[all...]
/frameworks/opt/setupwizard/library/eclair-mr1/test/instrumentation/src/com/android/setupwizardlib/items/
H A DButtonItemDrawingTest.java68 for (int pixel : drawingTestHelper.getPixels()) {
69 if (pixel == GOOGLE_BLUE) {
/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.cpp544 // 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
657 uint32_t pixel; local
705 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.cpp189 const Pixel pixel = *(src_ptr++); local
190 *(dst_ptr++) = (pixel.rgba[0] + pixel.rgba[1] + pixel.rgba[2]) / 3;
196 const Pixel pixel = *(src_ptr++); local
197 *(dst_ptr++) = pixel.rgba[0];
198 *(dst_ptr++) = pixel.rgba[1];
199 *(dst_ptr++) = pixel.rgba[2];
208 ALOGE("Unsupported bytes-per-pixel %d in setBitmap!", bytes_per_sample);
260 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/services/surfaceflinger/tests/
H A DTransaction_test.cpp44 uint8_t* pixel = img + (4 * (y*outBuffer.stride + x)); local
45 pixel[0] = r;
46 pixel[1] = g;
47 pixel[2] = b;
48 pixel[3] = 255;
57 // individual pixel values for testing purposes.
78 const uint8_t* pixel = img + (4 * (y * mBuf.stride + x)); local
79 if (r != pixel[0] || g != pixel[1] || b != pixel[
[all...]
H A DSurfaceInterceptor_test.cpp61 uint8_t* pixel = img + (4 * (y*outBuffer.stride + x)); local
62 pixel[0] = r;
63 pixel[1] = g;
64 pixel[2] = b;
65 pixel[3] = 255;
/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.cpp289 GLubyte pixel[4]; local
291 glReadPixels(x, y, 1, 1, GL_RGBA, GL_UNSIGNED_BYTE, pixel);
294 msg += String8::format("error reading pixel: %#x", err);
298 fprintf(stderr, "pixel check failure: %s\n", msg.string());
302 if (r >= 0 && abs(r - int(pixel[0])) > tolerance) {
303 msg += String8::format("r(%d isn't %d)", pixel[0], r);
305 if (g >= 0 && abs(g - int(pixel[1])) > tolerance) {
309 msg += String8::format("g(%d isn't %d)", pixel[1], g);
311 if (b >= 0 && abs(b - int(pixel[2])) > tolerance) {
315 msg += String8::format("b(%d isn't %d)", pixel[
[all...]
/frameworks/base/tools/aapt2/compile/
H A DImage.h67 * A range of pixel values, starting at 'start' and ending before 'end'
122 * Packs the RGBA_8888 data pointed to by pixel into a uint32_t
125 static uint32_t PackRGBA(const uint8_t* pixel);
H A DNinePatch.cpp41 * Returns the alpha value encoded in the 0xAARRGBB encoded pixel.
49 * pixel color at (0,0) of the image. One or the other is fine,
110 // note: encode the x offset without the final 1 pixel border.
118 // note: encode the x offset without the final 1 pixel border.
303 // Sample the first pixel to compare against.
416 // If the length is odd, we want both sides to process the center pixel,
456 uint32_t NinePatch::PackRGBA(const uint8_t* pixel) { argument
457 return (pixel[3] << 24) | (pixel[0] << 16) | (pixel[
[all...]
/frameworks/rs/script_api/
H A Drs_object_info.spec54 Elements can also have a kind, which is semantic information used to interpret pixel
182 Returns the Element's data kind. This is used to interpret pixel data.
/frameworks/support/graphics/drawable/animated/tests/src/android/support/graphics/drawable/tests/
H A DAnimatedVectorDrawableTest.java327 * Utility method to verify that the pixel at the given location has only red values.
335 int pixel = bitmap.getPixel(pixelX, pixelY);
336 int blue = pixel & 0xff;
337 int green = pixel & 0xff00 >> 8;
/frameworks/base/tools/aapt/
H A DImages.cpp590 errorMsg = "Must have one-pixel frame that is either transparent or white";
785 " Found at pixel #%d along %s edge.\n", errorPixel, errorEdge);
893 // 1. Every pixel has R == G == B (grayscale)
894 // 2. Every pixel has A == 255 (opaque)
945 printf("New max dev. = %d at pixel (%d, %d) = (%d %d %d %d)\n",
954 printf("Found a non-gray pixel at %d, %d = (%d %d %d %d)\n",
965 printf("Found a non-opaque pixel at %d, %d = (%d %d %d %d)\n",
992 // Write the palette index for the pixel to outRows optimistically.
1012 // Write the palette index for the pixel to outRows optimistically.
1048 // 1. Opaque gray - use COLOR_TYPE_GRAY at 1 byte/pixel
1092 uint32_t pixel = ((uint32_t*) row)[i]; local
[all...]
/frameworks/native/opengl/libs/EGL/
H A DeglApi.cpp553 ALOGE("error setting native window pixel format: %s (%d)",
563 ALOGE("error setting native window pixel dataSpace: %s (%d)",
1164 uint32_t pixel; local
1169 GL_RGBA,GL_UNSIGNED_BYTE,&pixel);

Completed in 495 milliseconds