Home
last modified time | relevance | path

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

12345678910>>...16

/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_mmx.cc28 int pixel = 0; in FilterYUVRows_MMX() local
33 while (pixel < width && pixel < unaligned_width) { in FilterYUVRows_MMX()
34 dest[pixel] = (src0[pixel] * (256 - fraction) + in FilterYUVRows_MMX()
35 src1[pixel] * fraction) >> 8; in FilterYUVRows_MMX()
36 ++pixel; in FilterYUVRows_MMX()
42 const __m64* src0_64 = reinterpret_cast<const __m64*>(src0 + pixel); in FilterYUVRows_MMX()
43 const __m64* src1_64 = reinterpret_cast<const __m64*>(src1 + pixel); in FilterYUVRows_MMX()
44 __m64* dest64 = reinterpret_cast<__m64*>(dest + pixel); in FilterYUVRows_MMX()
65 pixel += 8; in FilterYUVRows_MMX()
68 while (pixel < width) { in FilterYUVRows_MMX()
[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/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/textures/
DTexturePixel.java27 public void fromPixel(TexturePixel pixel) { in fromPixel() argument
28 this.intensity = pixel.intensity; in fromPixel()
29 this.red = pixel.red; in fromPixel()
30 this.green = pixel.green; in fromPixel()
31 this.blue = pixel.blue; in fromPixel()
32 this.alpha = pixel.alpha; in fromPixel()
200 public void merge(TexturePixel pixel) { in merge() argument
201 float oneMinusAlpha = 1 - pixel.alpha; in merge()
202 this.red = oneMinusAlpha * this.red + pixel.alpha * pixel.red; in merge()
203 this.green = oneMinusAlpha * this.green + pixel.alpha * pixel.green; in merge()
[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/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/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/chrome/browser/ui/libgtk2ui/
Dskia_utils_gtk2.cc78 guchar* pixel = gdk_pixels + row + (x * 3); in GdkPixbufToImageSkia() local
79 const unsigned char& red = pixel[0]; in GdkPixbufToImageSkia()
80 const unsigned char& green = pixel[1]; in GdkPixbufToImageSkia()
81 const unsigned char& blue = pixel[2]; in GdkPixbufToImageSkia()
115 uint32 pixel = bitmap.getAddr32(0, y)[x]; in GdkPixbufFromSkBitmap() local
117 int alpha = SkColorGetA(pixel); in GdkPixbufFromSkBitmap()
119 SkColor unmultiplied = SkUnPreMultiply::PMColorToColor(pixel); in GdkPixbufFromSkBitmap()
125 divided[i + 0] = SkColorGetR(pixel); in GdkPixbufFromSkBitmap()
126 divided[i + 1] = SkColorGetG(pixel); in GdkPixbufFromSkBitmap()
127 divided[i + 2] = SkColorGetB(pixel); in GdkPixbufFromSkBitmap()
/external/chromium_org/third_party/WebKit/Source/platform/image-decoders/bmp/
DBMPImageReader.h208 uint32_t pixel; in readCurrentPixel() local
209 memcpy(&pixel, &m_data->data()[m_decodedOffset + offset], 3); in readCurrentPixel()
211pixel = ((pixel & 0xff00) << 8) | ((pixel & 0xff0000) >> 8) | ((pixel & 0xff000000) >> 24); in readCurrentPixel()
213 return pixel; in readCurrentPixel()
227 inline unsigned getComponent(uint32_t pixel, int component) const in getComponent() argument
229 …return ((pixel & m_bitMasks[component]) >> m_bitShiftsRight[component]) << m_bitShiftsLeft[compone… in getComponent()
232 inline unsigned getAlpha(uint32_t pixel) const in getAlpha() argument
235 return m_bitMasks[3] ? getComponent(pixel, 3) : 0xff; in getAlpha()
/external/libpng/contrib/gregbook/
Drpng2-x.c1085 ulg pixel; in rpng2_x_load_bg_image() local
1305 pixel = (red << RShift) | in rpng2_x_load_bg_image()
1309 *dest++ = (char)((pixel >> 24) & 0xff); in rpng2_x_load_bg_image()
1310 *dest++ = (char)((pixel >> 16) & 0xff); in rpng2_x_load_bg_image()
1311 *dest++ = (char)((pixel >> 8) & 0xff); in rpng2_x_load_bg_image()
1312 *dest++ = (char)( pixel & 0xff); in rpng2_x_load_bg_image()
1319 pixel = (red << RShift) | in rpng2_x_load_bg_image()
1325 *dest++ = (char)((pixel >> 16) & 0xff); in rpng2_x_load_bg_image()
1326 *dest++ = (char)((pixel >> 8) & 0xff); in rpng2_x_load_bg_image()
1327 *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/ui/gfx/x/
Dx11_types.cc104 const uint32_t pixel = *(bitmap_in++); in PutARGBImage() local
105 bitmap32[0] = (pixel >> 16) & 0xff; // Red in PutARGBImage()
106 bitmap32[1] = (pixel >> 8) & 0xff; // Green in PutARGBImage()
107 bitmap32[2] = pixel & 0xff; // Blue in PutARGBImage()
108 bitmap32[3] = (pixel >> 24) & 0xff; // Alpha in PutARGBImage()
130 const uint32_t pixel = *(bitmap_in++); in PutARGBImage() local
131 uint16_t out_pixel = ((pixel >> 8) & 0xf800) | in PutARGBImage()
132 ((pixel >> 5) & 0x07e0) | in PutARGBImage()
133 ((pixel >> 3) & 0x001f); in PutARGBImage()
/external/chromium_org/third_party/skia/src/core/
DSkConfig8888.cpp57 inline uint32_t convert_pixel(uint32_t pixel) { in convert_pixel() argument
59 unpack_config8888<IN_A_IDX, IN_R_IDX, IN_G_IDX, IN_B_IDX>(pixel, &a, &r, &g, &b); in convert_pixel()
80 inline uint32_t convert_pixel(uint32_t pixel) { in convert_pixel() argument
84 … true, SK_NATIVE_A_IDX, SK_NATIVE_R_IDX, SK_NATIVE_G_IDX, SK_NATIVE_B_IDX>(pixel); in convert_pixel()
88 … false, SK_NATIVE_A_IDX, SK_NATIVE_R_IDX, SK_NATIVE_G_IDX, SK_NATIVE_B_IDX>(pixel); in convert_pixel()
92 true, 3, 2, 1, 0>(pixel); in convert_pixel()
96 false, 3, 2, 1, 0>(pixel); in convert_pixel()
100 true, 3, 0, 1, 2>(pixel); in convert_pixel()
104 false, 3, 0, 1, 2>(pixel); in convert_pixel()
114 inline uint32_t convert_pixel(uint32_t pixel) { in convert_pixel() argument
[all …]
/external/skia/src/core/
DSkConfig8888.cpp57 inline uint32_t convert_pixel(uint32_t pixel) { in convert_pixel() argument
59 unpack_config8888<IN_A_IDX, IN_R_IDX, IN_G_IDX, IN_B_IDX>(pixel, &a, &r, &g, &b); in convert_pixel()
80 inline uint32_t convert_pixel(uint32_t pixel) { in convert_pixel() argument
84 … true, SK_NATIVE_A_IDX, SK_NATIVE_R_IDX, SK_NATIVE_G_IDX, SK_NATIVE_B_IDX>(pixel); in convert_pixel()
88 … false, SK_NATIVE_A_IDX, SK_NATIVE_R_IDX, SK_NATIVE_G_IDX, SK_NATIVE_B_IDX>(pixel); in convert_pixel()
92 true, 3, 2, 1, 0>(pixel); in convert_pixel()
96 false, 3, 2, 1, 0>(pixel); in convert_pixel()
100 true, 3, 0, 1, 2>(pixel); in convert_pixel()
104 false, 3, 0, 1, 2>(pixel); in convert_pixel()
114 inline uint32_t convert_pixel(uint32_t pixel) { in convert_pixel() argument
[all …]
/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/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/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()
DSDL_pixels.c320 Uint8 pixel=0; in SDL_FindColor() local
329 pixel = i; in SDL_FindColor()
336 return(pixel); in SDL_FindColor()
369 void SDL_GetRGBA(Uint32 pixel, const SDL_PixelFormat * const fmt, in SDL_GetRGBA() argument
383 v = (pixel & fmt->Rmask) >> fmt->Rshift; in SDL_GetRGBA()
385 v = (pixel & fmt->Gmask) >> fmt->Gshift; in SDL_GetRGBA()
387 v = (pixel & fmt->Bmask) >> fmt->Bshift; in SDL_GetRGBA()
390 v = (pixel & fmt->Amask) >> fmt->Ashift; in SDL_GetRGBA()
396 *r = fmt->palette->colors[pixel].r; in SDL_GetRGBA()
397 *g = fmt->palette->colors[pixel].g; in SDL_GetRGBA()
[all …]
/external/chromium_org/chrome/utility/cloud_print/
Dpwg_encoder.cc47 inline void encodePixelFromRGBA(const uint8* pixel, std::string* output) { in encodePixelFromRGBA() argument
48 output->push_back(static_cast<char>(pixel[0])); in encodePixelFromRGBA()
49 output->push_back(static_cast<char>(pixel[1])); in encodePixelFromRGBA()
50 output->push_back(static_cast<char>(pixel[2])); in encodePixelFromRGBA()
53 inline void encodePixelFromBGRA(const uint8* pixel, std::string* output) { in encodePixelFromBGRA() argument
54 output->push_back(static_cast<char>(pixel[2])); in encodePixelFromBGRA()
55 output->push_back(static_cast<char>(pixel[1])); in encodePixelFromBGRA()
56 output->push_back(static_cast<char>(pixel[0])); in encodePixelFromBGRA()
/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);
/external/chromium_org/third_party/freetype/src/cache/
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/
Dftcmanag.h158 ((a)->pixel != 0) == ((b)->pixel != 0) && \
159 ( (a)->pixel || \
166 ( (q)->pixel ? 0 : ( (q)->x_res*33 ^ (q)->y_res*61 ) ) )

12345678910>>...16