Home
last modified time | relevance | path

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

123

/frameworks/rs/java/tests/ImageProcessing2/src/com/android/rs/image/
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 = 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/src/com/android/rs/image/
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 = 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/
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 = 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/base/tests/touchlag/
Dtouchlag.cpp50 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/
Dbrightness.c81 Pixel pixel; in brightness_process() local
83 pixel.value = *(input_ptr++); in brightness_process()
85 const short r = (pixel.rgba[0] * factor) / 255; in brightness_process()
86 const short g = (pixel.rgba[1] * factor) / 255; in brightness_process()
87 const short b = (pixel.rgba[2] * factor) / 255; in brightness_process()
92 | (pixel.rgba[3] << 24); in brightness_process()
/frameworks/native/services/surfaceflinger/tests/
DTransaction_test.cpp41 uint8_t* pixel = img + (4 * (y*outBuffer.stride + x)); in fillSurfaceRGBA8() local
42 pixel[0] = r; in fillSurfaceRGBA8()
43 pixel[1] = g; in fillSurfaceRGBA8()
44 pixel[2] = b; in fillSurfaceRGBA8()
45 pixel[3] = 255; in fillSurfaceRGBA8()
70 const uint8_t* pixel = img + (4 * (y*mWidth + x)); in checkPixel() local
71 if (r != pixel[0] || g != pixel[1] || b != pixel[2]) { in checkPixel()
74 x, y, r, g, b, pixel[0], pixel[1], pixel[2])); in checkPixel()
/frameworks/native/opengl/tests/hwc/
DhwcTestLib.cpp578 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 …]
DhwcTestLib.h126 uint32_t x, uint32_t y, uint32_t pixel);
/frameworks/base/media/mca/filterfw/jni/
Djni_native_frame.cpp188 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/docs/html/tools/help/
DMonkeyImage.jd62 Returns the single pixel at the image location (x,y), as an
82 Returns the single pixel at the image location (x,y), as
204 Returns the single pixel at the image location (x,y), as an
214 The horizontal position of the pixel, starting with 0 at the left of the screen in the
221 The vertical position of the pixel, starting with 0 at the top of the screen in the
231 A tuple of integers representing the pixel, in the form (a,r,g,b) where
255 Returns the single pixel at the image location (x,y), as an
265 The horizontal position of the pixel, starting with 0 at the left of the screen in the
272 The vertical position of the pixel, starting with 0 at the top of the screen in the
282 The a,r,g, and b values of the pixel as 8-bit values combined into a 32-bit
[all …]
Ddraw9patch.jd30 <li>Click within the 1-pixel perimeter to draw the lines that define the stretchable
39 loaded with an empty one-pixel border added around the image, in which you can draw
/frameworks/av/media/libstagefright/tests/
DSurfaceMediaSource_test.cpp292 GLubyte pixel[4]; in checkPixel() local
294 glReadPixels(x, y, 1, 1, GL_RGBA, GL_UNSIGNED_BYTE, pixel); in checkPixel()
305 if (r >= 0 && abs(r - int(pixel[0])) > tolerance) { in checkPixel()
306 msg += String8::format("r(%d isn't %d)", pixel[0], r); in checkPixel()
308 if (g >= 0 && abs(g - int(pixel[1])) > tolerance) { in checkPixel()
312 msg += String8::format("g(%d isn't %d)", pixel[1], g); in checkPixel()
314 if (b >= 0 && abs(b - int(pixel[2])) > tolerance) { in checkPixel()
318 msg += String8::format("b(%d isn't %d)", pixel[2], b); in checkPixel()
320 if (a >= 0 && abs(a - int(pixel[3])) > tolerance) { in checkPixel()
324 msg += String8::format("a(%d isn't %d)", pixel[3], a); in checkPixel()
/frameworks/native/opengl/libs/ETC1/
Detc1.cpp545 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/base/docs/html/training/multiscreen/
Dscreendensities.jd52 pixels is a problem because different screens have different pixel densities,
55 <code>dp</code> or <code>sp</code> units. A <code>dp</code> is a density-independent pixel
56 that corresponds to the physical size of a pixel at 160 dpi. An <code>sp</code> is the same
58 scale-independent pixel), so you should use this measurement unit when defining
/frameworks/base/docs/html/guide/webapps/
Dtargeting.jd234 800-pixel-wide page on the screen.</p></dd>
296 web page with a default scale factor that is 1.5 times larger than the actual pixel resolution, to
331 medium-density device, so no scaling occurs and the 320-pixel-wide image is drawn using exactly 320
342 screen densities&mdash;the <code>-webkit-device-pixel-ratio</code> CSS media feature. The
350 &lt;link rel="stylesheet" media="screen and (-webkit-device-pixel-ratio: 1.5)" href="hdpi.css" /&gt;
351 &lt;link rel="stylesheet" media="screen and (-webkit-device-pixel-ratio: 1.0)" href="mdpi.css" /&gt;
352 &lt;link rel="stylesheet" media="screen and (-webkit-device-pixel-ratio: 0.75)" href="ldpi.css" /&g…
359 specific screen densities using the {@code -webkit-device-pixel-ratio} media feature. Notice
370 &#64;media screen and (-webkit-device-pixel-ratio: 1.5) {
377 &#64;media screen and (-webkit-device-pixel-ratio: 0.75) {
[all …]
/frameworks/base/docs/html/guide/practices/ui_guidelines/
Dicon_design_dialog.jd111 <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
Dicon_design_list.jd116 <li>All dimensions specified are based on a 32x32 pixel artboard size in
117 Photoshop. Keep 1 pixel of padding around the bounding box inside the template.
/frameworks/base/docs/html/tools/debugging/
Ddebugging-ui.jd346 Pixel Perfect is a tool for examining pixel properties and laying out UIs from a design drawing.
375 which each square represents one pixel. To look at the information for a pixel, click in its
386 When you select a pixel in the Loupe pane, you see the following information at the
391 Pixel swatch: A rectangle filled with the same color as the pixel.
394 HTML color code: The hexadecimal RGB code corresponding to the pixel color
398 pixel color. Each value is in the range 0-255.
401 X and Y coordinates: The pixel's coordinates, in device-specific pixel units.
473 leftmost pixel (X=0, Y=<em>max screen</em>) of the screen.
/frameworks/base/docs/html-intl/ko/training/multiscreen/
Dindex.jd60 …<dd>이 강의에서는 다양한 픽셀 밀도를 가진 화면을 지원하는 방법(밀도 독립형 픽셀(density-independent pixel) 사용하기 및 밀도별로 적합한 비트맵 제공하…
Dscreendensities.jd46 <p>레이아웃을 디자인할 때 범하기 쉬운 실수 중 하나는 절대 픽셀(absolute pixel)을 사용하여 거리나 크기를 정의하는 것입니다. 각 화면은 픽셀 밀도가 서로 다른데 …
/frameworks/base/docs/html/design/style/
Diconography.jd43 …e <strong>48x48 <acronym title="Density-independent pixels. One dp is one pixel on a 160 dpi scree…
142 …e <strong>32x32 <acronym title="Density-independent pixels. One dp is one pixel on a 160 dpi scree…
223 …e <strong>16x16 <acronym title="Density-independent pixels. One dp is one pixel on a 160 dpi scree…
302 …e <strong>24x24 <acronym title="Density-independent pixels. One dp is one pixel on a 160 dpi scree…
/frameworks/native/opengl/specs/
DEGL_ANDROID_recordable.txt122 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/training/tv/
Doptimizing-layouts-tv.jd60 aspect ratio, and pixel density of the TV screen.</li>
141 …layout-relative sizing rather than absolute sizing, and density-independent pixel units instead of…
142pixel units. For example, to set the width of a widget, use wrap_content instead of a pixel measur…
/frameworks/base/docs/html/training/displaying-bitmaps/
Dload-bitmap.jd91 <p>For example, it’s not worth loading a 1024x768 pixel image into memory if it will eventually be
92 displayed in a 128x96 pixel thumbnail in an {@link android.widget.ImageView}.</p>
157 android.widget.ImageView} that displays a 100x100 pixel thumbnail, as shown in the following example
/frameworks/base/docs/html/guide/practices/
Dscreens_support.jd39 <li><a href="#dips-pels">Converting dp units to pixel units</a></li>
134 <dt><em>Density-independent pixel (dp)</em></dt>
135 <dd>A virtual pixel unit that you should use when defining UI layout, to express layout dimensions
137 <p>The density-independent pixel is equivalent to one physical pixel on a 160 dpi screen, which is
184 a screen density of <em>hdpi</em> might have real pixel densities that are slightly different.
232 pixels), the WVGA medium-density screen has a lower screen density, meaning that each pixel is
273 scales the density-independent pixel values down and up, respectively, to fit the screen as
676 are density-indpendent pixel (dp) values and your layout dimensions should also always be defined
678 accounts for screen density (as opposed to using raw pixel resolution). For more information about
947 <li>Do not use hard coded pixel values in your application code</li>
[all …]

123