Home
last modified time | relevance | path

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

12345678910>>...20

/external/chromium_org/media/base/simd/
Dconvert_rgb_to_yuv_c.cc40 const uint8* pixel = rgbframe + 4 * j; in ConvertRGB32ToYUV_C() local
41 yplane[j] = clip_byte(((pixel[r] * 66 + pixel[g] * 129 + in ConvertRGB32ToYUV_C()
42 pixel[b] * 25 + 128) >> 8) + 16); in ConvertRGB32ToYUV_C()
44 uplane[j / 2] = clip_byte(((pixel[r] * -38 + pixel[g] * -74 + in ConvertRGB32ToYUV_C()
45 pixel[b] * 112 + 128) >> 8) + 128); in ConvertRGB32ToYUV_C()
46 vplane[j / 2] = clip_byte(((pixel[r] * 112 + pixel[g] * -94 + in ConvertRGB32ToYUV_C()
47 pixel[b] * -18 + 128) >> 8) + 128); in ConvertRGB32ToYUV_C()
71 const uint8* pixel = rgbframe + 3 * j; in ConvertRGB24ToYUV_C() local
72 yplane[j] = clip_byte(((pixel[2] * 66 + pixel[1] * 129 + in ConvertRGB24ToYUV_C()
73 pixel[0] * 25 + 128) >> 8) + 16); in ConvertRGB24ToYUV_C()
[all …]
Dfilter_yuv_sse2.cc21 int pixel = 0; in FilterYUVRows_SSE2() local
26 while (pixel < width && pixel < unaligned_width) { in FilterYUVRows_SSE2()
27 dest[pixel] = (src0[pixel] * (256 - fraction) + in FilterYUVRows_SSE2()
28 src1[pixel] * fraction) >> 8; in FilterYUVRows_SSE2()
29 ++pixel; in FilterYUVRows_SSE2()
36 reinterpret_cast<const __m128i*>(src0 + pixel); in FilterYUVRows_SSE2()
38 reinterpret_cast<const __m128i*>(src1 + pixel); in FilterYUVRows_SSE2()
39 __m128i* dest128 = reinterpret_cast<__m128i*>(dest + pixel); in FilterYUVRows_SSE2()
62 pixel += 16; in FilterYUVRows_SSE2()
65 while (pixel < width) { in FilterYUVRows_SSE2()
[all …]
Dconvert_rgb_to_yuv_ssse3.inc9 ; consists of three parts: converting one ARGB pixel to YUV pixels, converting
16 ; // Convert one ARGB pixel to one Y pixel, one U pixel, and one V pixel.
21 ; // Convert two ARGB pixels to two Y pixels, one U pixel, and one V pixel.
47 ; When the width is odd, We read the rightmost ARGB pixel and convert its
48 ; colorspace to YUV. This code stores one Y pixel, one U pixel, and one V
49 ; pixel.
53 ; Read one ARGB (or RGB) pixel.
56 ; Calculate y[0] from one RGB pixel read above.
61 ; Calculate u[0] from one RGB pixel read above. If this is an odd line, the
62 ; output pixel contains the U value calculated in the previous call. We also
[all …]
/external/pixman/pixman/
Dpixman-access.c251 convert_channel (uint32_t pixel, uint32_t def_value, in convert_channel() argument
258 v = unorm_to_unorm (pixel >> from_shift, n_from_bits, n_to_bits); in convert_channel()
268 convert_pixel (pixman_format_code_t from, pixman_format_code_t to, uint32_t pixel) in convert_pixel() argument
277 a = convert_channel (pixel, ~0, in convert_pixel()
281 r = convert_channel (pixel, 0, in convert_pixel()
285 g = convert_channel (pixel, 0, in convert_pixel()
289 b = convert_channel (pixel, 0, in convert_pixel()
299 uint32_t pixel) in convert_pixel_to_a8r8g8b8() argument
304 return image->bits.indexed->rgba[pixel]; in convert_pixel_to_a8r8g8b8()
308 return convert_pixel (format, PIXMAN_a8r8g8b8, pixel); in convert_pixel_to_a8r8g8b8()
[all …]
/external/mesa3d/src/mesa/drivers/x11/
Dxm_line.c66 unsigned long pixel = xmesa_color_to_pixel( xmesa,
70 XMesaSetForeground( dpy, gc, pixel );
134 unsigned long pixel; \
135 PACK_TRUECOLOR( pixel, color[0], color[1], color[2] );
137 #define PLOT(X,Y) XMesaPutPixel(xrb->ximage, X, YFLIP(xrb, Y), pixel );
149 GLuint pixel = PACK_8A8B8G8R(color[0], color[1], color[2], color[3]);
154 #define PLOT(X,Y) *pixelPtr = pixel;
166 GLuint pixel = PACK_8A8R8G8B(color[0], color[1], color[2], color[3]);
171 #define PLOT(X,Y) *pixelPtr = pixel;
183 GLuint pixel = PACK_8R8G8B( color[0], color[1], color[2] );
[all …]
/external/chromium_org/third_party/mesa/src/src/mesa/drivers/x11/
Dxm_line.c66 unsigned long pixel = xmesa_color_to_pixel( xmesa,
70 XMesaSetForeground( dpy, gc, pixel );
134 unsigned long pixel; \
135 PACK_TRUECOLOR( pixel, color[0], color[1], color[2] );
137 #define PLOT(X,Y) XMesaPutPixel(xrb->ximage, X, YFLIP(xrb, Y), pixel );
149 GLuint pixel = PACK_8A8B8G8R(color[0], color[1], color[2], color[3]);
154 #define PLOT(X,Y) *pixelPtr = pixel;
166 GLuint pixel = PACK_8A8R8G8B(color[0], color[1], color[2], color[3]);
171 #define PLOT(X,Y) *pixelPtr = pixel;
183 GLuint pixel = PACK_8R8G8B( color[0], color[1], color[2] );
[all …]
/external/chromium_org/chrome/browser/ui/libgtk2ui/
Dskia_utils_gtk2.cc75 guchar* pixel = gdk_pixels + row + (x * 3); in GdkPixbufToImageSkia() local
76 const unsigned char& red = pixel[0]; in GdkPixbufToImageSkia()
77 const unsigned char& green = pixel[1]; in GdkPixbufToImageSkia()
78 const unsigned char& blue = pixel[2]; in GdkPixbufToImageSkia()
112 uint32 pixel = bitmap.getAddr32(0, y)[x]; in GdkPixbufFromSkBitmap() local
114 int alpha = SkColorGetA(pixel); in GdkPixbufFromSkBitmap()
116 SkColor unmultiplied = SkUnPreMultiply::PMColorToColor(pixel); in GdkPixbufFromSkBitmap()
122 divided[i + 0] = SkColorGetR(pixel); in GdkPixbufFromSkBitmap()
123 divided[i + 1] = SkColorGetG(pixel); in GdkPixbufFromSkBitmap()
124 divided[i + 2] = SkColorGetB(pixel); in GdkPixbufFromSkBitmap()
/external/chromium_org/third_party/WebKit/Source/platform/image-decoders/bmp/
DBMPImageReader.h203 uint32_t pixel; in readCurrentPixel() local
204 memcpy(&pixel, &m_data->data()[m_decodedOffset + offset], 3); in readCurrentPixel()
206pixel = ((pixel & 0xff00) << 8) | ((pixel & 0xff0000) >> 8) | ((pixel & 0xff000000) >> 24); in readCurrentPixel()
208 return pixel; in readCurrentPixel()
222 inline unsigned getComponent(uint32_t pixel, int component) const in getComponent() argument
224 uint8_t value = (pixel & m_bitMasks[component]) >> m_bitShiftsRight[component]; in getComponent()
228 inline unsigned getAlpha(uint32_t pixel) const in getAlpha() argument
231 return m_bitMasks[3] ? getComponent(pixel, 3) : 0xff; in getAlpha()
/external/chromium_org/tools/telemetry/telemetry/core/
Dbitmaptools.cc162 bool PixelsEqual(const unsigned char* pixel, int color, int tolerance) { in PixelsEqual() argument
164 return PixelsEqual(pixel, pixel2, tolerance); in PixelsEqual()
182 for (const unsigned char* pixel = row; pixel < row + bmp.row_size; in Histogram() local
183 pixel += bmp.pixel_stride) { in Histogram()
184 if (ignore_color >= 0 && PixelsEqual(pixel, ignore_color, tolerance)) in Histogram()
186 ++(counts[256 * 0 + pixel[0]]); in Histogram()
187 ++(counts[256 * 1 + pixel[1]]); in Histogram()
188 ++(counts[256 * 2 + pixel[2]]); in Histogram()
217 for (const unsigned char* pixel = row; pixel < row + bmp.row_size; in BoundingBox() local
218 pixel += bmp.pixel_stride, ++x) { in BoundingBox()
[all …]
/external/libpng/contrib/gregbook/
Drpng2-x.c1065 ulg pixel; in rpng2_x_load_bg_image() local
1285 pixel = (red << RShift) | in rpng2_x_load_bg_image()
1289 *dest++ = (char)((pixel >> 24) & 0xff); in rpng2_x_load_bg_image()
1290 *dest++ = (char)((pixel >> 16) & 0xff); in rpng2_x_load_bg_image()
1291 *dest++ = (char)((pixel >> 8) & 0xff); in rpng2_x_load_bg_image()
1292 *dest++ = (char)( pixel & 0xff); in rpng2_x_load_bg_image()
1299 pixel = (red << RShift) | in rpng2_x_load_bg_image()
1305 *dest++ = (char)((pixel >> 16) & 0xff); in rpng2_x_load_bg_image()
1306 *dest++ = (char)((pixel >> 8) & 0xff); in rpng2_x_load_bg_image()
1307 *dest++ = (char)( pixel & 0xff); in rpng2_x_load_bg_image()
[all …]
Drpng-x.c692 ulg pixel; in rpng_x_display_image() local
717 pixel = (red << RShift) | in rpng_x_display_image()
722 *dest++ = (char)((pixel >> 24) & 0xff); in rpng_x_display_image()
723 *dest++ = (char)((pixel >> 16) & 0xff); in rpng_x_display_image()
724 *dest++ = (char)((pixel >> 8) & 0xff); in rpng_x_display_image()
725 *dest++ = (char)( pixel & 0xff); in rpng_x_display_image()
730 pixel = (red & RMask) | (green & GMask) | (blue & BMask); in rpng_x_display_image()
732 *dest++ = (char)((pixel >> 24) & 0xff); in rpng_x_display_image()
733 *dest++ = (char)((pixel >> 16) & 0xff); in rpng_x_display_image()
734 *dest++ = (char)((pixel >> 8) & 0xff); in rpng_x_display_image()
[all …]
/external/chromium_org/third_party/mesa/src/src/mesa/swrast/
Ds_clear.c78 TYPE pixel, pixelMask; \ in clear_rgba_buffer()
79 _mesa_pack_float_rgba_row(rb->Format, 1, clearColor, &pixel); \ in clear_rgba_buffer()
82 pixel &= pixelMask; \ in clear_rgba_buffer()
89 row[j] = (row[j] & pixelMask) | pixel; \ in clear_rgba_buffer()
94 row[j] = pixel; \ in clear_rgba_buffer()
105 TYPE pixel[N], pixelMask[N]; \ in clear_rgba_buffer()
107 _mesa_pack_float_rgba_row(rb->Format, 1, clearColor, pixel); \ in clear_rgba_buffer()
111 pixel[k] &= pixelMask[k]; \ in clear_rgba_buffer()
121 (row[j * N + k] & pixelMask[k]) | pixel[k]; \ in clear_rgba_buffer()
128 row[j * N + k] = pixel[k]; \ in clear_rgba_buffer()
/external/mesa3d/src/mesa/swrast/
Ds_clear.c78 TYPE pixel, pixelMask; \ in clear_rgba_buffer()
79 _mesa_pack_float_rgba_row(rb->Format, 1, clearColor, &pixel); \ in clear_rgba_buffer()
82 pixel &= pixelMask; \ in clear_rgba_buffer()
89 row[j] = (row[j] & pixelMask) | pixel; \ in clear_rgba_buffer()
94 row[j] = pixel; \ in clear_rgba_buffer()
105 TYPE pixel[N], pixelMask[N]; \ in clear_rgba_buffer()
107 _mesa_pack_float_rgba_row(rb->Format, 1, clearColor, pixel); \ in clear_rgba_buffer()
111 pixel[k] &= pixelMask[k]; \ in clear_rgba_buffer()
121 (row[j * N + k] & pixelMask[k]) | pixel[k]; \ in clear_rgba_buffer()
128 row[j * N + k] = pixel[k]; \ in clear_rgba_buffer()
/external/chromium_org/ui/gfx/x/
Dx11_types.cc119 const uint32_t pixel = *(bitmap_in++); in PutARGBImage() local
120 bitmap32[0] = (pixel >> 16) & 0xff; // Red in PutARGBImage()
121 bitmap32[1] = (pixel >> 8) & 0xff; // Green in PutARGBImage()
122 bitmap32[2] = pixel & 0xff; // Blue in PutARGBImage()
123 bitmap32[3] = (pixel >> 24) & 0xff; // Alpha in PutARGBImage()
145 const uint32_t pixel = *(bitmap_in++); in PutARGBImage() local
146 uint16_t out_pixel = ((pixel >> 8) & 0xf800) | in PutARGBImage()
147 ((pixel >> 5) & 0x07e0) | in PutARGBImage()
148 ((pixel >> 3) & 0x001f); in PutARGBImage()
/external/chromium_org/third_party/WebKit/Source/platform/image-decoders/png/
DPNGImageDecoder.cpp501 png_bytep pixel = row; in rowAvailable() local
504 for (int x = 0; x < width; ++x, pixel += 4) { in rowAvailable()
505 buffer.setRGBAPremultiply(address++, pixel[0], pixel[1], pixel[2], pixel[3]); in rowAvailable()
506 alphaMask &= pixel[3]; in rowAvailable()
509 for (int x = 0; x < width; ++x, pixel += 4) { in rowAvailable()
510 buffer.setRGBARaw(address++, pixel[0], pixel[1], pixel[2], pixel[3]); in rowAvailable()
511 alphaMask &= pixel[3]; in rowAvailable()
515 for (int x = 0; x < width; ++x, pixel += 3) { in rowAvailable()
516 buffer.setRGBARaw(address++, pixel[0], pixel[1], pixel[2], 255); in rowAvailable()
/external/chromium_org/third_party/angle/tests/angle_tests/
DANGLETest.h28 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]); \
DSRGBTextureTest.cpp35 GLubyte pixel[3] = { 0 }; in TEST_F() local
36 glTexImage2D(GL_TEXTURE_2D, 0, GL_SRGB, 1, 1, 0, GL_SRGB, GL_UNSIGNED_BYTE, pixel); in TEST_F()
41 glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, 0, 0, GL_SRGB, GL_UNSIGNED_BYTE, pixel); in TEST_F()
63 GLubyte pixel[4] = { 0 }; in TEST_F() local
64 …xImage2D(GL_TEXTURE_2D, 0, GL_SRGB_ALPHA_EXT, 1, 1, 0, GL_SRGB_ALPHA_EXT, GL_UNSIGNED_BYTE, pixel); in TEST_F()
69 glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, 0, 0, GL_SRGB_ALPHA_EXT, GL_UNSIGNED_BYTE, pixel); in TEST_F()
DMaxTextureSizeTest.cpp108 GLubyte* pixel = data.data() + ((y * textureWidth + x) * 4); in TEST_F() local
111 pixel[0] = static_cast<GLubyte>((float(x) / textureWidth) * 255); in TEST_F()
112 pixel[1] = static_cast<GLubyte>((float(y) / textureHeight) * 255); in TEST_F()
113 pixel[2] = 0; in TEST_F()
114 pixel[3] = 255; in TEST_F()
168 GLubyte* pixel = data.data() + ((y * textureWidth + x) * 4); in TEST_F() local
171 pixel[0] = static_cast<GLubyte>((float(x) / textureWidth) * 255); in TEST_F()
172 pixel[1] = static_cast<GLubyte>((float(y) / textureHeight) * 255); in TEST_F()
173 pixel[2] = 0; in TEST_F()
174 pixel[3] = 255; in TEST_F()
/external/qemu/distrib/sdl-1.2.15/src/video/
DSDL_stretch.c159 type pixel = 0; \
165 pixel = *src++; \
168 *dst++ = pixel; \
181 Uint8 pixel[3] = { 0, 0, 0 }; in DEFINE_COPY_ROW() local
187 pixel[0] = *src++; in DEFINE_COPY_ROW()
188 pixel[1] = *src++; in DEFINE_COPY_ROW()
189 pixel[2] = *src++; in DEFINE_COPY_ROW()
192 *dst++ = pixel[0]; in DEFINE_COPY_ROW()
193 *dst++ = pixel[1]; in DEFINE_COPY_ROW()
194 *dst++ = pixel[2]; in DEFINE_COPY_ROW()
/external/chromium_org/pdf/
Ddraw_utils.cc16 inline uint8 GetBlue(const uint32& pixel) { in GetBlue() argument
17 return static_cast<uint8>(pixel & 0xFF); in GetBlue()
20 inline uint8 GetGreen(const uint32& pixel) { in GetGreen() argument
21 return static_cast<uint8>((pixel >> 8) & 0xFF); in GetGreen()
24 inline uint8 GetRed(const uint32& pixel) { in GetRed() argument
25 return static_cast<uint8>((pixel >> 16) & 0xFF); in GetRed()
28 inline uint8 GetAlpha(const uint32& pixel) { in GetAlpha() argument
29 return static_cast<uint8>((pixel >> 24) & 0xFF); in GetAlpha()
123 uint32_t* pixel = origin_pixel; in GradientFill() local
125 *pixel = colors[y]; in GradientFill()
[all …]
/external/webp/src/dsp/
Dlossless_neon.c33 uint8x16x4_t pixel = vld4q_u8((uint8_t*)src); in ConvertBGRAToRGBA() local
35 const uint8x16_t tmp = pixel.val[0]; in ConvertBGRAToRGBA()
36 pixel.val[0] = pixel.val[2]; in ConvertBGRAToRGBA()
37 pixel.val[2] = tmp; in ConvertBGRAToRGBA()
38 vst4q_u8(dst, pixel); in ConvertBGRAToRGBA()
48 const uint8x16x4_t pixel = vld4q_u8((uint8_t*)src); in ConvertBGRAToBGR() local
49 const uint8x16x3_t tmp = { { pixel.val[0], pixel.val[1], pixel.val[2] } }; in ConvertBGRAToBGR()
60 const uint8x16x4_t pixel = vld4q_u8((uint8_t*)src); in ConvertBGRAToRGB() local
61 const uint8x16x3_t tmp = { { pixel.val[2], pixel.val[1], pixel.val[0] } }; in ConvertBGRAToRGB()
/external/chromium_org/third_party/libwebp/dsp/
Dlossless_neon.c33 uint8x16x4_t pixel = vld4q_u8((uint8_t*)src); in ConvertBGRAToRGBA() local
35 const uint8x16_t tmp = pixel.val[0]; in ConvertBGRAToRGBA()
36 pixel.val[0] = pixel.val[2]; in ConvertBGRAToRGBA()
37 pixel.val[2] = tmp; in ConvertBGRAToRGBA()
38 vst4q_u8(dst, pixel); in ConvertBGRAToRGBA()
48 const uint8x16x4_t pixel = vld4q_u8((uint8_t*)src); in ConvertBGRAToBGR() local
49 const uint8x16x3_t tmp = { { pixel.val[0], pixel.val[1], pixel.val[2] } }; in ConvertBGRAToBGR()
60 const uint8x16x4_t pixel = vld4q_u8((uint8_t*)src); in ConvertBGRAToRGB() local
61 const uint8x16x3_t tmp = { { pixel.val[2], pixel.val[1], pixel.val[0] } }; in ConvertBGRAToRGB()
/external/chromium_org/third_party/mesa/src/src/gallium/state_trackers/xa/
Dxa_priv.h168 xa_pixel_to_float4(uint32_t pixel, float *color) in xa_pixel_to_float4() argument
172 a = (pixel >> 24) & 0xff; in xa_pixel_to_float4()
173 r = (pixel >> 16) & 0xff; in xa_pixel_to_float4()
174 g = (pixel >> 8) & 0xff; in xa_pixel_to_float4()
175 b = (pixel >> 0) & 0xff; in xa_pixel_to_float4()
183 xa_pixel_to_float4_a8(uint32_t pixel, float *color) in xa_pixel_to_float4_a8() argument
187 a = (pixel >> 24) & 0xff; in xa_pixel_to_float4_a8()
/external/mesa3d/src/gallium/state_trackers/xa/
Dxa_priv.h168 xa_pixel_to_float4(uint32_t pixel, float *color) in xa_pixel_to_float4() argument
172 a = (pixel >> 24) & 0xff; in xa_pixel_to_float4()
173 r = (pixel >> 16) & 0xff; in xa_pixel_to_float4()
174 g = (pixel >> 8) & 0xff; in xa_pixel_to_float4()
175 b = (pixel >> 0) & 0xff; in xa_pixel_to_float4()
183 xa_pixel_to_float4_a8(uint32_t pixel, float *color) in xa_pixel_to_float4_a8() argument
187 a = (pixel >> 24) & 0xff; in xa_pixel_to_float4_a8()
/external/clang/test/CXX/dcl.dcl/dcl.spec/dcl.constexpr/
Dp1.cpp103 constexpr struct pixel { // expected-error {{struct cannot be marked constexpr}} struct
106 constexpr pixel(int); argument
109 constexpr pixel::pixel(int a) in pixel() function in pixel
113 constexpr pixel small(2); // expected-error {{must be initialized by a constant expression}} expect…
119 constexpr pixel large(4);

12345678910>>...20