/external/libvncserver/libvncserver/ |
D | hextile.c | 92 #define DEFINE_SEND_HEXTILES(bpp) \ argument 95 static rfbBool subrectEncode##bpp(rfbClientPtr cli, uint##bpp##_t *data, \ 96 int w, int h, uint##bpp##_t bg, uint##bpp##_t fg, rfbBool mono);\ 97 static void testColours##bpp(uint##bpp##_t *data, int size, rfbBool *mono, \ 98 rfbBool *solid, uint##bpp##_t *bg, uint##bpp##_t *fg); \ 106 sendHextiles##bpp(rfbClientPtr cl, int rx, int ry, int rw, int rh) { \ 110 uint##bpp##_t bg = 0, fg = 0, newBg, newFg; \ 114 uint##bpp##_t clientPixelData[16*16*(bpp/8)]; \ 124 if ((cl->ublen + 1 + (2 + 16 * 16) * (bpp/8)) > \ 142 testColours##bpp(clientPixelData, w * h, \ [all …]
|
D | rre.c | 41 static uint32_t getBgColour(char *data, int size, int bpp); 171 #define DEFINE_SUBRECT_ENCODE(bpp) \ argument 173 subrectEncode##bpp(rfbClientPtr client, uint##bpp##_t *data, int w, int h) { \ 174 uint##bpp##_t cl; \ 180 uint##bpp##_t *seg; \ 181 uint##bpp##_t *line; \ 186 uint##bpp##_t bg = (uint##bpp##_t)getBgColour((char*)data,w*h,bpp); \ 188 *((uint##bpp##_t*)client->afterEncBuf) = bg; \ 190 client->afterEncBufLen = (bpp/8); \ 235 newLen = client->afterEncBufLen + (bpp/8) + sz_rfbRectangle; \ [all …]
|
D | corre.c | 42 static uint32_t getBgColour(char *data, int size, int bpp); 204 #define DEFINE_SUBRECT_ENCODE(bpp) \ argument 206 subrectEncode##bpp(rfbClientPtr client, uint##bpp##_t *data, int w, int h) { \ 207 uint##bpp##_t cl; \ 213 uint##bpp##_t *seg; \ 214 uint##bpp##_t *line; \ 219 uint##bpp##_t bg = (uint##bpp##_t)getBgColour((char*)data,w*h,bpp); \ 221 *((uint##bpp##_t*)client->afterEncBuf) = bg; \ 223 client->afterEncBufLen = (bpp/8); \ 268 newLen = client->afterEncBufLen + (bpp/8) + sz_rfbCoRRERectangle; \ [all …]
|
D | draw.c | 5 int rowstride = s->paddedWidthInBytes, bpp = s->bitsPerPixel>>3; in rfbFillRect() local 10 colour += 4-bpp; in rfbFillRect() 13 memcpy(s->frameBuffer+j*rowstride+i*bpp,colour,bpp); in rfbFillRect() 18 memcpy(s->frameBuffer+(y)*rowstride+(x)*bpp,colour,bpp) 22 int rowstride = s->paddedWidthInBytes, bpp = s->bitsPerPixel>>3; in rfbDrawPixel() local 26 colour += 4-bpp; in rfbDrawPixel() 33 int rowstride = s->paddedWidthInBytes, bpp = s->bitsPerPixel>>3; in rfbDrawLine() local 38 colour += 4-bpp; in rfbDrawLine()
|
D | cursor.c | 373 int i,j,w=(cursor->width+7)/8,bpp=format->bitsPerPixel/8, in rfbMakeXCursorFromRichCursor() local 374 width=cursor->width*bpp; in rfbMakeXCursorFromRichCursor() 386 back+=4-bpp; in rfbMakeXCursorFromRichCursor() 392 if (format->trueColour && (bpp == 1 || bpp == 2 || bpp == 4)) { in rfbMakeXCursorFromRichCursor() 413 unsigned char *p = cursor->richSource+j*width+i*bpp; in rfbMakeXCursorFromRichCursor() 414 if (bpp == 1) { in rfbMakeXCursorFromRichCursor() 417 } else if (bpp == 2) { in rfbMakeXCursorFromRichCursor() 420 } else if (bpp == 4) { in rfbMakeXCursorFromRichCursor() 432 } else if(memcmp(cursor->richSource+j*width+i*bpp, back, bpp)) { in rfbMakeXCursorFromRichCursor() 443 int i,j,w=(cursor->width+7)/8,bpp=format->bitsPerPixel/8; in rfbMakeRichCursorFromXCursor() local [all …]
|
D | font.c | 10 int bpp=rfbScreen->serverFormat.bitsPerPixel/8; in rfbDrawChar() local 14 colour += 4-bpp; in rfbDrawChar() 29 memcpy(rfbScreen->frameBuffer+(y+j)*rowstride+(x+i)*bpp,colour,bpp); in rfbDrawChar() 57 int bpp=rfbScreen->serverFormat.bitsPerPixel/8,extra_bytes=0; in rfbDrawCharWithClip() local 62 colour+=4-bpp; in rfbDrawCharWithClip() 63 bcolour+=4-bpp; in rfbDrawCharWithClip() 89 memcpy(rfbScreen->frameBuffer+(y+j)*rowstride+(x+i)*bpp, in rfbDrawCharWithClip() 90 colour,bpp); in rfbDrawCharWithClip() 92 memcpy(rfbScreen->frameBuffer+(y+j)*rowstride+(x+i)*bpp, in rfbDrawCharWithClip() 93 bcolour,bpp); in rfbDrawCharWithClip()
|
D | tight.c | 211 static int PaletteInsert (uint32_t rgb, int numPixels, int bpp); 579 #define DEFINE_CHECK_SOLID_FUNCTION(bpp) \ argument 582 CheckSolidTile##bpp(rfbClientPtr cl, int x, int y, int w, int h, \ 585 uint##bpp##_t *fbptr; \ 586 uint##bpp##_t colorValue; \ 589 fbptr = (uint##bpp##_t *)&cl->scaledScreen->frameBuffer \ 590 [y * cl->scaledScreen->paddedWidthInBytes + x * (bpp/8)]; \ 601 fbptr = (uint##bpp##_t *)((uint8_t *)fbptr \ 1169 #define DEFINE_FILL_PALETTE_FUNCTION(bpp) \ argument 1172 FillPalette##bpp(int count) { \ [all …]
|
/external/libvncserver/examples/ |
D | example.c | 37 static const int bpp=4; variable 48 buffer[(j*maxx+i)*bpp+0]=(i+j)*128/(maxx+maxy); /* red */ in initBuffer() 49 buffer[(j*maxx+i)*bpp+1]=i*128/maxx; /* green */ in initBuffer() 50 buffer[(j*maxx+i)*bpp+2]=j*256/maxy; /* blue */ in initBuffer() 52 buffer[j*maxx*bpp+0]=0xff; in initBuffer() 53 buffer[j*maxx*bpp+1]=0xff; in initBuffer() 54 buffer[j*maxx*bpp+2]=0xff; in initBuffer() 55 buffer[j*maxx*bpp+3]=0xff; in initBuffer() 88 newfb = (unsigned char*)malloc(maxx * maxy * bpp); in newframebuffer() 90 rfbNewFramebuffer(screen, (char*)newfb, maxx, maxy, 8, 3, bpp); in newframebuffer() [all …]
|
D | zippy.c | 7 static int maxx=400, maxy=400, bpp=4; variable 28 if(!rfbProcessSizeArguments(&maxx,&maxy,&bpp,&argc,argv)) in main() 31 server = rfbGetScreen (&argc, argv, maxx, maxy, 8, 3, bpp); in main() 35 server->frameBuffer = (char*)malloc(maxx*maxy*bpp); in main() 52 for (i=0; i < maxx * maxy * bpp; i++) frame_buffer[i]=(char) 0; in blank_framebuffer() 60 current_pixel = (i*x2 + j) * bpp; in draw_primary_colors() 106 #define ADDR(x,y) s->frameBuffer+(x)*bpp+(y)*s->paddedWidthInBytes in draw_primary_colours_generic_fast() 107 memcpy(ADDR(i,j+y1),ADDR(x1,y1),bpp); in draw_primary_colours_generic_fast() 108 memcpy(ADDR(i,j+y3),ADDR(x1,y3),bpp); in draw_primary_colours_generic_fast() 109 memcpy(ADDR(i,j+y4),ADDR(x1,y4),bpp); in draw_primary_colours_generic_fast() [all …]
|
/external/libvncserver/test/ |
D | cursortest.c | 27 static const int bpp=4; variable 37 buffer[(j*maxx+i)*bpp+0]=(i+j)*128/(maxx+maxy); /* red */ in initBuffer() 38 buffer[(j*maxx+i)*bpp+1]=i*128/maxx; /* green */ in initBuffer() 39 buffer[(j*maxx+i)*bpp+2]=j*256/maxy; /* blue */ in initBuffer() 182 c->richSource = (char*)malloc(w*h*bpp); in SetRichCursor() 185 c->richSource[j*w*bpp+i*bpp+0]=i*0xff/w; in SetRichCursor() 186 c->richSource[j*w*bpp+i*bpp+1]=(i+j)*0xff/(w+h); in SetRichCursor() 187 c->richSource[j*w*bpp+i*bpp+2]=j*0xff/h; in SetRichCursor() 188 c->richSource[j*w*bpp+i*bpp+3]=0; in SetRichCursor() 221 c->richSource = (char*)malloc(w*h*bpp); in SetRichCursor2() [all …]
|
/external/skia/src/codec/ |
D | SkSwizzler.cpp | 14 static void copy(void* dst, const uint8_t* src, int width, int bpp, int deltaSrc, int offset, in copy() argument 18 SkASSERT(deltaSrc == bpp); in copy() 20 memcpy(dst, src + offset, width * bpp); in copy() 23 static void sample1(void* dst, const uint8_t* src, int width, int bpp, int deltaSrc, int offset, in sample1() argument 33 static void sample2(void* dst, const uint8_t* src, int width, int bpp, int deltaSrc, int offset, in sample2() argument 43 static void sample4(void* dst, const uint8_t* src, int width, int bpp, int deltaSrc, int offset, in sample4() argument 63 int bpp, int deltaSrc, int offset, const SkPMColor* /*ctable*/) { in swizzle_bit_to_grayscale() argument 88 int bpp, int deltaSrc, int offset, const SkPMColor* /*ctable*/) { in swizzle_bit_to_index() argument 109 int bpp, int deltaSrc, int offset, const SkPMColor* /*ctable*/) { in swizzle_bit_to_n32() argument 132 int bpp, int deltaSrc, int offset, const SkPMColor* /*ctable*/) { in swizzle_bit_to_565() argument [all …]
|
/external/libvncserver/client_examples/ |
D | ppmtest.c | 21 int bpp=pf->bitsPerPixel/8; in SaveFramebufferAsPPM() local 22 int row_stride=client->width*bpp; in SaveFramebufferAsPPM() 32 if(bpp!=4 && bpp!=2) { in SaveFramebufferAsPPM() 33 rfbClientLog("bpp = %d (!=4)\n",bpp); in SaveFramebufferAsPPM() 45 for(i=0;i<client->width*bpp;i+=bpp) { in SaveFramebufferAsPPM() 48 if(bpp==4) in SaveFramebufferAsPPM() 50 else if(bpp==2) in SaveFramebufferAsPPM()
|
/external/opencv/otherlibs/highgui/ |
D | grfmt_imageio.cpp | 127 int bpp; // Bytes per pixel in ReadData() local 146 bpp = 1; in ReadData() 152 bpp = 4; /* CG only has 8 and 32 bit color spaces, so we waste a byte */ in ReadData() 158 bitmap = (uchar*)malloc( bpp * m_height * m_width ); in ReadData() 169 bpp * m_width, /* bytes per row */ in ReadData() 213 bitmapIndex += bpp; in ReadData() 282 int bpp = (_channels == 1) ? 1 : 4; in WriteImage() local 289 if( bpp == 1 ) in WriteImage() 291 else if( bpp == 4 ) in WriteImage() 296 bitmapData = (uchar*)malloc( bpp * height * width ); in WriteImage() [all …]
|
D | image.cpp | 70 bool CvvImage::Create( int w, int h, int bpp, int origin ) in Create() argument 74 if( (bpp != 8 && bpp != 24 && bpp != 32) || in Create() 82 if( !m_img || Bpp() != bpp || m_img->width != w || m_img->height != h ) in Create() 88 m_img = cvCreateImage( cvSize( w, h ), IPL_DEPTH_8U, bpp/8 ); in Create()
|
/external/drm_gralloc/ |
D | gralloc_drm.h | 50 int bpp; in gralloc_drm_get_bpp() local 56 bpp = 4; in gralloc_drm_get_bpp() 59 bpp = 3; in gralloc_drm_get_bpp() 63 bpp = 2; in gralloc_drm_get_bpp() 70 bpp = 1; in gralloc_drm_get_bpp() 73 bpp = 0; in gralloc_drm_get_bpp() 77 return bpp; in gralloc_drm_get_bpp()
|
/external/mesa3d/src/gallium/drivers/llvmpipe/ |
D | lp_tile_image.c | 145 const uint bpp = util_format_get_blocksize(format); in lp_tiled_to_linear() local 148 const uint tiles_per_row = src_stride / (tile_w * tile_h * bpp); in lp_tiled_to_linear() 150 dst_stride /= bpp; /* convert from bytes to words */ in lp_tiled_to_linear() 152 if (bpp == 4) { in lp_tiled_to_linear() 175 assert(bpp == 2); in lp_tiled_to_linear() 193 const uint bpp = 4; in lp_tiled_to_linear() local 195 const uint bytes_per_tile = tile_w * tile_h * bpp; in lp_tiled_to_linear() 235 const uint bpp = util_format_get_blocksize(format); in lp_linear_to_tiled() local 238 const uint tiles_per_row = dst_stride / (tile_w * tile_h * bpp); in lp_linear_to_tiled() 240 src_stride /= bpp; /* convert from bytes to words */ in lp_linear_to_tiled() [all …]
|
/external/libdrm/tests/modetest/ |
D | buffers.c | 62 bo_create_dumb(int fd, unsigned int width, unsigned int height, unsigned int bpp) in bo_create_dumb() argument 75 arg.bpp = bpp; in bo_create_dumb() 136 unsigned int bpp; in bo_create() local 148 bpp = 8; in bo_create() 173 bpp = 16; in bo_create() 178 bpp = 24; in bo_create() 197 bpp = 32; in bo_create() 223 bo = bo_create_dumb(fd, width, virtual_height, bpp); in bo_create()
|
/external/skia/src/gpu/ |
D | GrSurface.cpp | 48 size_t bpp, in adjust_params() argument 53 *rowBytes = *width * bpp; in adjust_params() 63 (subRect.fTop - *top) * *rowBytes + (subRect.fLeft - *left) * bpp); in adjust_params() 74 size_t bpp, in AdjustReadPixelParams() argument 78 return adjust_params<void>(surfaceWidth, surfaceHeight, bpp, left, top, width, height, data, in AdjustReadPixelParams() 84 size_t bpp, in AdjustWritePixelParams() argument 88 return adjust_params<const void>(surfaceWidth, surfaceHeight, bpp, left, top, width, height, in AdjustWritePixelParams()
|
/external/libpng/contrib/intel/ |
D | intel_init.c | 19 png_init_filter_functions_sse2(png_structp pp, unsigned int bpp) in png_init_filter_functions_sse2() argument 28 if (bpp == 3) in png_init_filter_functions_sse2() 35 else if (bpp == 4) in png_init_filter_functions_sse2()
|
/external/skia/src/images/ |
D | SkImageDecoder_libwebp.cpp | 431 static ScanlineImporter ChooseImporter(SkColorType ct, bool hasAlpha, int* bpp) { in ChooseImporter() argument 435 *bpp = 4; in ChooseImporter() 438 *bpp = 3; in ChooseImporter() 443 *bpp = 4; in ChooseImporter() 446 *bpp = 3; in ChooseImporter() 450 *bpp = 3; in ChooseImporter() 453 *bpp = 3; in ChooseImporter() 477 int bpp = -1; in onEncode() local 478 const ScanlineImporter scanline_import = ChooseImporter(bm.colorType(), hasAlpha, &bpp); in onEncode() 482 if (-1 == bpp) { in onEncode() [all …]
|
/external/chromium-trace/catapult/telemetry/telemetry/internal/image_processing/ |
D | _bitmap.py | 88 def __init__(self, bpp, width, height, pixels, metadata=None): argument 89 assert bpp in [3, 4], 'Invalid bytes per pixel' 93 assert bpp * width * height == len(pixels), 'Dimensions and pixels mismatch' 95 self._bpp = bpp 103 def bpp(self): member in Bitmap 135 self._metadata['alpha'] = self.bpp == 4 168 if tolerance or self.bpp != other.bpp:
|
D | bitmaptools.cc | 81 int bpp; in Read() local 84 if (!(ReadInt(&bpp) && ReadInt(&width) && ReadInt(&height))) { in Read() 88 if (bpp <= 0 || width <= 0 || height <= 0) { in Read() 93 int size = width * height * bpp; in Read() 95 row_stride = width * bpp; in Read() 96 pixel_stride = bpp; in Read()
|
D | image_util_bitmap_impl.py | 11 return bitmap.bpp 28 def FromRGBPixels(width, height, pixels, bpp): argument 29 return _bitmap.Bitmap(bpp, width, height, pixels)
|
/external/libpng/arm/ |
D | arm_init.c | 57 png_init_filter_functions_neon(png_structp pp, unsigned int bpp) in png_init_filter_functions_neon() argument 117 if (bpp == 3) in png_init_filter_functions_neon() 125 else if (bpp == 4) in png_init_filter_functions_neon()
|
/external/mesa3d/src/gallium/state_trackers/xa/ |
D | xa_tracker.h | 74 #define xa_format(bpp,type,a,r,g,b) (((bpp) << 24) | \ argument 84 #define xa_format_c(bpp,type,c1,c2) (((bpp) << 24) | \ argument
|