/external/libvncserver/libvncserver/ |
H A D | zrlepalettehelper.c | 25 #define ZRLE_HASH(pix) (((pix) ^ ((pix) >> 17)) & 4095) 35 void zrlePaletteHelperInsert(zrlePaletteHelper *helper, zrle_U32 pix) argument 38 int i = ZRLE_HASH(pix); 40 while (helper->index[i] != 255 && helper->key[i] != pix) 45 helper->key[i] = pix; 46 helper->palette[helper->size] = pix; 51 int zrlePaletteHelperLookup(zrlePaletteHelper *helper, zrle_U32 pix) argument 53 int i = ZRLE_HASH(pix); [all...] |
H A D | zrleencodetemplate.c | 149 PIXEL_T pix = *ptr; local 150 if (*++ptr != pix) { 153 while (*++ptr == pix) ; 156 zrlePaletteHelperInsert(ph, pix); 223 PIXEL_T pix; local 227 pix = *ptr++; 228 while (*ptr == pix && ptr < end) 232 int index = zrlePaletteHelperLookup(ph, pix); 239 int index = zrlePaletteHelperLookup(ph, pix); 242 zrleOutStreamWRITE_PIXEL(os, pix); 273 PIXEL_T pix = *ptr++; local [all...] |
/external/libvncserver/libvncclient/ |
H A D | corre.c | 37 CARDBPP pix; local 46 if (!ReadFromRFBServer(client, (char *)&pix, sizeof(pix))) 49 FillRectangle(client, rx, ry, rw, rh, pix); 57 pix = *(CARDBPP *)ptr; 64 FillRectangle(client, rx+x, ry+y, w, h, pix);
|
H A D | rre.c | 37 CARDBPP pix; local 45 if (!ReadFromRFBServer(client, (char *)&pix, sizeof(pix))) 48 FillRectangle(client, rx, ry, rw, rh, pix); 51 if (!ReadFromRFBServer(client, (char *)&pix, sizeof(pix))) 62 FillRectangle(client, rx+subrect.x, ry+subrect.y, subrect.w, subrect.h, pix);
|
H A D | tight.c | 363 uint8_t pix[3]; local 370 pix[c] = client->tightPrevRow[c] + client->buffer[y*client->rectWidth*3+c]; 371 thisRow[c] = pix[c]; 373 dst[y*client->rectWidth] = RGB24_TO_PIXEL32(pix[0], pix[1], pix[2]); 378 est[c] = (int)client->tightPrevRow[x*3+c] + (int)pix[c] - 385 pix[c] = (uint8_t)est[c] + client->buffer[(y*client->rectWidth+x)*3+c]; 386 thisRow[x*3+c] = pix[c]; 388 dst[y*client->rectWidth+x] = RGB24_TO_PIXEL32(pix[ 404 uint16_t pix[3]; local [all...] |
/external/androidplot/AndroidPlot-Core/src/main/java/com/androidplot/util/ |
H A D | ValPixConverter.java | 36 float pix = (float)(raw * scale);
39 pix = (lengthPix - pix);
41 return pix;
56 * @param pix
64 public static double pixToVal(float pix, double min, double max, float lengthPix, boolean flip) {
argument 65 if(pix < ZERO) {
72 float pMult = pix;
74 pMult = lengthPix - pix;
|
/external/freetype/src/base/ |
H A D | ftlcdfil.c | 53 /* `fir' and `pix' must be at least 32 bit wide, since the sum of */ 58 FT_UInt fir[4]; /* below, `pix' is used as the 5th element */ 76 FT_UInt val, pix; local 80 pix = fir[0] + weights[0] * val; 86 pix >>= 8; 87 pix |= (FT_UInt)-(FT_Int)( pix >> 8 ); 88 line[xx - 2] = (FT_Byte)pix; 92 FT_UInt pix; local 95 pix 140 FT_UInt val, pix; local 157 FT_UInt pix; local [all...] |
/external/pdfium/third_party/freetype/src/base/ |
H A D | ftlcdfil.c | 53 /* `fir' and `pix' must be at least 32 bit wide, since the sum of */ 58 FT_UInt fir[4]; /* below, `pix' is used as the 5th element */ 76 FT_UInt val, pix; local 80 pix = fir[0] + weights[0] * val; 86 pix >>= 8; 87 pix |= (FT_UInt)-(FT_Int)( pix >> 8 ); 88 line[xx - 2] = (FT_Byte)pix; 92 FT_UInt pix; local 95 pix 140 FT_UInt val, pix; local 157 FT_UInt pix; local [all...] |
/external/mesa3d/src/gallium/state_trackers/egl/common/ |
H A D | egl_g3d_image.c | 44 egl_g3d_reference_native_pixmap(_EGLDisplay *dpy, EGLNativePixmapType pix) argument 51 nsurf = gdpy->native->create_pixmap_surface(gdpy->native, pix, NULL);
|
H A D | native_helper.c | 373 EGLNativePixmapType pix, 386 nsurf = ndpy->create_pixmap_surface(ndpy, pix, NULL); 372 native_display_copy_to_pixmap(struct native_display *ndpy, EGLNativePixmapType pix, struct pipe_resource *src) argument
|
/external/mesa3d/src/mesa/main/ |
H A D | texcompress_cpal.c | 85 GLubyte *pix = image; local 95 pix += get_palette_entry(info, palette, (ind[i] >> 4) & 0xf, pix); 96 pix += get_palette_entry(info, palette, ind[i] & 0xf, pix); 99 get_palette_entry(info, palette, (ind[i] >> 4) & 0xf, pix); 106 pix += get_palette_entry(info, palette, ind[i], pix);
|
/external/opencv3/modules/cudalegacy/src/cuda/ |
H A D | NCVPixelOperations.hpp | 152 template<typename Tin, typename Tout, Ncv32u CN> struct __pixDemoteClampZ_CN {static __host__ __device__ Tout _pixDemoteClampZ_CN(Tin &pix);}; 155 static __host__ __device__ Tout _pixDemoteClampZ_CN(Tin &pix) argument 158 _TDemoteClampZ(pix.x, out.x); 163 static __host__ __device__ Tout _pixDemoteClampZ_CN(Tin &pix) argument 166 _TDemoteClampZ(pix.x, out.x); 167 _TDemoteClampZ(pix.y, out.y); 168 _TDemoteClampZ(pix.z, out.z); 173 static __host__ __device__ Tout _pixDemoteClampZ_CN(Tin &pix) argument 176 _TDemoteClampZ(pix.x, out.x); 177 _TDemoteClampZ(pix 183 _pixDemoteClampZ(Tin &pix) argument 192 _pixDemoteClampNN_CN(Tin &pix) argument 200 _pixDemoteClampNN_CN(Tin &pix) argument 210 _pixDemoteClampNN_CN(Tin &pix) argument 220 _pixDemoteClampNN(Tin &pix) argument 229 _pixScale_CN(Tin &pix, Tw w) argument 238 _pixScale_CN(Tin &pix, Tw w) argument 249 _pixScale_CN(Tin &pix, Tw w) argument 260 _pixScale(Tin &pix, Tw w) argument [all...] |
/external/opencv3/samples/cpp/tutorial_code/HighGUI/GDAL_IO/ |
H A D | gdal-image.cpp | 42 void add_color( cv::Vec3b& pix, const uchar& b, const uchar& g, const uchar& r ); 145 void add_color( cv::Vec3b& pix, const uchar& b, const uchar& g, const uchar& r ){ argument 147 if( pix[0] + b < 255 && pix[0] + b >= 0 ){ pix[0] += b; } 148 if( pix[1] + g < 255 && pix[1] + g >= 0 ){ pix[1] += g; } 149 if( pix[2] + r < 255 && pix[ [all...] |
/external/strace/ |
H A D | v4l2.c | 123 const struct v4l2_pix_format *pix = &f->fmt.pix; local 125 tprintf("pix={width=%u, height=%u, pixelformat=", 126 pix->width, pix->height); 127 print_pixelformat(pix->pixelformat); 129 printxval(v4l2_fields, pix->field, "V4L2_FIELD_???"); 131 pix->bytesperline, pix->sizeimage); 132 printxval(v4l2_colorspaces, pix [all...] |
/external/deqp/framework/delibs/deimage/ |
H A D | deImage.c | 151 deARGB pix = deARGB_add(deARGB_add(deARGB_multiply(p00, f00), deARGB_multiply(p10, f10)), local 153 deImage_setPixel(result, x, y, pix);
|
/external/eigen/demos/mandelbrot/ |
H A D | mandelbrot.cpp | 50 int pix = y * img_width; local 59 for(int x = 0; x < alignedWidth; x += packetSize, pix += packetSize) 98 buffer[4*(pix+i)] = 255*pix_iter[i]/max_iter; 99 buffer[4*(pix+i)+1] = 0; 100 buffer[4*(pix+i)+2] = 0; 105 for(int x = alignedWidth; x < img_width; x++, pix++) 106 buffer[4*pix] = buffer[4*pix+1] = buffer[4*pix+2] = 0;
|
/external/libyuv/files/source/ |
H A D | format_conversion.cc | 31 uint8* dst_bayer, uint32 selector, int pix) { 36 mov ecx, [esp + 16] // pix 56 uint32 selector, int pix) { 71 "+r"(pix) // %2 83 uint8* dst_bayer, uint32 selector, int pix) { 87 for (int x = 0; x < pix - 1; x += 2) { 93 if (pix & 1) { 148 uint32 selector, int pix) = ARGBToBayerRow_C; 176 uint8* dst_argb, int pix) { 180 for (int x = 0; x < pix 30 ARGBToBayerRow_SSSE3(const uint8* src_argb, uint8* dst_bayer, uint32 selector, int pix) argument 82 ARGBToBayerRow_C(const uint8* src_argb, uint8* dst_bayer, uint32 selector, int pix) argument 175 BayerRowBG(const uint8* src_bayer0, int src_stride_bayer, uint8* dst_argb, int pix) argument 207 BayerRowRG(const uint8* src_bayer0, int src_stride_bayer, uint8* dst_argb, int pix) argument 239 BayerRowGB(const uint8* src_bayer0, int src_stride_bayer, uint8* dst_argb, int pix) argument 269 BayerRowGR(const uint8* src_bayer0, int src_stride_bayer, uint8* dst_argb, int pix) argument [all...] |
H A D | row_neon.cc | 542 void BGRAToARGBRow_NEON(const uint8* src_bgra, uint8* dst_argb, int pix) { argument 554 "+r"(pix) // %2 562 void ABGRToARGBRow_NEON(const uint8* src_abgr, uint8* dst_argb, int pix) { argument 573 "+r"(pix) // %2 581 void RGBAToARGBRow_NEON(const uint8* src_rgba, uint8* dst_argb, int pix) { argument 592 "+r"(pix) // %2 600 void RGB24ToARGBRow_NEON(const uint8* src_rgb24, uint8* dst_argb, int pix) { argument 611 "+r"(pix) // %2 619 void RAWToARGBRow_NEON(const uint8* src_raw, uint8* dst_argb, int pix) { argument 631 "+r"(pix) // 639 ARGBToRGBARow_NEON(const uint8* src_argb, uint8* dst_rgba, int pix) argument 658 ARGBToRGB24Row_NEON(const uint8* src_argb, uint8* dst_rgb24, int pix) argument 676 ARGBToRAWRow_NEON(const uint8* src_argb, uint8* dst_raw, int pix) argument 695 YUY2ToYRow_NEON(const uint8* src_yuy2, uint8* dst_y, int pix) argument 713 UYVYToYRow_NEON(const uint8* src_uyvy, uint8* dst_y, int pix) argument 731 YUY2ToUV422Row_NEON(const uint8* src_yuy2, uint8* dst_u, uint8* dst_v, int pix) argument 752 UYVYToUV422Row_NEON(const uint8* src_uyvy, uint8* dst_u, uint8* dst_v, int pix) argument 773 YUY2ToUVRow_NEON(const uint8* src_yuy2, int stride_yuy2, uint8* dst_u, uint8* dst_v, int pix) argument 799 UYVYToUVRow_NEON(const uint8* src_uyvy, int stride_uyvy, uint8* dst_u, uint8* dst_v, int pix) argument [all...] |
/external/mesa3d/src/gallium/state_trackers/egl/drm/ |
H A D | native_drm.c | 251 EGLNativePixmapType pix, 254 struct gbm_gallium_drm_bo *bo = (void *) pix; 250 drm_create_pixmap_surface(struct native_display *ndpy, EGLNativePixmapType pix, const struct native_config *nconf) argument
|
/external/opencv/otherlibs/highgui/ |
H A D | grfmt_jpeg2000.cpp | 287 int pix = pix_row[x]; local 288 dst[x*ncmpts] = CV_CAST_8U(pix); 293 int pix = ((pix_row[x] + delta) >> rshift) << lshift; local 294 dst[x*ncmpts] = CV_CAST_8U(pix); 300 int pix = ((pix_row[j] + delta) >> rshift) << lshift; local 301 dst[x*ncmpts] = dst[(x+1)*ncmpts] = CV_CAST_8U(pix); 306 int pix = ((pix_row[j] + delta) >> rshift) << lshift; local 307 pix = CV_CAST_8U(pix); 309 dst[x*ncmpts] = (uchar)pix; 349 int pix = pix_row[x]; local 355 int pix = ((pix_row[x] + delta) >> rshift) << lshift; local 362 int pix = ((pix_row[j] + delta) >> rshift) << lshift; local 368 int pix = ((pix_row[j] + delta) >> rshift) << lshift; local [all...] |
/external/opencv3/samples/cpp/ |
H A D | tvl1_optical_flow.cpp | 67 Vec3b pix; local 81 pix[2 - b] = static_cast<uchar>(255.f * col); 84 return pix;
|
/external/opencv3/samples/gpu/ |
H A D | optical_flow.cpp | 69 Vec3b pix; local 83 pix[2 - b] = static_cast<uchar>(255.0 * col); 86 return pix;
|
/external/mesa3d/src/gallium/state_trackers/egl/x11/ |
H A D | native_ximage.c | 295 get_pixmap_format(struct native_display *ndpy, EGLNativePixmapType pix) argument 301 depth = x11_drawable_get_depth(xdpy->xscr, (Drawable) pix); 323 EGLNativePixmapType pix, 331 enum pipe_format fmt = get_pixmap_format(&xdpy->base, pix); 347 xsurf = ximage_display_create_surface(ndpy, (Drawable) pix, nconf); 439 EGLNativePixmapType pix, 444 *format = get_pixmap_format(&xdpy->base, pix); 451 EGLNativePixmapType pix, 457 enum pipe_format fmt = get_pixmap_format(&xdpy->base, pix); 477 xdraw.drawable = (Drawable) pix; 322 ximage_display_create_pixmap_surface(struct native_display *ndpy, EGLNativePixmapType pix, const struct native_config *nconf) argument 438 ximage_display_get_pixmap_format(struct native_display *ndpy, EGLNativePixmapType pix, enum pipe_format *format) argument 450 ximage_display_copy_to_pixmap(struct native_display *ndpy, EGLNativePixmapType pix, struct pipe_resource *src) argument [all...] |
/external/opencv3/modules/cudaimgproc/src/ |
H A D | mssegmentation.cpp | 199 inline int pix(int y, int x, int ncols) function in namespace:__anon15365 289 g.addEdge(pix(y, x, ncols), pix(y, x + 1, ncols), SegmLinkVal(dr[0], dsp[0])); 290 g.addEdge(pix(y, x, ncols), pix(y + 1, x, ncols), SegmLinkVal(dr[1], dsp[1])); 291 g.addEdge(pix(y, x, ncols), pix(y + 1, x + 1, ncols), SegmLinkVal(dr[2], dsp[2])); 292 g.addEdge(pix(y, x + 1, ncols), pix(y + 1, x, ncols), SegmLinkVal(dr[3], dsp[3])); 303 g.addEdge(pix( [all...] |
/external/opencv3/modules/imgcodecs/src/ |
H A D | grfmt_jpeg2000.cpp | 316 int pix = pix_row[x]; local 317 dst[x*ncmpts] = cv::saturate_cast<uchar>(pix); 322 int pix = ((pix_row[x] + delta) >> rshift) << lshift; local 323 dst[x*ncmpts] = cv::saturate_cast<uchar>(pix); 329 int pix = ((pix_row[j] + delta) >> rshift) << lshift; local 330 dst[x*ncmpts] = dst[(x+1)*ncmpts] = cv::saturate_cast<uchar>(pix); 335 int pix = ((pix_row[j] + delta) >> rshift) << lshift; local 336 pix = cv::saturate_cast<uchar>(pix); 338 dst[x*ncmpts] = (uchar)pix; 380 int pix = pix_row[x]; local 386 int pix = ((pix_row[x] + delta) >> rshift) << lshift; local 393 int pix = ((pix_row[j] + delta) >> rshift) << lshift; local 399 int pix = ((pix_row[j] + delta) >> rshift) << lshift; local [all...] |