/frameworks/rs/java/tests/ImageProcessing/src/com/android/rs/image/ |
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) [all...] |
/frameworks/rs/java/tests/ImageProcessing2/src/com/android/rs/image/ |
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) [all...] |
/frameworks/rs/java/tests/ImageProcessing_jb/src/com/android/rs/image/ |
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) [all...] |
/development/samples/RenderScript/Levels/src/com/android/rs/levels/ |
levels.rs | 29 float3 pixel = convert_float4(in[0]).rgb; 30 pixel = rsMatrixMultiply(&colorMat, pixel); 31 pixel = clamp(pixel, 0.f, 255.f); 32 pixel = (pixel - inBlack) * overInWMinInB; 34 pixel = pow(pixel, (float3)gamma); 35 pixel = pixel * outWMinOutB + outBlack [all...] |
/external/chromium_org/media/base/simd/ |
convert_rgb_to_yuv_c.cc | 39 // Since the input pixel format is RGB32, there are 4 bytes per pixel. 40 const uint8* pixel = rgbframe + 4 * j; local 41 yplane[j] = clip_byte(((pixel[r] * 66 + pixel[g] * 129 + 42 pixel[b] * 25 + 128) >> 8) + 16); 44 uplane[j / 2] = clip_byte(((pixel[r] * -38 + pixel[g] * -74 + 45 pixel[b] * 112 + 128) >> 8) + 128); 46 vplane[j / 2] = clip_byte(((pixel[r] * 112 + pixel[g] * -94 71 const uint8* pixel = rgbframe + 3 * j; local [all...] |
filter_yuv_mmx.cc | 28 int pixel = 0; local 33 while (pixel < width && pixel < unaligned_width) { 34 dest[pixel] = (src0[pixel] * (256 - fraction) + 35 src1[pixel] * fraction) >> 8; 36 ++pixel; 42 const __m64* src0_64 = reinterpret_cast<const __m64*>(src0 + pixel); 43 const __m64* src1_64 = reinterpret_cast<const __m64*>(src1 + pixel); 44 __m64* dest64 = reinterpret_cast<__m64*>(dest + pixel); [all...] |
filter_yuv_sse2.cc | 21 int pixel = 0; local 26 while (pixel < width && pixel < unaligned_width) { 27 dest[pixel] = (src0[pixel] * (256 - fraction) + 28 src1[pixel] * fraction) >> 8; 29 ++pixel; 36 reinterpret_cast<const __m128i*>(src0 + pixel); 38 reinterpret_cast<const __m128i*>(src1 + pixel); 39 __m128i* dest128 = reinterpret_cast<__m128i*>(dest + pixel); [all...] |
/external/clang/test/CXX/dcl.dcl/dcl.spec/dcl.constexpr/ |
p9.cpp | 33 struct pixel { struct 36 constexpr pixel ur = { 1294, 1024 }; // ok 37 constexpr pixel origin; // expected-error {{default initialization of an object of const type 'const pixel' requires a user-provided default constructor}}
|
/external/chromium_org/chrome/browser/resources/ntp_android/ |
bookmarks_tablet.css | 6 @media only screen and (-webkit-min-device-pixel-ratio: 1.35), 7 only screen and (-webkit-max-device-pixel-ratio: 1.30) {
|
/frameworks/base/media/mca/filterpacks/native/imageproc/ |
brightness.c | 31 } Pixel; 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);
|
/external/chromium_org/chrome/browser/ui/libgtk2ui/ |
skia_utils_gtk2.cc | 71 // more complex when a pixel isn't perfectly a word of memory. 78 guchar* pixel = gdk_pixels + row + (x * 3); local 79 const unsigned char& red = pixel[0]; 80 const unsigned char& green = pixel[1]; 81 const unsigned char& blue = pixel[2]; 115 uint32 pixel = bitmap.getAddr32(0, y)[x]; local 117 int alpha = SkColorGetA(pixel); 119 SkColor unmultiplied = SkUnPreMultiply::PMColorToColor(pixel); 125 divided[i + 0] = SkColorGetR(pixel); 126 divided[i + 1] = SkColorGetG(pixel); [all...] |
/external/chromium_org/third_party/WebKit/Tools/GardeningServer/styles/ |
pixelzoomer.css | 26 .pixel-zoom-container { 42 .pixel-zoom-container > * { 51 .pixel-zoom-container .scaled-image-container {
|
/external/chromium_org/third_party/WebKit/Source/platform/image-decoders/bmp/ |
BMPImageReader.h | 192 // Returns the pixel data for the current X coordinate in a uint32_t. 196 // the pixel data will actually be set. 208 uint32_t pixel; local 209 memcpy(&pixel, &m_data->data()[m_decodedOffset + offset], 3); 211 pixel = ((pixel & 0xff00) << 8) | ((pixel & 0xff0000) >> 8) | ((pixel & 0xff000000) >> 24); 213 return pixel; 226 // in the given pixel data [all...] |
/system/core/libpixelflinger/ |
buffer.cpp | 27 uint32_t x, uint32_t y, pixel_t* pixel); 29 uint32_t x, uint32_t y, const pixel_t* pixel); 31 uint32_t x, uint32_t y, pixel_t* pixel); 33 uint32_t x, uint32_t y, pixel_t* pixel); 112 uint32_t x, uint32_t y, pixel_t* pixel) 127 pixel->s[i] = f->c[i].h - f->c[i].l; 128 if (pixel->s[i]) 129 pixel->c[i] = extract(v, f->c[i].h, f->c[i].l, f->size*8); 134 uint32_t x, uint32_t y, pixel_t* pixel) 137 pixel->c[0] = 0 [all...] |
/external/chromium_org/third_party/freetype/src/cache/ |
ftcmanag.h | 158 ((a)->pixel != 0) == ((b)->pixel != 0) && \ 159 ( (a)->pixel || \ 166 ( (q)->pixel ? 0 : ( (q)->x_res*33 ^ (q)->y_res*61 ) ) )
|
/external/freetype/src/cache/ |
ftcmanag.h | 158 ((a)->pixel != 0) == ((b)->pixel != 0) && \ 159 ( (a)->pixel || \ 166 ( (q)->pixel ? 0 : ( (q)->x_res*33 ^ (q)->y_res*61 ) ) )
|
/external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/textures/ |
TexturePixel.java | 11 * The class that stores the pixel values of a texture.
18 /** The pixel data. */
22 * Copies the values from the given pixel.
24 * @param pixel
25 * the pixel that we read from
27 public void fromPixel(TexturePixel pixel) {
28 this.intensity = pixel.intensity;
29 this.red = pixel.red;
30 this.green = pixel.green;
31 this.blue = pixel.blue; [all...] |
/frameworks/base/tests/touchlag/ |
touchlag.cpp | 50 void clearBuffer(Buffer* buf, uint32_t pixel) { 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) { 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) { 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) { 99 android_memset32(bits, pixel, W*4); 105 void drawCircle(Buffer* buf, uint32_t pixel, [all...] |
/external/chromium_org/ui/gfx/x/ |
x11_types.cc | 104 const uint32_t pixel = *(bitmap_in++); local 105 bitmap32[0] = (pixel >> 16) & 0xff; // Red 106 bitmap32[1] = (pixel >> 8) & 0xff; // Green 107 bitmap32[2] = pixel & 0xff; // Blue 108 bitmap32[3] = (pixel >> 24) & 0xff; // Alpha 130 const uint32_t pixel = *(bitmap_in++); local 131 uint16_t out_pixel = ((pixel >> 8) & 0xf800) | 132 ((pixel >> 5) & 0x07e0) | 133 ((pixel >> 3) & 0x001f);
|
/external/chromium_org/third_party/skia/src/core/ |
SkConfig8888.cpp | 49 * convert_pixel<OUT_CFG, IN_CFG converts a pixel value from one Config8888 to 57 inline uint32_t convert_pixel(uint32_t pixel) { 59 unpack_config8888<IN_A_IDX, IN_R_IDX, IN_G_IDX, IN_B_IDX>(pixel, &a, &r, &g, &b); 80 inline uint32_t convert_pixel(uint32_t pixel) { 84 true, SK_NATIVE_A_IDX, SK_NATIVE_R_IDX, SK_NATIVE_G_IDX, SK_NATIVE_B_IDX>(pixel); 88 false, SK_NATIVE_A_IDX, SK_NATIVE_R_IDX, SK_NATIVE_G_IDX, SK_NATIVE_B_IDX>(pixel); 92 true, 3, 2, 1, 0>(pixel); 96 false, 3, 2, 1, 0>(pixel); 100 true, 3, 0, 1, 2>(pixel); 104 false, 3, 0, 1, 2>(pixel); [all...] |
/external/skia/src/core/ |
SkConfig8888.cpp | 49 * convert_pixel<OUT_CFG, IN_CFG converts a pixel value from one Config8888 to 57 inline uint32_t convert_pixel(uint32_t pixel) { 59 unpack_config8888<IN_A_IDX, IN_R_IDX, IN_G_IDX, IN_B_IDX>(pixel, &a, &r, &g, &b); 80 inline uint32_t convert_pixel(uint32_t pixel) { 84 true, SK_NATIVE_A_IDX, SK_NATIVE_R_IDX, SK_NATIVE_G_IDX, SK_NATIVE_B_IDX>(pixel); 88 false, SK_NATIVE_A_IDX, SK_NATIVE_R_IDX, SK_NATIVE_G_IDX, SK_NATIVE_B_IDX>(pixel); 92 true, 3, 2, 1, 0>(pixel); 96 false, 3, 2, 1, 0>(pixel); 100 true, 3, 0, 1, 2>(pixel); 104 false, 3, 0, 1, 2>(pixel); [all...] |
/frameworks/native/services/surfaceflinger/tests/ |
Transaction_test.cpp | 41 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[2]) [all...] |
/external/chromium_org/third_party/mesa/src/src/gallium/state_trackers/xa/ |
xa_priv.h | 168 xa_pixel_to_float4(uint32_t pixel, float *color) 172 a = (pixel >> 24) & 0xff; 173 r = (pixel >> 16) & 0xff; 174 g = (pixel >> 8) & 0xff; 175 b = (pixel >> 0) & 0xff; 183 xa_pixel_to_float4_a8(uint32_t pixel, float *color) 187 a = (pixel >> 24) & 0xff;
|
/external/mesa3d/src/gallium/state_trackers/xa/ |
xa_priv.h | 168 xa_pixel_to_float4(uint32_t pixel, float *color) 172 a = (pixel >> 24) & 0xff; 173 r = (pixel >> 16) & 0xff; 174 g = (pixel >> 8) & 0xff; 175 b = (pixel >> 0) & 0xff; 183 xa_pixel_to_float4_a8(uint32_t pixel, float *color) 187 a = (pixel >> 24) & 0xff;
|
/system/core/libpixelflinger/codeflinger/ |
GGLAssembler.cpp | 245 // load the framebuffer pixel 253 pixel_t pixel; 258 pixel = directTex ? parts.texel[directTex-1] : parts.iterated; 259 pixel.flags &= ~CORRUPTIBLE; 271 // allocate a register for the resulting pixel 272 pixel.setTo(regs.obtain(), &mCbFormat, FIRST); 274 build_component(pixel, parts, GGLFormat::ALPHA, regs); 282 build_component(pixel, parts, GGLFormat::RED, regs); 283 build_component(pixel, parts, GGLFormat::GREEN, regs); 284 build_component(pixel, parts, GGLFormat::BLUE, regs) [all...] |