/external/qemu/distrib/sdl-1.2.15/src/video/ |
SDL_blit.h | 87 /* Load pixel of the specified format from a buffer and get its R-G-B values */ 89 #define RGB_FROM_PIXEL(Pixel, fmt, r, g, b) \ 91 r = (((Pixel&fmt->Rmask)>>fmt->Rshift)<<fmt->Rloss); \ 92 g = (((Pixel&fmt->Gmask)>>fmt->Gshift)<<fmt->Gloss); \ 93 b = (((Pixel&fmt->Bmask)>>fmt->Bshift)<<fmt->Bloss); \ 95 #define RGB_FROM_RGB565(Pixel, r, g, b) \ 97 r = (((Pixel&0xF800)>>11)<<3); \ 98 g = (((Pixel&0x07E0)>>5)<<2); \ 99 b = ((Pixel&0x001F)<<3); \ 101 #define RGB_FROM_RGB555(Pixel, r, g, b) [all...] |
SDL_blit_N.c | 186 Uint32 Pixel; \ 188 DISEMBLE_RGBA((Uint8 *)src, 4, srcfmt, Pixel, \ 336 unsigned short Pixel = *((unsigned short *)src); \ 337 sR = (Pixel >> 8) & 0xf8; \ 338 sG = (Pixel >> 3) & 0xfc; \ 339 sB = (Pixel << 3) & 0xf8; \ 481 unsigned short Pixel = *((unsigned short *)src); \ 482 sR = (Pixel >> 7) & 0xf8; \ 483 sG = (Pixel >> 2) & 0xf8; \ 484 sB = (Pixel << 3) & 0xf8; [all...] |
/external/chromium_org/third_party/mesa/src/src/mesa/main/ |
pixel.c | 27 * \file pixel.c 28 * Pixel transfer functions (glPixelZoom, glPixelMap, glPixelTransfer) 37 #include "pixel.h" 57 if (ctx->Pixel.ZoomX == xfactor && 58 ctx->Pixel.ZoomY == yfactor) 62 ctx->Pixel.ZoomX = xfactor; 63 ctx->Pixel.ZoomY = yfactor; 516 if (ctx->Pixel.MapColorFlag == (param ? GL_TRUE : GL_FALSE)) 519 ctx->Pixel.MapColorFlag = param ? GL_TRUE : GL_FALSE; 522 if (ctx->Pixel.MapStencilFlag == (param ? GL_TRUE : GL_FALSE) [all...] |
pixeltransfer.c | 28 * Pixel transfer operations (scale, bias, table lookups, etc) 77 * Apply pixel mapping to an array of floating point RGBA pixels. 132 const GLfloat scale = ctx->Pixel.DepthScale; 133 const GLfloat bias = ctx->Pixel.DepthBias; 147 const GLdouble scale = ctx->Pixel.DepthScale; 148 const GLdouble bias = ctx->Pixel.DepthBias * max; 158 * Apply various pixel transfer operations to an array of RGBA pixels 168 ctx->Pixel.RedScale, ctx->Pixel.GreenScale, 169 ctx->Pixel.BlueScale, ctx->Pixel.AlphaScale [all...] |
/external/mesa3d/src/mesa/main/ |
pixel.c | 27 * \file pixel.c 28 * Pixel transfer functions (glPixelZoom, glPixelMap, glPixelTransfer) 37 #include "pixel.h" 57 if (ctx->Pixel.ZoomX == xfactor && 58 ctx->Pixel.ZoomY == yfactor) 62 ctx->Pixel.ZoomX = xfactor; 63 ctx->Pixel.ZoomY = yfactor; 516 if (ctx->Pixel.MapColorFlag == (param ? GL_TRUE : GL_FALSE)) 519 ctx->Pixel.MapColorFlag = param ? GL_TRUE : GL_FALSE; 522 if (ctx->Pixel.MapStencilFlag == (param ? GL_TRUE : GL_FALSE) [all...] |
pixeltransfer.c | 28 * Pixel transfer operations (scale, bias, table lookups, etc) 77 * Apply pixel mapping to an array of floating point RGBA pixels. 132 const GLfloat scale = ctx->Pixel.DepthScale; 133 const GLfloat bias = ctx->Pixel.DepthBias; 147 const GLdouble scale = ctx->Pixel.DepthScale; 148 const GLdouble bias = ctx->Pixel.DepthBias * max; 158 * Apply various pixel transfer operations to an array of RGBA pixels 168 ctx->Pixel.RedScale, ctx->Pixel.GreenScale, 169 ctx->Pixel.BlueScale, ctx->Pixel.AlphaScale [all...] |
/external/libpng/contrib/libtests/ |
pngstest.c | 761 } Pixel; 777 /* Read a Pixel from a buffer. The code below stores the correct routine for 781 gp_g8(Pixel *p, png_const_voidp pb) 790 gp_ga8(Pixel *p, png_const_voidp pb) 800 gp_ag8(Pixel *p, png_const_voidp pb) 810 gp_rgb8(Pixel *p, png_const_voidp pb) 822 gp_bgr8(Pixel *p, png_const_voidp pb) 834 gp_rgba8(Pixel *p, png_const_voidp pb) 846 gp_bgra8(Pixel *p, png_const_voidp pb) 859 gp_argb8(Pixel *p, png_const_voidp pb [all...] |
/external/chromium_org/third_party/mesa/src/src/mesa/state_tracker/ |
st_atom_pixeltransfer.c | 29 * Generate fragment programs to implement pixel transfer ops, such as 76 if (ctx->Pixel.RedBias != 0.0 || ctx->Pixel.RedScale != 1.0 || 77 ctx->Pixel.GreenBias != 0.0 || ctx->Pixel.GreenScale != 1.0 || 78 ctx->Pixel.BlueBias != 0.0 || ctx->Pixel.BlueScale != 1.0 || 79 ctx->Pixel.AlphaBias != 0.0 || ctx->Pixel.AlphaScale != 1.0) { 83 key->pixelMaps = ctx->Pixel.MapColorFlag [all...] |
st_cb_drawpixels.c | 102 * Returns a fragment program which implements the current pixel transfer ops. 116 if (ctx->Pixel.RedBias != 0.0 || ctx->Pixel.RedScale != 1.0 || 117 ctx->Pixel.GreenBias != 0.0 || ctx->Pixel.GreenScale != 1.0 || 118 ctx->Pixel.BlueBias != 0.0 || ctx->Pixel.BlueScale != 1.0 || 119 ctx->Pixel.AlphaBias != 0.0 || ctx->Pixel.AlphaScale != 1.0) { 123 pixelMaps = ctx->Pixel.MapColorFlag [all...] |
/external/mesa3d/src/mesa/state_tracker/ |
st_atom_pixeltransfer.c | 29 * Generate fragment programs to implement pixel transfer ops, such as 76 if (ctx->Pixel.RedBias != 0.0 || ctx->Pixel.RedScale != 1.0 || 77 ctx->Pixel.GreenBias != 0.0 || ctx->Pixel.GreenScale != 1.0 || 78 ctx->Pixel.BlueBias != 0.0 || ctx->Pixel.BlueScale != 1.0 || 79 ctx->Pixel.AlphaBias != 0.0 || ctx->Pixel.AlphaScale != 1.0) { 83 key->pixelMaps = ctx->Pixel.MapColorFlag [all...] |
st_cb_drawpixels.c | 102 * Returns a fragment program which implements the current pixel transfer ops. 116 if (ctx->Pixel.RedBias != 0.0 || ctx->Pixel.RedScale != 1.0 || 117 ctx->Pixel.GreenBias != 0.0 || ctx->Pixel.GreenScale != 1.0 || 118 ctx->Pixel.BlueBias != 0.0 || ctx->Pixel.BlueScale != 1.0 || 119 ctx->Pixel.AlphaBias != 0.0 || ctx->Pixel.AlphaScale != 1.0) { 123 pixelMaps = ctx->Pixel.MapColorFlag [all...] |
/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/third_party/mesa/src/src/mesa/swrast/ |
s_copypix.c | 71 /* add one pixel of slop when zooming, just to be safe */ 104 const GLboolean zoom = ctx->Pixel.ZoomX != 1.0F || ctx->Pixel.ZoomY != 1.0F; 116 ctx->Pixel.ZoomX, ctx->Pixel.ZoomY); 204 * Convert floating point Z values to integer Z values with pixel transfer's 215 ctx->Pixel.DepthScale == 1.0 && 216 ctx->Pixel.DepthBias == 0.0) { 227 GLdouble d = depth[i] * ctx->Pixel.DepthScale + ctx->Pixel.DepthBias [all...] |
s_drawpix.c | 75 if (ctx->Pixel.ZoomY == -1.0f) { 122 if (ctx->Pixel.ZoomY == -1.0f) { 172 if (ctx->Pixel.ZoomY == -1.0f) { 209 ctx->Pixel.ZoomX != 1.0f || 210 fabsf(ctx->Pixel.ZoomY) != 1.0f || 249 /* can't handle this pixel format and/or data type */ 265 const GLboolean zoom = ctx->Pixel.ZoomX != 1.0 || ctx->Pixel.ZoomY != 1.0; 310 = ctx->Pixel.DepthScale != 1.0 || ctx->Pixel.DepthBias != 0.0 [all...] |
s_zoom.c | 38 * Compute the bounds of the region resulting from zooming a pixel span. 62 c0 = imageX + (GLint) ((spanX - imageX) * ctx->Pixel.ZoomX); 63 c1 = imageX + (GLint) ((spanX + width - imageX) * ctx->Pixel.ZoomX); 79 r0 = imageY + (GLint) ((spanY - imageY) * ctx->Pixel.ZoomY); 80 r1 = imageY + (GLint) ((spanY + 1 - imageY) * ctx->Pixel.ZoomY); 104 * 'zx' is screen position of a pixel in the zoomed image, who's left edge 155 /* no pixel arrays! must be horizontal spans. */ 215 GLint j = unzoom_x(ctx->Pixel.ZoomX, imgX, x0 + i) - span->x; 225 GLint j = unzoom_x(ctx->Pixel.ZoomX, imgX, x0 + i) - span->x; 235 GLint j = unzoom_x(ctx->Pixel.ZoomX, imgX, x0 + i) - span->x [all...] |
/external/mesa3d/src/mesa/swrast/ |
s_copypix.c | 71 /* add one pixel of slop when zooming, just to be safe */ 104 const GLboolean zoom = ctx->Pixel.ZoomX != 1.0F || ctx->Pixel.ZoomY != 1.0F; 116 ctx->Pixel.ZoomX, ctx->Pixel.ZoomY); 204 * Convert floating point Z values to integer Z values with pixel transfer's 215 ctx->Pixel.DepthScale == 1.0 && 216 ctx->Pixel.DepthBias == 0.0) { 227 GLdouble d = depth[i] * ctx->Pixel.DepthScale + ctx->Pixel.DepthBias [all...] |
s_drawpix.c | 75 if (ctx->Pixel.ZoomY == -1.0f) { 122 if (ctx->Pixel.ZoomY == -1.0f) { 172 if (ctx->Pixel.ZoomY == -1.0f) { 209 ctx->Pixel.ZoomX != 1.0f || 210 fabsf(ctx->Pixel.ZoomY) != 1.0f || 249 /* can't handle this pixel format and/or data type */ 265 const GLboolean zoom = ctx->Pixel.ZoomX != 1.0 || ctx->Pixel.ZoomY != 1.0; 310 = ctx->Pixel.DepthScale != 1.0 || ctx->Pixel.DepthBias != 0.0 [all...] |
s_zoom.c | 38 * Compute the bounds of the region resulting from zooming a pixel span. 62 c0 = imageX + (GLint) ((spanX - imageX) * ctx->Pixel.ZoomX); 63 c1 = imageX + (GLint) ((spanX + width - imageX) * ctx->Pixel.ZoomX); 79 r0 = imageY + (GLint) ((spanY - imageY) * ctx->Pixel.ZoomY); 80 r1 = imageY + (GLint) ((spanY + 1 - imageY) * ctx->Pixel.ZoomY); 104 * 'zx' is screen position of a pixel in the zoomed image, who's left edge 155 /* no pixel arrays! must be horizontal spans. */ 215 GLint j = unzoom_x(ctx->Pixel.ZoomX, imgX, x0 + i) - span->x; 225 GLint j = unzoom_x(ctx->Pixel.ZoomX, imgX, x0 + i) - span->x; 235 GLint j = unzoom_x(ctx->Pixel.ZoomX, imgX, x0 + i) - span->x [all...] |
/external/chromium_org/third_party/mesa/src/src/gallium/state_trackers/xorg/ |
xorg_composite.h | 27 Pixel fg);
|
/external/mesa3d/src/gallium/state_trackers/xorg/ |
xorg_composite.h | 27 Pixel fg);
|
/external/chromium_org/content/test/gpu/gpu_tests/ |
pixel.py | 148 class Pixel(cloud_storage_test_base.TestBase): 154 super(Pixel, cls).AddTestCommandLineArgs(group) 161 page_set = super(Pixel, self).CreatePageSet(options)
|
/frameworks/base/media/mca/filterfw/jni/ |
jni_native_frame.cpp | 33 } Pixel; 179 Pixel* src_ptr; 188 const Pixel pixel = *(src_ptr++); local 189 *(dst_ptr++) = (pixel.rgba[0] + pixel.rgba[1] + pixel.rgba[2]) / 3; 195 const Pixel pixel = *(src_ptr++); local 196 *(dst_ptr++) = pixel.rgba[0] [all...] |
/external/chromium_org/third_party/mesa/src/src/mesa/drivers/dri/intel/ |
intel_pixel_copy.c | 74 * CopyPixels with the blitter. Don't support zooming, pixel transfer, etc. 149 ctx->Pixel.ZoomX != 1.0F || ctx->Pixel.ZoomY != 1.0F)
|
/external/mesa3d/src/mesa/drivers/dri/intel/ |
intel_pixel_copy.c | 74 * CopyPixels with the blitter. Don't support zooming, pixel transfer, etc. 149 ctx->Pixel.ZoomX != 1.0F || ctx->Pixel.ZoomY != 1.0F)
|
/external/chromium_org/third_party/mesa/src/src/mesa/drivers/common/ |
meta.c | 54 #include "main/pixel.h" 572 save->RedScale = ctx->Pixel.RedScale; 573 save->RedBias = ctx->Pixel.RedBias; 574 save->GreenScale = ctx->Pixel.GreenScale; 575 save->GreenBias = ctx->Pixel.GreenBias; 576 save->BlueScale = ctx->Pixel.BlueScale; 577 save->BlueBias = ctx->Pixel.BlueBias; 578 save->AlphaScale = ctx->Pixel.AlphaScale; 579 save->AlphaBias = ctx->Pixel.AlphaBias; 580 save->MapColorFlag = ctx->Pixel.MapColorFlag [all...] |