/external/libvncserver/libvncserver/ |
D | translate.c | 48 ((x.bitsPerPixel == y.bitsPerPixel) && \ 50 ((x.bigEndian == y.bigEndian) || (x.bitsPerPixel == 8)) && \ 229 int bytesPerOutputLine = width * (out->bitsPerPixel / 8); in rfbTranslateNone() 254 if ((cl->screen->serverFormat.bitsPerPixel != 8) && in rfbSetTranslateFunction() 255 (cl->screen->serverFormat.bitsPerPixel != 16) && in rfbSetTranslateFunction() 257 (cl->screen->serverFormat.bitsPerPixel != 24) && in rfbSetTranslateFunction() 259 (cl->screen->serverFormat.bitsPerPixel != 32)) in rfbSetTranslateFunction() 263 cl->screen->serverFormat.bitsPerPixel); in rfbSetTranslateFunction() 268 if ((cl->format.bitsPerPixel != 8) && in rfbSetTranslateFunction() 269 (cl->format.bitsPerPixel != 16) && in rfbSetTranslateFunction() [all …]
|
D | zlib.c | 93 + (x * (cl->scaledScreen->bitsPerPixel / 8))); in rfbSendOneRectEncodingZlib() 99 * (cl->format.bitsPerPixel / 8)); in rfbSendOneRectEncodingZlib() 112 if (( w * h * (cl->scaledScreen->bitsPerPixel / 8)) < in rfbSendOneRectEncodingZlib() 123 if (( cl->format.bitsPerPixel > 8 ) && in rfbSendOneRectEncodingZlib() 124 ( cl->ublen % ( cl->format.bitsPerPixel / 8 )) != 0 ) { in rfbSendOneRectEncodingZlib() 158 cl->compStream.avail_in = w * h * (cl->format.bitsPerPixel / 8); in rfbSendOneRectEncodingZlib() 206 + w * (cl->format.bitsPerPixel / 8) * h); in rfbSendOneRectEncodingZlib()
|
D | draw.c | 5 int rowstride = s->paddedWidthInBytes, bpp = s->bitsPerPixel>>3; in rfbFillRect() 22 int rowstride = s->paddedWidthInBytes, bpp = s->bitsPerPixel>>3; in rfbDrawPixel() 33 int rowstride = s->paddedWidthInBytes, bpp = s->bitsPerPixel>>3; in rfbDrawLine()
|
D | rre.c | 60 + (x * (cl->scaledScreen->bitsPerPixel / 8))); in rfbSendRectEncodingRRE() 63 * (cl->format.bitsPerPixel / 8)); in rfbSendRectEncodingRRE() 86 switch (cl->format.bitsPerPixel) { in rfbSendRectEncodingRRE() 97 rfbLog("getBgColour: bpp %d?\n",cl->format.bitsPerPixel); in rfbSendRectEncodingRRE() 110 … sz_rfbFramebufferUpdateRectHeader + w * h * (cl->format.bitsPerPixel / 8)); in rfbSendRectEncodingRRE()
|
D | corre.c | 94 + (x * (cl->scaledScreen->bitsPerPixel / 8))); in rfbSendSmallRectEncodingCoRRE() 97 * (cl->format.bitsPerPixel / 8)); in rfbSendSmallRectEncodingCoRRE() 119 switch (cl->format.bitsPerPixel) { in rfbSendSmallRectEncodingCoRRE() 130 rfbLog("getBgColour: bpp %d?\n",cl->format.bitsPerPixel); in rfbSendSmallRectEncodingCoRRE() 143 sz_rfbFramebufferUpdateRectHeader + w * h * (cl->format.bitsPerPixel / 8)); in rfbSendSmallRectEncodingCoRRE()
|
D | tight.c | 434 (x_best * (cl->scaledScreen->bitsPerPixel / 8))); in SendRectEncodingTight() 568 switch(cl->screen->serverFormat.bitsPerPixel) { in CheckSolidTile() 625 maxBeforeSize = maxRectSize * (cl->format.bitsPerPixel / 8); in SendRectSimple() 687 + (x * (cl->scaledScreen->bitsPerPixel / 8))); in SendSubrect() 700 if (cl->format.bitsPerPixel == cl->screen->serverFormat.bitsPerPixel && in SendSubrect() 704 cl->format.bitsPerPixel >= 16) { in SendSubrect() 708 switch (cl->format.bitsPerPixel) { in SendSubrect() 730 switch (cl->format.bitsPerPixel) { in SendSubrect() 793 + w * (cl->format.bitsPerPixel / 8) * h); in SendTightHeader() 811 len = cl->format.bitsPerPixel / 8; in SendSolidRect() [all …]
|
D | ultra.c | 50 + (x * (cl->scaledScreen->bitsPerPixel / 8))); in rfbSendOneRectEncodingUltra() 55 maxRawSize = (w * h * (cl->format.bitsPerPixel / 8)); in rfbSendOneRectEncodingUltra() 95 …ess((unsigned char *)cl->beforeEncBuf, (lzo_uint)(w * h * (cl->format.bitsPerPixel / 8)), (unsigne… in rfbSendOneRectEncodingUltra()
|
D | scale.c | 138 int bitsPerPixel, bytesPerPixel, bytesPerLine, areaX, areaY, area2; in rfbScaledScreenUpdateRect() local 155 bitsPerPixel = screen->bitsPerPixel; in rfbScaledScreenUpdateRect() 156 bytesPerPixel = bitsPerPixel / 8; in rfbScaledScreenUpdateRect() 288 ptr->paddedWidthInBytes = (ptr->bitsPerPixel/8)*ptr->width; in rfbScaledScreenAllocate()
|
D | hextile.c | 65 sz_rfbFramebufferUpdateRectHeader + w * (cl->format.bitsPerPixel / 8) * h); in rfbSendRectEncodingHextile() 67 switch (cl->format.bitsPerPixel) { in rfbSendRectEncodingHextile() 76 rfbLog("rfbSendRectEncodingHextile: bpp %d?\n", cl->format.bitsPerPixel); in rfbSendRectEncodingHextile() 131 + (x * (cl->scaledScreen->bitsPerPixel / 8))); \
|
D | zrle.c | 35 + (tx * (cl->scaledScreen->bitsPerPixel / 8))); \ 136 switch (cl->format.bitsPerPixel) { in rfbSendRectEncodingZRLE() 191 + w * (cl->format.bitsPerPixel / 8) * h); in rfbSendRectEncodingZRLE()
|
D | cursor.c | 93 (cl->format.bitsPerPixel / 8)) : maskBytes; in rfbSendCursorShape() 144 int bpp1=cl->screen->serverFormat.bitsPerPixel/8, in rfbSendCursorShape() 145 bpp2=cl->format.bitsPerPixel/8; in rfbSendCursorShape() 373 int i,j,w=(cursor->width+7)/8,bpp=format->bitsPerPixel/8, in rfbMakeXCursorFromRichCursor() 443 int i,j,w=(cursor->width+7)/8,bpp=format->bitsPerPixel/8; in rfbMakeRichCursorFromXCursor() 476 int j,x1,x2,y1,y2,bpp=s->serverFormat.bitsPerPixel/8, in rfbHideCursor() 518 int i,j,x1,x2,y1,y2,i1,j1,bpp=s->serverFormat.bitsPerPixel/8, in rfbShowCursor()
|
D | tableinit24.c | 33 unsigned int nEntries = 1 << in->bitsPerPixel; in rfbInitColourMapSingleTable24() 78 int nEntries = 1 << in->bitsPerPixel; in rfbInitTrueColourSingleTable24()
|
/external/skia/src/codec/ |
D | SkMasks.cpp | 129 SkMasks* SkMasks::CreateMasks(InputMasks masks, uint32_t bitsPerPixel) { in CreateMasks() argument 131 if (bitsPerPixel < 32) { in CreateMasks() 132 masks.red &= (1 << bitsPerPixel) - 1; in CreateMasks() 133 masks.green &= (1 << bitsPerPixel) - 1; in CreateMasks() 134 masks.blue &= (1 << bitsPerPixel) - 1; in CreateMasks() 135 masks.alpha &= (1 << bitsPerPixel) - 1; in CreateMasks() 146 const MaskInfo red = process_mask(masks.red, bitsPerPixel); in CreateMasks() 147 const MaskInfo green = process_mask(masks.green, bitsPerPixel); in CreateMasks() 148 const MaskInfo blue = process_mask(masks.blue, bitsPerPixel); in CreateMasks() 149 const MaskInfo alpha = process_mask(masks.alpha, bitsPerPixel); in CreateMasks()
|
D | SkCodecPriv.h | 71 static inline size_t compute_row_bytes(int width, uint32_t bitsPerPixel) { in compute_row_bytes() argument 72 if (bitsPerPixel < 16) { in compute_row_bytes() 73 SkASSERT(0 == 8 % bitsPerPixel); in compute_row_bytes() 74 const uint32_t pixelsPerByte = 8 / bitsPerPixel; in compute_row_bytes() 77 SkASSERT(0 == bitsPerPixel % 8); in compute_row_bytes() 78 const uint32_t bytesPerPixel = bitsPerPixel / 8; in compute_row_bytes()
|
D | SkSwizzler.cpp | 26 int bitsPerPixel, int y, const SkPMColor ctable[]) { in swizzle_small_index_to_index() argument 30 const uint32_t pixelsPerByte = 8 / bitsPerPixel; in swizzle_small_index_to_index() 32 const uint8_t mask = (1 << bitsPerPixel) - 1; in swizzle_small_index_to_index() 37 uint8_t index = (pixelData >> (8 - bitsPerPixel)) & mask; in swizzle_small_index_to_index() 40 pixelData <<= bitsPerPixel; in swizzle_small_index_to_index() 49 int bitsPerPixel, int y, const SkPMColor ctable[]) { in swizzle_small_index_to_n32() argument 53 const uint32_t pixelsPerByte = 8 / bitsPerPixel; in swizzle_small_index_to_n32() 55 const uint8_t mask = (1 << bitsPerPixel) - 1; in swizzle_small_index_to_n32() 60 uint8_t index = (pixelData >> (8 - bitsPerPixel)) & mask; in swizzle_small_index_to_n32() 64 pixelData <<= bitsPerPixel; in swizzle_small_index_to_n32()
|
D | SkCodec_libbmp.cpp | 220 uint16_t bitsPerPixel; in ReadHeader() local 283 bitsPerPixel = get_short(iBuffer.get(), 10); in ReadHeader() 302 bitsPerPixel = get_short(iBuffer.get(), 6); in ReadHeader() 340 if (bitsPerPixel != 8) { in ReadHeader() 342 bitsPerPixel = 8; in ReadHeader() 347 if (bitsPerPixel != 4) { in ReadHeader() 349 bitsPerPixel = 4; in ReadHeader() 398 if (24 == bitsPerPixel) { in ReadHeader() 446 if ((isIco && 32 == bitsPerPixel) || (kRLE_BitmapInputFormat == inputFormat)) { in ReadHeader() 454 switch (bitsPerPixel) { in ReadHeader() [all …]
|
D | SkMaskSwizzler.h | 30 uint32_t bitsPerPixel);
|
/external/deqp/framework/delibs/deimage/ |
D | deTarga.c | 44 int bitsPerPixel; in deImage_loadTarga() local 61 bitsPerPixel = tgaHeader[16]; in deImage_loadTarga() 62 stride = width * bitsPerPixel / 8; in deImage_loadTarga() 70 DE_TEST_ASSERT(bitsPerPixel == 24 || bitsPerPixel == 32); in deImage_loadTarga() 71 format = (bitsPerPixel == 32) ? DE_IMAGEFORMAT_ARGB8888 : DE_IMAGEFORMAT_XRGB8888; in deImage_loadTarga() 89 if (bitsPerPixel == 24) in deImage_loadTarga() 106 DE_ASSERT(bitsPerPixel == 32); in deImage_loadTarga()
|
/external/libvncserver/examples/ |
D | rotatetemplate.c | 36 if (screen->serverFormat.bitsPerPixel == 32) in FUNCNAME() 38 else if (screen->serverFormat.bitsPerPixel == 16) in FUNCNAME() 40 else if (screen->serverFormat.bitsPerPixel == 8) in FUNCNAME() 44 screen->serverFormat.bitsPerPixel); in FUNCNAME()
|
/external/libvncserver/x11vnc/misc/turbovnc/ |
D | tight.c | 321 (x_best * (rfbScreen.bitsPerPixel / 8))); 446 switch(rfbServerFormat.bitsPerPixel) { 505 maxBeforeSize = maxRectSize * (cl->format.bitsPerPixel / 8); 564 + (x * (rfbScreen.bitsPerPixel / 8))); 577 if (cl->format.bitsPerPixel == rfbServerFormat.bitsPerPixel && 581 cl->format.bitsPerPixel >= 16) { 585 switch (cl->format.bitsPerPixel) { 606 switch (cl->format.bitsPerPixel) { 684 len = cl->format.bitsPerPixel / 8; 709 2 * cl->format.bitsPerPixel / 8) > UPDATE_BUF_SIZE ) { [all …]
|
/external/skia/src/views/unix/ |
D | SkOSWindow_Unix.cpp | 388 int bitsPerPixel = bitmap.bytesPerPixel() * 8; in convertBitmapToXImage() local 394 image.bitmap_unit = bitsPerPixel; in convertBitmapToXImage() 396 image.bitmap_pad = bitsPerPixel; in convertBitmapToXImage() 399 image.bits_per_pixel = bitsPerPixel; in convertBitmapToXImage()
|
/external/mesa3d/src/gallium/state_trackers/xorg/ |
D | xorg_exa.c | 813 int depth, int bitsPerPixel, int devKind, in ExaModifyPixmapHeader() argument 827 __FUNCTION__, pPixmap, width, height, bitsPerPixel, devKind); in ExaModifyPixmapHeader() 839 if (bitsPerPixel <= 0) in ExaModifyPixmapHeader() 840 bitsPerPixel = pPixmap->drawable.bitsPerPixel; in ExaModifyPixmapHeader() 852 bitsPerPixel, devKind, NULL); in ExaModifyPixmapHeader() 868 exa_get_pipe_format(depth, &template.format, &bitsPerPixel, &priv->picture_format); in ExaModifyPixmapHeader() 936 int depth, int bitsPerPixel) in xorg_exa_create_root_texture() argument 945 exa_get_pipe_format(depth, &template.format, &bitsPerPixel, &dummy); in xorg_exa_create_root_texture()
|
D | xorg_driver.c | 205 !cust->winsys_check_fb_size(cust, width*pScrn->bitsPerPixel / 8, in drv_crtc_resize() 210 width, height, pScrn->bitsPerPixel); in drv_crtc_resize() 225 pScrn->displayWidth = rootPixmap->devKind / (rootPixmap->drawable.bitsPerPixel / 8); in drv_crtc_resize() 253 pScrn->displayWidth = rootPixmap->devKind / (rootPixmap->drawable.bitsPerPixel / 8); in drv_crtc_resize() 781 pScrn->displayWidth, pScrn->bitsPerPixel)) in drv_screen_init() 784 if (pScrn->bitsPerPixel > 8) { in drv_screen_init() 1089 pScrn->depth, pScrn->bitsPerPixel); in drv_create_front_buffer_ga3d() 1104 pScrn->bitsPerPixel, in drv_create_front_buffer_ga3d() 1216 pScrn->bitsPerPixel, in drv_create_front_buffer_kms() 1261 pScrn->bitsPerPixel, in drv_bind_front_buffer_kms()
|
/external/libvncserver/libvncclient/ |
D | vncviewer.c | 87 client->frameBuffer=malloc(client->width*client->height*client->format.bitsPerPixel/8); in MallocFrameBuffer() 132 client->format.bitsPerPixel = bytesPerPixel*8; in rfbGetClient() 138 if (client->format.bitsPerPixel == 8) { in rfbGetClient() 154 if(client->format.bitsPerPixel==8*3) { in rfbGetClient()
|
D | rfbproto.c | 147 switch(client->format.bitsPerPixel) { in FillRectangle() 152 rfbClientLog("Unsupported bitsPerPixel: %d\n",client->format.bitsPerPixel); in FillRectangle() 168 switch(client->format.bitsPerPixel) { in CopyRectangle() 173 rfbClientLog("Unsupported bitsPerPixel: %d\n",client->format.bitsPerPixel); in CopyRectangle() 211 switch(client->format.bitsPerPixel) { in CopyRectangleFromRectangle() 216 rfbClientLog("Unsupported bitsPerPixel: %d\n",client->format.bitsPerPixel); in CopyRectangleFromRectangle() 1905 bytesPerLine = rect.r.w * client->format.bitsPerPixel / 8; in HandleRFBServerMessage() 1953 switch (client->format.bitsPerPixel) { in HandleRFBServerMessage() 1972 switch (client->format.bitsPerPixel) { in HandleRFBServerMessage() 1991 switch (client->format.bitsPerPixel) { in HandleRFBServerMessage() [all …]
|