/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_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/third_party/angle/tests/angle_tests/ |
ANGLETest.h | 28 GLubyte pixel[4]; \ 29 glReadPixels((x), (y), 1, 1, GL_RGBA, GL_UNSIGNED_BYTE, pixel); \ 31 EXPECT_EQ((r), pixel[0]); \ 32 EXPECT_EQ((g), pixel[1]); \ 33 EXPECT_EQ((b), pixel[2]); \ 34 EXPECT_EQ((a), pixel[3]); \
|
SRGBTextureTest.cpp | 35 GLubyte pixel[3] = { 0 }; local 36 glTexImage2D(GL_TEXTURE_2D, 0, GL_SRGB, 1, 1, 0, GL_SRGB, GL_UNSIGNED_BYTE, pixel); 41 glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, 0, 0, GL_SRGB, GL_UNSIGNED_BYTE, pixel); 63 GLubyte pixel[4] = { 0 }; local 64 glTexImage2D(GL_TEXTURE_2D, 0, GL_SRGB_ALPHA_EXT, 1, 1, 0, GL_SRGB_ALPHA_EXT, GL_UNSIGNED_BYTE, pixel); 69 glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, 0, 0, GL_SRGB_ALPHA_EXT, GL_UNSIGNED_BYTE, pixel);
|
/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 | 68 // more complex when a pixel isn't perfectly a word of memory. 75 guchar* pixel = gdk_pixels + row + (x * 3); local 76 const unsigned char& red = pixel[0]; 77 const unsigned char& green = pixel[1]; 78 const unsigned char& blue = pixel[2]; 112 uint32 pixel = bitmap.getAddr32(0, y)[x]; local 114 int alpha = SkColorGetA(pixel); 116 SkColor unmultiplied = SkUnPreMultiply::PMColorToColor(pixel); 122 divided[i + 0] = SkColorGetR(pixel); 123 divided[i + 1] = SkColorGetG(pixel); [all...] |
/external/chromium_org/third_party/WebKit/Source/platform/image-decoders/bmp/ |
BMPImageReader.h | 187 // Returns the pixel data for the current X coordinate in a uint32_t. 191 // the pixel data will actually be set. 203 uint32_t pixel; local 204 memcpy(&pixel, &m_data->data()[m_decodedOffset + offset], 3); 206 pixel = ((pixel & 0xff00) << 8) | ((pixel & 0xff0000) >> 8) | ((pixel & 0xff000000) >> 24); 208 return pixel; 221 // 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/chrome/browser/resources/chromeos/first_run/ |
preload.css | 13 @media all and (-webkit-max-device-pixel-ratio: 1.5) { 34 @media all and (-webkit-min-device-pixel-ratio: 1.5) {
|
/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 ) ) )
|
/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 | 119 const uint32_t pixel = *(bitmap_in++); local 120 bitmap32[0] = (pixel >> 16) & 0xff; // Red 121 bitmap32[1] = (pixel >> 8) & 0xff; // Green 122 bitmap32[2] = pixel & 0xff; // Blue 123 bitmap32[3] = (pixel >> 24) & 0xff; // Alpha 145 const uint32_t pixel = *(bitmap_in++); local 146 uint16_t out_pixel = ((pixel >> 8) & 0xf800) | 147 ((pixel >> 5) & 0x07e0) | 148 ((pixel >> 3) & 0x001f);
|
/external/chromium_org/tools/telemetry/telemetry/core/ |
bitmaptools.cc | 141 // Points at the top-left pixel in |pixels|. 162 bool PixelsEqual(const unsigned char* pixel, int color, int tolerance) { 164 return PixelsEqual(pixel, pixel2, tolerance); 182 for (const unsigned char* pixel = row; pixel < row + bmp.row_size; 183 pixel += bmp.pixel_stride) { 184 if (ignore_color >= 0 && PixelsEqual(pixel, ignore_color, tolerance)) 186 ++(counts[256 * 0 + pixel[0]]); 187 ++(counts[256 * 1 + pixel[1]]); 188 ++(counts[256 * 2 + pixel[2]]) [all...] |
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
DrawableTestingUtils.java | 33 final int pixel = b.getPixel(x, y); local 35 return pixel;
|
/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...] |
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ |
saturation.rs | 150 float4 pixel = rsUnpackColor8888(in); 152 float4 wsum = pixel; 156 pixel.xyz = rsMatrixMultiply(&colorMatrix_min ,pixel.xyz) * (1 - t) + 157 t * (rsMatrixMultiply(&colorMatrix_max ,pixel.xyz)); 159 pixel.a = 1.0f; 160 return rsPackColorTo8888(clamp(pixel, 0.f, 1.0f));
|