/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...] |
readpix.c | 65 if (ctx->Pixel.DepthScale != 1.0 || ctx->Pixel.DepthBias != 0.0) 284 GLuint pixel = map4[i]; local 285 dst4[i] = (pixel & 0xff00ff00) 286 | ((pixel & 0x00ff0000) >> 16) 287 | ((pixel & 0x000000ff) << 16); 604 = ctx->Pixel.DepthScale != 1.0 || ctx->Pixel.DepthBias != 0.0; 605 const GLboolean stencilTransfer = ctx->Pixel.IndexShift 606 || ctx->Pixel.IndexOffset || ctx->Pixel.MapStencilFlag [all...] |
get.c | [all...] |
image.c | 80 * Return the byte offset of a specific pixel in an image (1D, 2D or 3D). 82 * Pixel unpacking/packing parameters are observed according to \p packing. 88 * \param format the pixel format (must be validated beforehand) 89 * \param type the pixel data type (must be validated beforehand) 91 * \param row row of pixel in the image (0 for 1D images) 92 * \param column column of pixel in the image 94 * \return offset of pixel. 139 /* components per pixel for color or stencil index: */ 142 /* The pixel type and format should have been error checked earlier */ 161 /* The pixel type and format should have been error checked earlier * [all...] |
/external/skia/tests/ |
SkLinearBitmapPipelineTest.cpp | 13 using Pixel = float[4]; 45 Pixel* pixelBuffer = (Pixel*)FPbuffer;
|
/external/libpng/contrib/libtests/ |
pngstest.c | 794 } Pixel; 810 /* Read a Pixel from a buffer. The code below stores the correct routine for 814 gp_g8(Pixel *p, png_const_voidp pb) 823 gp_ga8(Pixel *p, png_const_voidp pb) 833 gp_ag8(Pixel *p, png_const_voidp pb) 843 gp_rgb8(Pixel *p, png_const_voidp pb) 855 gp_bgr8(Pixel *p, png_const_voidp pb) 867 gp_rgba8(Pixel *p, png_const_voidp pb) 879 gp_bgra8(Pixel *p, png_const_voidp pb) 892 gp_argb8(Pixel *p, png_const_voidp pb [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 | 32 } Pixel; 82 Pixel pixel; local 84 pixel.value = *(input_ptr++); 86 const short r = (pixel.rgba[0] * factor) / 255; 87 const short g = (pixel.rgba[1] * factor) / 255; 88 const short b = (pixel.rgba[2] * factor) / 255; 93 | (pixel.rgba[3] << 24);
|
/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/mesa3d/src/gallium/state_trackers/xorg/ |
xorg_composite.h | 27 Pixel fg);
|
/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/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/opencv3/modules/features2d/src/ |
mser.cpp | 104 struct Pixel 106 Pixel() : val(0) {} 107 Pixel(int _val) : val(_val) {} 109 int getGray(const Pixel* ptr0, const uchar* imgptr0, int mask) const 129 Pixel* pix0; 220 const Pixel* pix0 = wp.pix0; 358 Pixel borderpix; 369 Pixel* pptr = &pixbuf[i*step]; 393 Pixel* pptr = &pixbuf[i*step + 1]; 407 Pixel *ptr0 = &pixbuf[0], *ptr = &ptr0[step+1] [all...] |
/external/mesa3d/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...] |
/external/ceres-solver/examples/ |
pgm_image.h | 66 Real Pixel(int x, int y) const; 134 Real PGMImage<Real>::Pixel(int x, int y) const {
|
denoising.cc | 117 // Build a vector with the pixel indices of this patch. 122 double* pixel = solution->MutablePixel(x + x_delta_indices[i], local 124 pixels.push_back(pixel); 166 std::min(255.0, std::max(0.0, solution->Pixel(x, y)));
|
/external/mesa3d/src/mesa/program/ |
prog_statevars.c | 452 /* for simpler per-vertex/pixel fog calcs. POW (for EXP/EXP2 fog) 541 value[0] = ctx->Pixel.RedScale; 542 value[1] = ctx->Pixel.GreenScale; 543 value[2] = ctx->Pixel.BlueScale; 544 value[3] = ctx->Pixel.AlphaScale; 548 value[0] = ctx->Pixel.RedBias; 549 value[1] = ctx->Pixel.GreenBias; 550 value[2] = ctx->Pixel.BlueBias; 551 value[3] = ctx->Pixel.AlphaBias; [all...] |
/external/giflib/ |
egif_lib.c | 325 Buf[2] = GifFile->AspectByte; /* Pixel Aspect Ratio */ 343 /* Mark this file as has screen descriptor, and no pixel written yet: */ 351 call to any of the pixel dump routines. 471 Put one pixel (Pixel) into GIF file. 474 EGifPutPixel(GifFileType *GifFile, GifPixelType Pixel) 492 Pixel &= CodeMask[Private->BitsPerPixel]; 494 return EGifCompressLine(GifFile, &Pixel, 1); 836 /* Test and see what color map to use, and from it # bits per pixel: */ 883 GifPixelType Pixel; [all...] |
/external/mesa3d/src/mesa/drivers/x11/ |
xm_dd.c | 129 GLuint pixel = (GLuint) xmesa->clearpixel; local 133 pixel = ((pixel >> 8) & 0x00ff) | ((pixel << 8) & 0xff00); 139 ptr2[i] = pixel; 184 register GLuint pixel = (GLuint) xmesa->clearpixel; local 190 pixel = ((pixel >> 24) & 0x000000ff) 191 | ((pixel >> 8) & 0x0000ff00) 192 | ((pixel << 8) & 0x00ff0000 [all...] |
/external/dng_sdk/source/ |
dng_resample.cpp | 601 srcArea.t = SafeInt32Add (fRowCoords.Pixel (dstArea.t), offsetV); 602 srcArea.l = SafeInt32Add (fColCoords.Pixel (dstArea.l), offsetH); 605 fRowCoords.Pixel (SafeInt32Sub (dstArea.b, 1)), 609 fColCoords.Pixel (SafeInt32Sub (dstArea.r, 1)), 634 // Compute sub-pixel resolution coordinates in the source image for 684 // Allocate the pixel buffers.
|
dng_resample.h | 98 const int32 Pixel (int32 index) const
|