/external/libvncserver/examples/ |
H A D | camera.c | 48 #define BPP 4 macro 90 buffer[(j*WIDTH+i)*BPP+0]=(i+j)*128/(WIDTH+HEIGHT); /* red */ 91 buffer[(j*WIDTH+i)*BPP+1]=i*128/WIDTH; /* green */ 92 buffer[(j*WIDTH+i)*BPP+2]=j*256/HEIGHT; /* blue */ 94 buffer[j*WIDTH*BPP+0]=0xff; 95 buffer[j*WIDTH*BPP+1]=0xff; 96 buffer[j*WIDTH*BPP+2]=0xff; 108 memset(&buffer[(WIDTH * BPP) * line], 0, (WIDTH * BPP)); 135 rfbScreenInfoPtr server=rfbGetScreen(&argc,argv,WIDTH,HEIGHT,8,3,BPP); [all...] |
/external/libvncserver/libvncclient/ |
H A D | corre.c | 24 * rfbproto.c, each time with a different definition of the macro BPP. For 25 * each value of BPP, this file defines a function which handles a CoRRE 26 * encoded rectangle with BPP bits per pixel. 29 #define HandleCoRREBPP CONCAT2E(HandleCoRRE,BPP) 30 #define CARDBPP CONCAT3E(uint,BPP,_t) 51 if (!ReadFromRFBServer(client, client->buffer, hdr.nSubrects * (4 + (BPP / 8)))) 58 ptr += BPP/8;
|
H A D | hextile.c | 24 * rfbproto.c, each time with a different definition of the macro BPP. For 25 * each value of BPP, this file defines a function which handles a hextile 26 * encoded rectangle with BPP bits per pixel. 29 #define HandleHextileBPP CONCAT2E(HandleHextile,BPP) 30 #define CARDBPP CONCAT3E(uint,BPP,_t) 55 if (!ReadFromRFBServer(client, client->buffer, w * h * (BPP / 8))) 83 if (!ReadFromRFBServer(client, client->buffer, nSubrects * (2 + (BPP / 8)))) 87 #if BPP==8 89 #elif BPP==16 91 #elif BPP [all...] |
H A D | ultra.c | 25 * rfbproto.c, each time with a different definition of the macro BPP. For 26 * each value of BPP, this file defines a function which handles an zlib 27 * encoded rectangle with BPP bits per pixel. 30 #define HandleUltraZipBPP CONCAT2E(HandleUltraZip,BPP) 31 #define HandleUltraBPP CONCAT2E(HandleUltra,BPP) 32 #define CARDBPP CONCAT3E(uint,BPP,_t) 40 lzo_uint uncompressedBytes = (( rw * rh ) * ( BPP / 8 )); 50 rfbClientLog("ultra error: rectangle has 0 uncomressed bytes ((%dw * %dh) * (%d / 8))\n", rw, rh, BPP); 55 * decompressed data. In practice, with a fixed BPP, fixed frame 95 if ((rw * rh * (BPP / [all...] |
H A D | zlib.c | 27 * rfbproto.c, each time with a different definition of the macro BPP. For 28 * each value of BPP, this file defines a function which handles an zlib 29 * encoded rectangle with BPP bits per pixel. 32 #define HandleZlibBPP CONCAT2E(HandleZlib,BPP) 33 #define CARDBPP CONCAT3E(uint,BPP,_t) 44 * decompressed data. In practice, with a fixed BPP, fixed frame 49 if ( client->raw_buffer_size < (( rw * rh ) * ( BPP / 8 ))) { 57 client->raw_buffer_size = (( rw * rh ) * ( BPP / 8 ));
|
H A D | rre.c | 24 * rfbproto.c, each time with a different definition of the macro BPP. For 25 * each value of BPP, this file defines a function which handles an RRE 26 * encoded rectangle with BPP bits per pixel. 29 #define HandleRREBPP CONCAT2E(HandleRRE,BPP) 30 #define CARDBPP CONCAT3E(uint,BPP,_t)
|
H A D | tight.c | 28 * macro BPP. For each value of BPP, this file defines a function 29 * which handles a tight-encoded rectangle with BPP bits per pixel. 35 #define CARDBPP CONCAT3E(uint,BPP,_t) 36 #define filterPtrBPP CONCAT2E(filterPtr,BPP) 38 #define HandleTightBPP CONCAT2E(HandleTight,BPP) 39 #define InitFilterCopyBPP CONCAT2E(InitFilterCopy,BPP) 40 #define InitFilterPaletteBPP CONCAT2E(InitFilterPalette,BPP) 41 #define InitFilterGradientBPP CONCAT2E(InitFilterGradient,BPP) 42 #define FilterCopyBPP CONCAT2E(FilterCopy,BPP) [all...] |
H A D | zrle.c | 26 * rfbproto.c, each time with a different definition of the macro BPP. For 27 * each value of BPP, this file defines a function which handles an zrle 28 * encoded rectangle with BPP bits per pixel. 32 #define REALBPP BPP 45 #define CARDBPP CONCAT3E(uint,BPP,_t) 63 #if REALBPP != BPP 72 #define PIXEL_T __RFB_CONCAT3E(uint,BPP,_t) 73 #if BPP!=8 226 #if REALBPP!=BPP && defined(UNCOMP) && UNCOMP!=0 242 #if BPP! [all...] |
H A D | rfbproto.c | 142 #define FILL_RECT(BPP) \ 145 ((uint##BPP##_t*)client->frameBuffer)[j+i]=colour; 159 #define COPY_RECT(BPP) \ 161 int rs = w * BPP / 8, rs2 = client->width * BPP / 8; \ 162 for (j = ((x * (BPP / 8)) + (y * rs2)); j < (y + h) * rs2; j += rs2) { \ 181 #define COPY_RECT_FROM_RECT(BPP) \ 183 uint##BPP##_t* _buffer=((uint##BPP##_t*)client->frameBuffer)+(src_y-dest_y)*client->width+src_x-dest_x; \ 188 ((uint##BPP##_ 2325 #define BPP macro 2333 #undef BPP macro 2334 #define BPP macro 2344 #undef BPP macro 2345 #define BPP macro 2361 #undef BPP macro [all...] |
/external/libvncserver/libvncserver/ |
H A D | zrleencodetemplate.c | 24 * BPP should be 8, 16 or 32 depending on the bits per pixel. 61 #define PIXEL_T __RFB_CONCAT2E(zrle_U,BPP) 66 #elif BPP==15 69 #define ZRLE_ENCODE __RFB_CONCAT3E(zrleEncode,BPP,END_FIX) 70 #define ZRLE_ENCODE_TILE __RFB_CONCAT3E(zrleEncodeTile,BPP,END_FIX) 73 #define PIXEL_T __RFB_CONCAT2E(zrle_U,BPP) 74 #define zrleOutStreamWRITE_PIXEL __RFB_CONCAT2E(zrleOutStreamWriteOpaque,BPP) 75 #define ZRLE_ENCODE __RFB_CONCAT3E(zrleEncode,BPP,END_FIX) 76 #define ZRLE_ENCODE_TILE __RFB_CONCAT3E(zrleEncodeTile,BPP,END_FIX) 77 #define BPPOUT BPP [all...] |
H A D | tabletrans24template.c | 37 #if !defined(BPP) 42 #if BPP == 24 124 #define IN_T CONCAT3E(uint,BPP,_t) 125 #define OUT_T CONCAT3E(uint,BPP,_t) 127 CONCAT4E(rfbTranslateWithSingleTable,24,to,BPP) 129 CONCAT4E(rfbTranslateWithSingleTable,BPP,to,24) 131 CONCAT4E(rfbTranslateWithRGBTables,24,to,BPP) 133 CONCAT4E(rfbTranslateWithRGBTables,BPP,to,24)
|
H A D | zrle.c | 46 #define BPP 8 macro 49 #undef BPP macro 50 #define BPP 15 macro 57 #undef BPP macro 58 #define BPP 16 macro 65 #undef BPP macro 66 #define BPP 32 macro 89 #undef BPP macro
|
H A D | translate.c | 115 #define BPP 8 macro 117 #undef BPP macro 118 #define BPP 16 macro 120 #undef BPP macro 121 #define BPP 24 macro 123 #undef BPP macro 124 #define BPP 32 macro 126 #undef BPP macro
|
/external/libvpx/libvpx/third_party/libyuv/source/ |
H A D | row_any.cc | 26 #define ANY31(NAMEANY, ANY_SIMD, UVSHIFT, DUVSHIFT, BPP, MASK) \ 40 memcpy(dst_ptr + (n >> DUVSHIFT) * BPP, temp + 192, \ 41 SS(r, DUVSHIFT) * BPP); \ 122 #define ANY21(NAMEANY, ANY_SIMD, UVSHIFT, SBPP, SBPP2, BPP, MASK) \ 136 memcpy(dst_ptr + n * BPP, temp + 128, r * BPP); \ 225 #define ANY11(NAMEANY, ANY_SIMD, UVSHIFT, SBPP, BPP, MASK) \ 236 memcpy(dst_ptr + n * BPP, temp + 128, r * BPP); \ 402 #define ANY11P(NAMEANY, ANY_SIMD, T, SBPP, BPP, MAS [all...] |
H A D | scale_any.cc | 22 #define CANY(NAMEANY, TERP_SIMD, TERP_C, BPP, MASK) \ 29 TERP_C(dst_ptr + n * BPP, src_ptr, \ 46 #define SDANY(NAMEANY, SCALEROWDOWN_SIMD, SCALEROWDOWN_C, FACTOR, BPP, MASK) \ 54 SCALEROWDOWN_C(src_ptr + (n * FACTOR) * BPP, src_stride, \ 55 dst_ptr + n * BPP, r); \ 146 #define SDAANY(NAMEANY, SCALEROWDOWN_SIMD, SCALEROWDOWN_C, BPP, MASK) \ 154 SCALEROWDOWN_C(src_ptr + (n * src_stepx) * BPP, src_stride, \ 155 src_stepx, dst_ptr + n * BPP, r); \
|
H A D | row_common.cc | 301 #define MAKEROWY(NAME, R, G, B, BPP) \ 306 src_argb0 += BPP; \ 315 uint8 ab = (src_rgb0[B] + src_rgb0[B + BPP] + \ 316 src_rgb1[B] + src_rgb1[B + BPP]) >> 2; \ 317 uint8 ag = (src_rgb0[G] + src_rgb0[G + BPP] + \ 318 src_rgb1[G] + src_rgb1[G + BPP]) >> 2; \ 319 uint8 ar = (src_rgb0[R] + src_rgb0[R + BPP] + \ 320 src_rgb1[R] + src_rgb1[R + BPP]) >> 2; \ 323 src_rgb0 += BPP * 2; \ 324 src_rgb1 += BPP * [all...] |
/external/libvncserver/common/ |
H A D | zywrletemplate.c | 67 #define ZYWRLE_ANALYZE __RFB_CONCAT3E(zywrleAnalyze,BPP,END_FIX) 68 #define ZYWRLE_SYNTHESIZE __RFB_CONCAT3E(zywrleSynthesize,BPP,END_FIX) 70 #define ZYWRLE_RGBYUV __RFB_CONCAT3E(zywrleRGBYUV,BPP,END_FIX) 71 #define ZYWRLE_YUVRGB __RFB_CONCAT3E(zywrleYUVRGB,BPP,END_FIX) 72 #define ZYWRLE_YMASK __RFB_CONCAT2E(ZYWRLE_YMASK,BPP) 73 #define ZYWRLE_UVMASK __RFB_CONCAT2E(ZYWRLE_UVMASK,BPP) 74 #define ZYWRLE_LOAD_PIXEL __RFB_CONCAT2E(ZYWRLE_LOAD_PIXEL,BPP) 75 #define ZYWRLE_SAVE_PIXEL __RFB_CONCAT2E(ZYWRLE_SAVE_PIXEL,BPP)
|
/external/libyuv/files/source/ |
H A D | row_common.cc | 1045 #define RGBANY(NAMEANY, ARGBTORGB, BPP) \ 1051 memcpy(rgb_buf, row, width * BPP); \ 1067 #define YANY(NAMEANY, ARGBTOY_SSE, BPP) \ 1070 ARGBTOY_SSE(src_argb + (width - 16) * BPP, dst_y + (width - 16), 16); \ 1091 #define UVANY(NAMEANY, ANYTOUV_SSE, ANYTOUV_C, BPP) \ 1096 ANYTOUV_C(src_argb + n * BPP, src_stride_argb, \ 1120 #define UV422ANY(NAMEANY, ANYTOUV_SSE, ANYTOUV_C, BPP) \ 1125 ANYTOUV_C(src_argb + n * BPP, \
|
/external/clang/lib/CodeGen/ |
H A D | TargetInfo.cpp | 1255 llvm::Type *BPP = CGF.Int8PtrPtrTy; local 1258 llvm::Value *VAListAddrAsBPP = Builder.CreateBitCast(VAListAddr, BPP, 3081 llvm::Type *BPP = CGF.Int8PtrPtrTy; 3084 llvm::Value *VAListAddrAsBPP = Builder.CreateBitCast(VAListAddr, BPP, 3735 llvm::Type *BPP = CGF.Int8PtrPtrTy; 3738 llvm::Value *VAListAddrAsBPP = Builder.CreateBitCast(VAListAddr, BPP, "ap"); 4364 llvm::Type *BPP = llvm::PointerType::getUnqual(BP); 4367 llvm::Value *VAListAddrAsBPP = Builder.CreateBitCast(VAListAddr, BPP, "ap"); 4392 Addr = Builder.CreateLoad(Builder.CreateBitCast(Addr, BPP)); 4917 llvm::Type *BPP [all...] |
/external/libvncserver/x11vnc/ |
H A D | screen.c | 1298 #define COPY_RECT_FROM_RECT(BPP) \ 1300 uint##BPP##_t* _buffer=((uint##BPP##_t*)client->frameBuffer)+(src_y-dest_y)*client->width+src_x-dest_x; \ 1305 ((uint##BPP##_t*)client->frameBuffer)[j+i]=_buffer[j+i]; \ 1309 ((uint##BPP##_t*)client->frameBuffer)[j+i]=_buffer[j+i]; \ 1317 ((uint##BPP##_t*)client->frameBuffer)[j+i]=_buffer[j+i]; \ 1321 ((uint##BPP##_t*)client->frameBuffer)[j+i]=_buffer[j+i]; \
|
/external/libvncserver/x11vnc/misc/enhanced_tightvnc_viewer/bin/util/ |
H A D | ssvnc.tcl | 2317 Color depth of 16 bits per pixel (BPP). Choose one of the standard
|