Home
last modified time | relevance | path

Searched refs:bpp (Results 1 – 25 of 152) sorted by relevance

1234567

/external/libvncserver/libvncserver/
Dhextile.c92 #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 …]
Drre.c41 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 …]
Dcorre.c42 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 …]
Ddraw.c5 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()
Dcursor.c373 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 …]
Dfont.c10 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()
Dtight.c211 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/test/
Dcursortest.c27 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/libvncserver/examples/
Dexample.c37 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()
87 newfb = (unsigned char*)malloc(maxx * maxy * bpp); in newframebuffer()
89 rfbNewFramebuffer(screen, (char*)newfb, maxx, maxy, 8, 3, bpp); in newframebuffer()
[all …]
Dzippy.c7 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/client_examples/
Dppmtest.c21 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/
Dgrfmt_imageio.cpp127 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 …]
Dimage.cpp70 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/jmonkeyengine/engine/src/core-plugins/com/jme3/texture/plugins/
DDDSLoader.java111 private int bpp; field in DDSLoader
157 bpp = 8; in loadDX10Header()
264 bpp = 4; in readPixelFormat()
272 bpp = 8; in readPixelFormat()
276 bpp = 8; in readPixelFormat()
283 bpp = 4; in readPixelFormat()
287 bpp = 8; in readPixelFormat()
300 int size = ((width + 3) / 4) * ((height + 3) / 4) * bpp * 2; in readPixelFormat()
319 bpp = in.readInt(); in readPixelFormat()
332 switch (bpp) { in readPixelFormat()
[all …]
/external/drm_gralloc/
Dgralloc_drm.h50 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()
69 bpp = 1; in gralloc_drm_get_bpp()
72 bpp = 0; in gralloc_drm_get_bpp()
76 return bpp; in gralloc_drm_get_bpp()
/external/jmonkeyengine/engine/src/desktop/jme3tools/converters/
DImageToAwt.java53 final int bpp, am, rm, gm, bm, as, rs, gs, bs, im, is; field in ImageToAwt.DecodeParams
55 …public DecodeParams(int bpp, int am, int rm, int gm, int bm, int as, int rs, int gs, int bs, int i… in DecodeParams() argument
56 this.bpp = bpp; in DecodeParams()
69 public DecodeParams(int bpp, int rm, int rs, int im, int is, boolean alpha){ in DecodeParams() argument
70 this.bpp = bpp; in DecodeParams()
91 public DecodeParams(int bpp, int rm, int rs, int im, int is){ in DecodeParams() argument
92 this(bpp, rm, rs, im, is, false); in DecodeParams()
182 private static int readPixel(ByteBuffer buf, int idx, int bpp){ in readPixel() argument
185 while ((--bpp) > 0){ in readPixel()
191 private static void writePixel(ByteBuffer buf, int idx, int pixel, int bpp){ in writePixel() argument
[all …]
/external/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_tile_image.c145 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/libvncserver/x11vnc/misc/turbovnc/
Dtight.c153 static int PaletteInsert(CARD32 rgb, int numPixels, int bpp);
456 #define DEFINE_CHECK_SOLID_FUNCTION(bpp) \ argument
459 CheckSolidTile##bpp(x, y, w, h, colorPtr, needSameColor) \
464 CARD##bpp *fbptr; \
465 CARD##bpp colorValue; \
468 fbptr = (CARD##bpp *) \
469 &rfbScreen.pfbMemory[y * rfbScreen.paddedWidthInBytes + x * (bpp/8)]; \
480 fbptr = (CARD##bpp *)((CARD8 *)fbptr + rfbScreen.paddedWidthInBytes); \
1005 #define DEFINE_FILL_PALETTE_FUNCTION(bpp) \ argument
1008 FillPalette##bpp(count) \
[all …]
/external/jmonkeyengine/engine/src/core/com/jme3/texture/
DImage.java260 private int bpp; field in Image.Format
265 private Format(int bpp){ in Format() argument
266 this.bpp = bpp; in Format()
269 private Format(int bpp, boolean isFP){ in Format() argument
270 this(bpp); in Format()
274 private Format(int bpp, boolean isDepth, boolean isCompressed, boolean isFP){ in Format() argument
275 this(bpp, isFP); in Format()
284 return bpp; in getBitsPerPixel()
/external/libpng/arm/
Darm_init.c56 png_init_filter_functions_neon(png_structp pp, unsigned int bpp) in png_init_filter_functions_neon() argument
116 if (bpp == 3) in png_init_filter_functions_neon()
124 else if (bpp == 4) in png_init_filter_functions_neon()
/external/skia/src/images/
DSkImageDecoder_libwebp.cpp549 static ScanlineImporter ChooseImporter(SkColorType ct, bool hasAlpha, int* bpp) { in ChooseImporter() argument
553 *bpp = 4; in ChooseImporter()
556 *bpp = 3; in ChooseImporter()
561 *bpp = 4; in ChooseImporter()
564 *bpp = 3; in ChooseImporter()
568 *bpp = 3; in ChooseImporter()
571 *bpp = 3; in ChooseImporter()
595 int bpp = -1; in onEncode() local
596 const ScanlineImporter scanline_import = ChooseImporter(bm.colorType(), hasAlpha, &bpp); in onEncode()
600 if (-1 == bpp) { in onEncode()
[all …]
/external/mesa3d/src/gallium/state_trackers/xa/
Dxa_tracker.h74 #define xa_format(bpp,type,a,r,g,b) (((bpp) << 24) | \ argument
84 #define xa_format_c(bpp,type,c1,c2) (((bpp) << 24) | \ argument
/external/libdrm/tests/planetest/
Dbo.c98 uint32_t depth, uint32_t bpp, uint32_t format, uint32_t flags) in create_sp_bo() argument
110 cd.bpp = bpp; in create_sp_bo()
123 bo->bpp = bpp; in create_sp_bo()
/external/libpng/contrib/libtests/
Dpngimage.c1018 int bpp; /* bits-per-pixel then bytes-per-pixel */ in compare_read() local
1031 bpp = bit_depth; in compare_read()
1037 bpp = 2 * bit_depth; in compare_read()
1044 bpp = 3 * bit_depth; in compare_read()
1052 bpp = 4 * bit_depth; in compare_read()
1059 bpp = 0; in compare_read()
1066 for (b=0; 8*b<bpp; ++b) in compare_read()
1079 if (bpp < 8 && bpp != bit_depth) in compare_read()
1085 bpp, bit_depth); in compare_read()
1093 for (b = (bpp >> 4); b > 0; ) in compare_read()
[all …]
/external/libvncserver/libvncclient/
Dzrle.c301 bpp=(type>4?(type>16?8:4):(type>2?2:1)), in HandleZRLETile() local
302 mask=(1<<bpp)-1, in HandleZRLETile()
303 divider=(8/bpp); in HandleZRLETile()
314 for(i=x,shift=8-bpp; i<x+w; i++) { in HandleZRLETile()
316 shift-=bpp; in HandleZRLETile()
318 shift=8-bpp; in HandleZRLETile()
322 if(shift<8-bpp) in HandleZRLETile()

1234567