Home
last modified time | relevance | path

Searched refs:bitsPerPixel (Results 1 – 25 of 52) sorted by relevance

123

/external/libvncserver/libvncserver/
Dtranslate.c48 ((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 …]
Dzlib.c93 + (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()
Ddraw.c5 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()
Drre.c60 + (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()
Dscale.c144 int bitsPerPixel, bytesPerPixel, bytesPerLine, areaX, areaY, area2; in rfbScaledScreenUpdateRect() local
161 bitsPerPixel = screen->bitsPerPixel; in rfbScaledScreenUpdateRect()
162 bytesPerPixel = bitsPerPixel / 8; in rfbScaledScreenUpdateRect()
299 allocSize = pad4(width * (ptr->bitsPerPixel/8)); /* per protocol, width<2**16 and bpp<256 */ in rfbScaledScreenAllocate()
309 ptr->paddedWidthInBytes = (ptr->bitsPerPixel/8)*ptr->width; in rfbScaledScreenAllocate()
Dcorre.c94 + (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()
Dtight.c434 (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 …]
Dultra.c50 + (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()
Dhextile.c65 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))); \
Dzrle.c35 + (tx * (cl->scaledScreen->bitsPerPixel / 8))); \
136 switch (cl->format.bitsPerPixel) { in rfbSendRectEncodingZRLE()
191 + w * (cl->format.bitsPerPixel / 8) * h); in rfbSendRectEncodingZRLE()
Dcursor.c93 (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()
/external/skia/src/codec/
DSkMasks.cpp129 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()
DSkBmpCodec.cpp171 uint16_t bitsPerPixel; in ReadHeader() local
234 bitsPerPixel = get_short(iBuffer.get(), 10); in ReadHeader()
253 bitsPerPixel = get_short(iBuffer.get(), 6); in ReadHeader()
291 if (bitsPerPixel != 8) { in ReadHeader()
293 bitsPerPixel = 8; in ReadHeader()
298 if (bitsPerPixel != 4) { in ReadHeader()
300 bitsPerPixel = 4; in ReadHeader()
348 if (24 == bitsPerPixel) { in ReadHeader()
401 if ((inIco && 32 == bitsPerPixel) || (kRLE_BmpInputFormat == inputFormat)) { in ReadHeader()
409 switch (bitsPerPixel) { in ReadHeader()
[all …]
DSkCodecPriv.h206 inline size_t compute_row_bytes(int width, uint32_t bitsPerPixel) { in compute_row_bytes() argument
207 if (bitsPerPixel < 16) { in compute_row_bytes()
208 SkASSERT(0 == 8 % bitsPerPixel); in compute_row_bytes()
209 const uint32_t pixelsPerByte = 8 / bitsPerPixel; in compute_row_bytes()
212 SkASSERT(0 == bitsPerPixel % 8); in compute_row_bytes()
213 const uint32_t bytesPerPixel = bitsPerPixel / 8; in compute_row_bytes()
DSkBmpRLECodec.cpp18 uint16_t bitsPerPixel, uint32_t numColors, in SkBmpRLECodec() argument
22 : INHERITED(info, stream, bitsPerPixel, rowOrder) in SkBmpRLECodec()
77 if (this->bitsPerPixel() <= 8) { in createColorTable()
79 uint32_t maxColors = 1 << this->bitsPerPixel(); in createColorTable()
401 this->bitsPerPixel()); in decodeRows()
418 switch(this->bitsPerPixel()) { in decodeRows()
465 if (24 == this->bitsPerPixel()) { in decodeRows()
490 if (4 == this->bitsPerPixel()) { in decodeRows()
DSkBmpMaskCodec.cpp16 uint16_t bitsPerPixel, SkMasks* masks, in SkBmpMaskCodec() argument
18 : INHERITED(info, stream, bitsPerPixel, rowOrder) in SkBmpMaskCodec()
64 this->bitsPerPixel(), options)); in prepareToDecode()
DSkBmpStandardCodec.cpp18 uint16_t bitsPerPixel, uint32_t numColors, in SkBmpStandardCodec() argument
22 : INHERITED(info, stream, bitsPerPixel, rowOrder) in SkBmpStandardCodec()
75 if (this->bitsPerPixel() <= 8) { in createColorTable()
77 uint32_t maxColors = 1 << this->bitsPerPixel(); in createColorTable()
158 switch (this->bitsPerPixel()) { in initializeSwizzler()
DSkBmpCodec.h40 SkBmpCodec(const SkImageInfo& info, SkStream* stream, uint16_t bitsPerPixel,
82 uint16_t bitsPerPixel() const { return fBitsPerPixel; } in bitsPerPixel() function
/external/deqp/framework/delibs/deimage/
DdeTarga.c44 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/
Drotatetemplate.c36 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/mesa3d/src/gallium/state_trackers/xorg/
Dxorg_exa.c813 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()
Dxorg_driver.c205 !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/
Dvncviewer.c101 allocSize = (uint64_t)client->width * client->height * client->format.bitsPerPixel/8; in MallocFrameBuffer()
164 client->format.bitsPerPixel = bytesPerPixel*8; in rfbGetClient()
170 if (client->format.bitsPerPixel == 8) { in rfbGetClient()
186 if(client->format.bitsPerPixel==8*3) { in rfbGetClient()
Drfbproto.c158 switch(client->format.bitsPerPixel) { in FillRectangle()
163 rfbClientLog("Unsupported bitsPerPixel: %d\n",client->format.bitsPerPixel); in FillRectangle()
183 switch(client->format.bitsPerPixel) { in CopyRectangle()
188 rfbClientLog("Unsupported bitsPerPixel: %d\n",client->format.bitsPerPixel); in CopyRectangle()
226 switch(client->format.bitsPerPixel) { in CopyRectangleFromRectangle()
231 rfbClientLog("Unsupported bitsPerPixel: %d\n",client->format.bitsPerPixel); in CopyRectangleFromRectangle()
1938 bytesPerLine = rect.r.w * client->format.bitsPerPixel / 8; in HandleRFBServerMessage()
1986 switch (client->format.bitsPerPixel) { in HandleRFBServerMessage()
2005 switch (client->format.bitsPerPixel) { in HandleRFBServerMessage()
2024 switch (client->format.bitsPerPixel) { in HandleRFBServerMessage()
[all …]
/external/skia/src/views/unix/
DSkOSWindow_Unix.cpp411 int bitsPerPixel = bitmap.bytesPerPixel() * 8; in convertBitmapToXImage() local
417 image.bitmap_unit = bitsPerPixel; in convertBitmapToXImage()
419 image.bitmap_pad = bitsPerPixel; in convertBitmapToXImage()
422 image.bits_per_pixel = bitsPerPixel; in convertBitmapToXImage()

123