/frameworks/rs/java/tests/ImageProcessing/src/com/android/rs/image/ |
D | levels.rsh | 26 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 = clamp(pixel, 0.f, 255.f); 32 out.xyz = convert_uchar3(pixel); 38 float4 pixel = convert_float4(in); 39 pixel.rgb = rsMatrixMultiply(&colorMat, pixel.rgb); 40 pixel = clamp(pixel, 0.f, 255.f); [all …]
|
/frameworks/rs/java/tests/ImageProcessing2/src/com/android/rs/image/ |
D | levels.rsh | 26 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 = clamp(pixel, 0.f, 255.f); 32 out.xyz = convert_uchar3(pixel); 38 float4 pixel = convert_float4(in); 39 pixel.rgb = rsMatrixMultiply(&colorMat, pixel.rgb); 40 pixel = clamp(pixel, 0.f, 255.f); [all …]
|
/frameworks/rs/java/tests/ImageProcessing_jb/src/com/android/rs/image/ |
D | levels.rsh | 26 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 = clamp(pixel, 0.f, 255.f); 32 out.xyz = convert_uchar3(pixel); 38 float4 pixel = convert_float4(in); 39 pixel.rgb = rsMatrixMultiply(&colorMat, pixel.rgb); 40 pixel = clamp(pixel, 0.f, 255.f); [all …]
|
/frameworks/rs/java/tests/ScriptGroupTest/src/com/android/rs/sgtest/ |
D | levels_f.rsh | 26 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 = clamp(pixel, 0.f, 255.f); 32 out.xyz = convert_uchar3(pixel); 49 float4 pixel; 50 pixel.rgb = rsMatrixMultiply(&colorMat, in.rgb); 51 pixel = clamp(pixel, 0.f, 255.f); [all …]
|
/frameworks/base/tests/touchlag/ |
D | touchlag.cpp | 50 void clearBuffer(Buffer* buf, uint32_t pixel) { in clearBuffer() argument 51 android_memset32(buf->pixels, pixel, buf->s * buf->h * 4); in clearBuffer() 54 void drawTwoPixels(Buffer* buf, uint32_t pixel, ssize_t x, ssize_t y, size_t w) { in drawTwoPixels() argument 58 bits[x] = pixel; in drawTwoPixels() 62 bits[x+W] = pixel; in drawTwoPixels() 67 void drawHLine(Buffer* buf, uint32_t pixel, ssize_t x, ssize_t y, size_t w) { in drawHLine() argument 79 android_memset32(bits, pixel, W*4); in drawHLine() 84 void drawRect(Buffer* buf, uint32_t pixel, ssize_t x, ssize_t y, size_t w, size_t h) { in drawRect() argument 99 android_memset32(bits, pixel, W*4); in drawRect() 105 void drawCircle(Buffer* buf, uint32_t pixel, in drawCircle() argument [all …]
|
/frameworks/base/media/mca/filterpacks/native/imageproc/ |
D | brightness.c | 82 Pixel pixel; in brightness_process() local 84 pixel.value = *(input_ptr++); in brightness_process() 86 const short r = (pixel.rgba[0] * factor) / 255; in brightness_process() 87 const short g = (pixel.rgba[1] * factor) / 255; in brightness_process() 88 const short b = (pixel.rgba[2] * factor) / 255; in brightness_process() 93 | (pixel.rgba[3] << 24); in brightness_process()
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
D | BlendComposite.java | 158 int pixel = srcPixels[x]; in compose() local 159 srcPixel[0] = (pixel >> 16) & 0xFF; in compose() 160 srcPixel[1] = (pixel >> 8) & 0xFF; in compose() 161 srcPixel[2] = (pixel ) & 0xFF; in compose() 162 srcPixel[3] = (pixel >> 24) & 0xFF; in compose() 164 pixel = dstPixels[x]; in compose() 165 dstPixel[0] = (pixel >> 16) & 0xFF; in compose() 166 dstPixel[1] = (pixel >> 8) & 0xFF; in compose() 167 dstPixel[2] = (pixel ) & 0xFF; in compose() 168 dstPixel[3] = (pixel >> 24) & 0xFF; in compose()
|
/frameworks/native/opengl/tests/hwc/ |
D | hwcTestLib.cpp | 578 uint32_t pixel; in hwcTestColor2Pixel() local 579 pixel = htonl((uint32_t) round((((1 << attrib->c1Size) - 1) * color.c1())) in hwcTestColor2Pixel() 580 << ((sizeof(pixel) * BITSPERBYTE) in hwcTestColor2Pixel() 582 pixel |= htonl((uint32_t) round((((1 << attrib->c2Size) - 1) * color.c2())) in hwcTestColor2Pixel() 583 << ((sizeof(pixel) * BITSPERBYTE) in hwcTestColor2Pixel() 585 pixel |= htonl((uint32_t) round((((1 << attrib->c3Size) - 1) * color.c3())) in hwcTestColor2Pixel() 586 << ((sizeof(pixel) * BITSPERBYTE) in hwcTestColor2Pixel() 589 pixel |= htonl((uint32_t) round((((1 << attrib->aSize) - 1) * alpha)) in hwcTestColor2Pixel() 590 << ((sizeof(pixel) * BITSPERBYTE) in hwcTestColor2Pixel() 594 pixel = ntohl(pixel); in hwcTestColor2Pixel() [all …]
|
/frameworks/native/libs/gui/tests/ |
D | GLTest.cpp | 177 GLubyte pixel[4]; in checkPixel() local 179 glReadPixels(x, y, 1, 1, GL_RGBA, GL_UNSIGNED_BYTE, pixel); in checkPixel() 188 if (r >= 0 && abs(r - int(pixel[0])) > tolerance) { in checkPixel() 189 msg += String8::format("r(%d isn't %d)", pixel[0], r); in checkPixel() 191 if (g >= 0 && abs(g - int(pixel[1])) > tolerance) { in checkPixel() 195 msg += String8::format("g(%d isn't %d)", pixel[1], g); in checkPixel() 197 if (b >= 0 && abs(b - int(pixel[2])) > tolerance) { in checkPixel() 201 msg += String8::format("b(%d isn't %d)", pixel[2], b); in checkPixel() 203 if (a >= 0 && abs(a - int(pixel[3])) > tolerance) { in checkPixel() 207 msg += String8::format("a(%d isn't %d)", pixel[3], a); in checkPixel()
|
/frameworks/native/services/surfaceflinger/tests/ |
D | Transaction_test.cpp | 46 uint8_t* pixel = img + (4 * (y*outBuffer.stride + x)); in fillSurfaceRGBA8() local 47 pixel[0] = r; in fillSurfaceRGBA8() 48 pixel[1] = g; in fillSurfaceRGBA8() 49 pixel[2] = b; in fillSurfaceRGBA8() 50 pixel[3] = 255; in fillSurfaceRGBA8() 79 const uint8_t* pixel = img + (4 * (y * mBuf.stride + x)); in checkPixel() local 80 if (r != pixel[0] || g != pixel[1] || b != pixel[2]) { in checkPixel() 83 x, y, r, g, b, pixel[0], pixel[1], pixel[2])); in checkPixel()
|
/frameworks/base/media/mca/filterfw/jni/ |
D | jni_native_frame.cpp | 188 const Pixel pixel = *(src_ptr++); in Java_android_filterfw_core_NativeFrame_setNativeBitmap() local 189 *(dst_ptr++) = (pixel.rgba[0] + pixel.rgba[1] + pixel.rgba[2]) / 3; in Java_android_filterfw_core_NativeFrame_setNativeBitmap() 195 const Pixel pixel = *(src_ptr++); in Java_android_filterfw_core_NativeFrame_setNativeBitmap() local 196 *(dst_ptr++) = pixel.rgba[0]; in Java_android_filterfw_core_NativeFrame_setNativeBitmap() 197 *(dst_ptr++) = pixel.rgba[1]; in Java_android_filterfw_core_NativeFrame_setNativeBitmap() 198 *(dst_ptr++) = pixel.rgba[2]; in Java_android_filterfw_core_NativeFrame_setNativeBitmap()
|
/frameworks/base/core/tests/coretests/src/android/hardware/display/ |
D | VirtualDisplayTest.java | 453 int pixel = 0; in scanImage() local 454 pixel |= (buffer.get(offset) & 0xff) << 16; // R in scanImage() 455 pixel |= (buffer.get(offset + 1) & 0xff) << 8; // G in scanImage() 456 pixel |= (buffer.get(offset + 2) & 0xff); // B in scanImage() 457 pixel |= (buffer.get(offset + 3) & 0xff) << 24; // A in scanImage() 458 if (pixel == Color.BLACK || pixel == 0) { in scanImage() 460 } else if (pixel == BLUEISH) { in scanImage() 462 } else if (pixel == GREENISH) { in scanImage() 467 Log.d(TAG, "- Found unexpected color: " + Integer.toHexString(pixel)); in scanImage()
|
/frameworks/rs/java/tests/Refocus/src/com/android/rs/test/ |
D | pixel_format_f32.rsh | 4 // FocusPixel is the pixel format in the input image, which serves the 11 // whether or not a pixel is on the current target layer. For pixels that are 12 // active or not active but "close enough" to an active pixel, a matte value is 33 // active = 1: the pixel is on the target layer;
|
D | layered_filter_f32_helper.rsh | 12 // @param x x-coordinate of a pixel in a padded image. 13 // @param y y-coordinate of a pixel in a padded image. 16 // active pixel to (x,y). Sets the closest distance to sharp->matte and sets the 17 // depth of the closest pixel to sharp->dilated_depth. 29 // Initializes the minimum distance from this pixel to the active pixels on 44 // Whether or not this is an active pixel with a smaller distance. 79 // Locates the top left corner of the window surrounding this pixel. 127 // Locates the top left corner of the window surrounding this pixel. 164 // Locates the top left corner of the window surrounding this pixel.
|
D | layered_filter_d1new_helper.rsh | 29 // @param x x-coordinate of a pixel in a padded image. 30 // @param y y-coordinate of a pixel in a padded image. 33 // active pixel to (x,y). Sets the closest distance to sharp->matte and sets the 34 // depth of the closest pixel to sharp->dilated_depth. 48 // Initializes the minimum distance from this pixel to the active pixels on 64 // Whether or not this is an active pixel with a smaller distance. 89 // Initializes the minimum distance from this pixel to the active pixels on 105 // Whether or not this is an active pixel with a smaller distance. 139 // Locates the top left corner of the window surrounding this pixel. 190 // Locates the top left corner index of the window surrounding this pixel. [all …]
|
D | luts_for_speedup_f32.rsh | 4 // Defines several LUTs for speed up for uint8 pixel type. 11 // depth y is visible in the presence of a pixel with depth x.
|
/frameworks/base/docs/html/guide/webapps/ |
D | targeting.jd | 33 <p>Because Android is available on devices with a variety of screen sizes and pixel densities, you 51 pixel values to density-independent pixel values, so your web page appears at the same perceivable 55 pixel), which can produce artifacts (blurring and pixelation).</dd> 66 area matches the size of the screen when zoomed all the way out, the viewport has its own pixel 126 screen densities—the <code>-webkit-device-pixel-ratio</code> CSS media feature. The 134 <link rel="stylesheet" media="screen and (-webkit-device-pixel-ratio: 1.5)" href="hdpi.css" /> 135 <link rel="stylesheet" media="screen and (-webkit-device-pixel-ratio: 1.0)" href="mdpi.css" /> 146 @media screen and (-webkit-device-pixel-ratio: 1.5) { 153 @media screen and (-webkit-device-pixel-ratio: 0.75) {
|
/frameworks/av/media/libstagefright/tests/ |
D | SurfaceMediaSource_test.cpp | 289 GLubyte pixel[4]; in checkPixel() local 291 glReadPixels(x, y, 1, 1, GL_RGBA, GL_UNSIGNED_BYTE, pixel); in checkPixel() 302 if (r >= 0 && abs(r - int(pixel[0])) > tolerance) { in checkPixel() 303 msg += String8::format("r(%d isn't %d)", pixel[0], r); in checkPixel() 305 if (g >= 0 && abs(g - int(pixel[1])) > tolerance) { in checkPixel() 309 msg += String8::format("g(%d isn't %d)", pixel[1], g); in checkPixel() 311 if (b >= 0 && abs(b - int(pixel[2])) > tolerance) { in checkPixel() 315 msg += String8::format("b(%d isn't %d)", pixel[2], b); in checkPixel() 317 if (a >= 0 && abs(a - int(pixel[3])) > tolerance) { in checkPixel() 321 msg += String8::format("a(%d isn't %d)", pixel[3], a); in checkPixel()
|
/frameworks/native/opengl/libs/ETC1/ |
D | etc1.cpp | 545 int pixel = (p[1] << 8) | p[0]; in etc1_encode_image() local 546 *q++ = convert5To8(pixel >> 11); in etc1_encode_image() 547 *q++ = convert6To8(pixel >> 5); in etc1_encode_image() 548 *q++ = convert5To8(pixel); in etc1_encode_image() 601 etc1_uint32 pixel = ((r >> 3) << 11) | ((g >> 2) << 5) | (b >> 3); in etc1_decode_image() local 602 *p++ = (etc1_byte) pixel; in etc1_decode_image() 603 *p++ = (etc1_byte) (pixel >> 8); in etc1_decode_image()
|
/frameworks/support/graphics/drawable/animated/tests/src/android/support/graphics/drawable/tests/ |
D | AnimatedVectorDrawableTest.java | 225 int pixel = bitmap.getPixel(pixelX, pixelY); in verifyRedOnly() 226 int blue = pixel & 0xff; in verifyRedOnly() 227 int green = pixel & 0xff00 >> 8; in verifyRedOnly()
|
/frameworks/base/docs/html/training/multiscreen/ |
D | screendensities.jd | 55 pixels is a problem because different screens have different pixel densities, 58 <code>dp</code> or <code>sp</code> units. A <code>dp</code> is a density-independent pixel 59 that corresponds to the physical size of a pixel at 160 dpi. An <code>sp</code> is the same 61 scale-independent pixel), so you should use this measurement unit when defining
|
/frameworks/native/opengl/specs/ |
D | EGL_ANDROID_create_native_client_buffer.txt | 115 correspond to a valid pixel format for the implementation. If EGL_ALPHA_SIZE 117 valid pixel format for the implementation. The 144 EGL_BLUE_SIZE, and EGL_ALPHA_SIZE is not a valid pixel format for the
|
D | EGL_ANDROID_recordable.txt | 122 Android HAL pixel format from which the video encoder can read. The 130 correspond to an RGB HAL pixel format from which the video encoder can
|
/frameworks/base/docs/html/guide/practices/ui_guidelines/ |
D | icon_design_dialog.jd | 111 <li>Dialog icons have a 1 pixel safeframe. The base shape must fit within the 114 <li>All dimensions specified on this page are based on a 32x32 pixel artboard size 115 in Adobe Photoshop. Keep 1 pixel of padding around the bounding box inside the
|
/frameworks/base/docs/html-intl/intl/ko/training/multiscreen/ |
D | index.jd | 60 …<dd>이 강의에서는 다양한 픽셀 밀도를 가진 화면을 지원하는 방법(밀도 독립형 픽셀(density-independent pixel) 사용하기 및 밀도별로 적합한 비트맵 제공하…
|