Searched refs:pixel (Results 1 - 25 of 246) sorted by relevance

12345678910

/external/chromium_org/media/base/simd/
H A Dconvert_rgb_to_yuv_c.cc39 // 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[
71 const uint8* pixel = rgbframe + 3 * j; local
[all...]
H A Dfilter_yuv_sse2.cc21 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...]
H A 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, an
[all...]
/external/clang/test/CXX/dcl.dcl/dcl.spec/dcl.constexpr/
H A Dp9.cpp33 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}}
H A Dp1.cpp103 constexpr struct pixel { // expected-error {{struct cannot be marked constexpr}} struct
106 constexpr pixel(int);
109 constexpr pixel::pixel(int a) function in class:pixel
113 constexpr pixel small(2); // expected-error {{must be initialized by a constant expression}} expected-note {{in call to 'pixel(2)'}}
119 constexpr pixel large(4);
/external/chromium_org/chrome/browser/ui/libgtk2ui/
H A Dskia_utils_gtk2.cc68 // 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/angle/tests/angle_tests/
H A 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]); \
H A DSRGBTextureTest.cpp35 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);
H A DMaxTextureSizeTest.cpp108 GLubyte* pixel = data.data() + ((y * textureWidth + x) * 4); local
111 pixel[0] = static_cast<GLubyte>((float(x) / textureWidth) * 255);
112 pixel[1] = static_cast<GLubyte>((float(y) / textureHeight) * 255);
113 pixel[2] = 0;
114 pixel[3] = 255;
168 GLubyte* pixel = data.data() + ((y * textureWidth + x) * 4); local
171 pixel[0] = static_cast<GLubyte>((float(x) / textureWidth) * 255);
172 pixel[1] = static_cast<GLubyte>((float(y) / textureHeight) * 255);
173 pixel[2] = 0;
174 pixel[
[all...]
/external/chromium_org/third_party/WebKit/Source/platform/image-decoders/bmp/
H A DBMPImageReader.h187 // 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 dat
222 getComponent(uint32_t pixel, int component) const argument
[all...]
/external/chromium_org/chrome/browser/resources/chromeos/first_run/
H A Dpreload.css13 @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/
H A Dftcmanag.h158 ((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/
H A Dftcmanag.h158 ((a)->pixel != 0) == ((b)->pixel != 0) && \
159 ( (a)->pixel || \
166 ( (q)->pixel ? 0 : ( (q)->x_res*33 ^ (q)->y_res*61 ) ) )
/external/chromium_org/ui/gfx/x/
H A Dx11_types.cc119 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/
H A Dbitmaptools.cc141 // Points at the top-left pixel in |pixels|.
162 bool PixelsEqual(const unsigned char* pixel, int color, int tolerance) { argument
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[
[all...]
/external/chromium_org/third_party/mesa/src/src/gallium/state_trackers/xa/
H A Dxa_priv.h168 xa_pixel_to_float4(uint32_t pixel, float *color) argument
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) argument
187 a = (pixel >> 24) & 0xff;
/external/mesa3d/src/gallium/state_trackers/xa/
H A Dxa_priv.h168 xa_pixel_to_float4(uint32_t pixel, float *color) argument
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) argument
187 a = (pixel >> 24) & 0xff;
/external/libpng/contrib/gregbook/
H A Drpng2-x.c26 - 1.10: added support for non-default visuals; fixed X pixel-conversion
997 /* to avoid testing the byte order every pixel (or doubling the size of
1065 ulg pixel; local
1285 pixel = (red << RShift) |
1289 *dest++ = (char)((pixel >> 24) & 0xff);
1290 *dest++ = (char)((pixel >> 16) & 0xff);
1291 *dest++ = (char)((pixel >> 8) & 0xff);
1292 *dest++ = (char)( pixel & 0xff);
1299 pixel = (red << RShift) |
1305 *dest++ = (char)((pixel >> 1
1357 ulg i, pixel; local
1598 ulg pixel; local
[all...]
/external/chromium_org/third_party/mesa/src/src/mesa/drivers/x11/
H A Dxm_line.c52 * Render an array of points into a pixmap, any pixel format.
66 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;
422 unsigned long pixel = xmesa_color_to_pixel(ctx, local
[all...]
/external/mesa3d/src/mesa/drivers/x11/
H A Dxm_line.c52 * Render an array of points into a pixmap, any pixel format.
66 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;
422 unsigned long pixel = xmesa_color_to_pixel(ctx, local
[all...]
/external/chromium_org/third_party/mesa/src/src/mesa/swrast/
H A Ds_clear.c78 TYPE pixel, pixelMask; \
79 _mesa_pack_float_rgba_row(rb->Format, 1, clearColor, &pixel); \
82 pixel &= pixelMask; \
89 row[j] = (row[j] & pixelMask) | pixel; \
94 row[j] = pixel; \
105 TYPE pixel[N], pixelMask[N]; \
107 _mesa_pack_float_rgba_row(rb->Format, 1, clearColor, pixel); \
111 pixel[k] &= pixelMask[k]; \
121 (row[j * N + k] & pixelMask[k]) | pixel[k]; \
128 row[j * N + k] = pixel[
[all...]
/external/mesa3d/src/mesa/swrast/
H A Ds_clear.c78 TYPE pixel, pixelMask; \
79 _mesa_pack_float_rgba_row(rb->Format, 1, clearColor, &pixel); \
82 pixel &= pixelMask; \
89 row[j] = (row[j] & pixelMask) | pixel; \
94 row[j] = pixel; \
105 TYPE pixel[N], pixelMask[N]; \
107 _mesa_pack_float_rgba_row(rb->Format, 1, clearColor, pixel); \
111 pixel[k] &= pixelMask[k]; \
121 (row[j * N + k] & pixelMask[k]) | pixel[k]; \
128 row[j * N + k] = pixel[
[all...]
/external/qemu/distrib/sdl-1.2.15/src/video/
H A DSDL_stretch.c159 type pixel = 0; \
165 pixel = *src++; \
168 *dst++ = pixel; \
181 Uint8 pixel[3] = { 0, 0, 0 }; local
187 pixel[0] = *src++;
188 pixel[1] = *src++;
189 pixel[2] = *src++;
192 *dst++ = pixel[0];
193 *dst++ = pixel[1];
194 *dst++ = pixel[
[all...]
/external/chromium_org/third_party/WebKit/Source/platform/image-decoders/png/
H A DPNGImageDecoder.cpp501 png_bytep pixel = row; local
504 for (int x = 0; x < width; ++x, pixel += 4) {
505 buffer.setRGBAPremultiply(address++, pixel[0], pixel[1], pixel[2], pixel[3]);
506 alphaMask &= pixel[3];
509 for (int x = 0; x < width; ++x, pixel += 4) {
510 buffer.setRGBARaw(address++, pixel[0], pixel[
[all...]
/external/chromium_org/third_party/angle/samples/angle/sample_util/
H A Dtga_utils.cpp88 Byte4 pixel; local
89 pixel[0] = (pixelComponentCount > 2) ? buffer[pixelIdx + 2] : 0;
90 pixel[2] = (pixelComponentCount > 0) ? buffer[pixelIdx + 0] : 0;
91 pixel[1] = (pixelComponentCount > 1) ? buffer[pixelIdx + 1] : 0;
92 pixel[3] = (pixelComponentCount > 3) ? buffer[pixelIdx + 3] : 255;
94 image->data.push_back(pixel);

Completed in 738 milliseconds

12345678910