/external/libvncserver/examples/ |
camera.c | 48 #define BPP 4 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/libvpx/libvpx/third_party/libyuv/source/ |
row_any.cc | 26 #define ANY41C(NAMEANY, ANY_SIMD, UVSHIFT, DUVSHIFT, BPP, MASK) \ 43 memcpy(dst_ptr + (n >> DUVSHIFT) * BPP, temp + 256, \ 44 SS(r, DUVSHIFT) * BPP); \ 59 #define ANY31(NAMEANY, ANY_SIMD, UVSHIFT, DUVSHIFT, BPP, MASK) \ 73 memcpy(dst_ptr + (n >> DUVSHIFT) * BPP, temp + 192, \ 74 SS(r, DUVSHIFT) * BPP); \ 97 #define ANY31C(NAMEANY, ANY_SIMD, UVSHIFT, DUVSHIFT, BPP, MASK) \ 117 memcpy(dst_ptr + (n >> DUVSHIFT) * BPP, temp + 192, \ 118 SS(r, DUVSHIFT) * BPP); \ 172 #define ANY21(NAMEANY, ANY_SIMD, UVSHIFT, SBPP, SBPP2, BPP, MASK) [all...] |
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); \ 61 #define SDODD(NAMEANY, SCALEROWDOWN_SIMD, SCALEROWDOWN_C, FACTOR, BPP, MASK) \ 69 SCALEROWDOWN_C(src_ptr + (n * FACTOR) * BPP, src_stride, \ 70 dst_ptr + n * BPP, r); \ 167 #define SDAANY(NAMEANY, SCALEROWDOWN_SIMD, SCALEROWDOWN_C, BPP, MASK) \ 175 SCALEROWDOWN_C(src_ptr + (n * src_stepx) * BPP, src_stride, [all...] |
row_common.cc | 315 #define MAKEROWY(NAME, R, G, B, BPP) \ 320 src_argb0 += BPP; \ 329 uint8 ab = (src_rgb0[B] + src_rgb0[B + BPP] + \ 330 src_rgb1[B] + src_rgb1[B + BPP]) >> 2; \ 331 uint8 ag = (src_rgb0[G] + src_rgb0[G + BPP] + \ 332 src_rgb1[G] + src_rgb1[G + BPP]) >> 2; \ 333 uint8 ar = (src_rgb0[R] + src_rgb0[R + BPP] + \ 334 src_rgb1[R] + src_rgb1[R + BPP]) >> 2; \ 337 src_rgb0 += BPP * 2; \ 338 src_rgb1 += BPP * 2; [all...] |
/external/libvncserver/libvncclient/ |
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;
|
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==3 [all...] |
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 / 8)) != uncompressedBytes [all...] |
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 ));
|
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)
|
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...] |
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!= 301 bpp=(type>4?(type>16?8:4):(type>2?2:1)), local [all...] |
rfbproto.c | 153 #define FILL_RECT(BPP) \ 156 ((uint##BPP##_t*)client->frameBuffer)[j+i]=colour; 174 #define COPY_RECT(BPP) \ 176 int rs = w * BPP / 8, rs2 = client->width * BPP / 8; \ 177 for (j = ((x * (BPP / 8)) + (y * rs2)); j < (y + h) * rs2; j += rs2) { \ 196 #define COPY_RECT_FROM_RECT(BPP) \ 198 uint##BPP##_t* _buffer=((uint##BPP##_t*)client->frameBuffer)+(src_y-dest_y)*client->width+src_x-dest_x; \ 203 ((uint##BPP##_t*)client->frameBuffer)[j+i]=_buffer[j+i]; [all...] |
h264.c | 86 #define BPP (4 * 8) 133 * decompressed data. In practice, with a fixed BPP, fixed frame 138 if ( client->raw_buffer_size < (( rw * rh ) * ( BPP / 8 ))) { 143 client->raw_buffer_size = (( rw * rh ) * ( BPP / 8 )); 145 rfbClientLog("Allocated raw buffer of %d bytes (%dx%dx%d BPP)\n", client->raw_buffer_size, rw, rh, BPP);
|
/external/libvncserver/libvncserver/ |
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...] |
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)
|
zrle.c | 46 #define BPP 8 49 #undef BPP 50 #define BPP 15 57 #undef BPP 58 #define BPP 16 65 #undef BPP 66 #define BPP 32 89 #undef BPP
|
translate.c | 113 #define BPP2OFFSET(bpp) ((bpp)/8-1) 115 #define BPP 8 117 #undef BPP 118 #define BPP 16 120 #undef BPP 121 #define BPP 24 123 #undef BPP 124 #define BPP 32 126 #undef BPP [all...] |
/external/libyuv/files/source/ |
row_any.cc | 34 #define ANY41C(NAMEANY, ANY_SIMD, UVSHIFT, DUVSHIFT, BPP, MASK) \ 51 memcpy(dst_ptr + (n >> DUVSHIFT) * BPP, temp + 256, \ 52 SS(r, DUVSHIFT) * BPP); \ 70 #define ANY31(NAMEANY, ANY_SIMD, UVSHIFT, DUVSHIFT, BPP, MASK) \ 84 memcpy(dst_ptr + (n >> DUVSHIFT) * BPP, temp + 192, \ 85 SS(r, DUVSHIFT) * BPP); \ 114 #define ANY31C(NAMEANY, ANY_SIMD, UVSHIFT, DUVSHIFT, BPP, MASK) \ 133 memcpy(dst_ptr + (n >> DUVSHIFT) * BPP, temp + 192, \ 134 SS(r, DUVSHIFT) * BPP); \ 196 #define ANY21(NAMEANY, ANY_SIMD, UVSHIFT, SBPP, SBPP2, BPP, MASK) [all...] |
scale_any.cc | 22 #define CANY(NAMEANY, TERP_SIMD, TERP_C, BPP, MASK) \ 29 TERP_C(dst_ptr + n * BPP, src_ptr, dst_width & MASK, x + n * dx, dx); \ 48 #define SDANY(NAMEANY, SCALEROWDOWN_SIMD, SCALEROWDOWN_C, FACTOR, BPP, MASK) \ 56 SCALEROWDOWN_C(src_ptr + (n * FACTOR) * BPP, src_stride, \ 57 dst_ptr + n * BPP, r); \ 63 #define SDODD(NAMEANY, SCALEROWDOWN_SIMD, SCALEROWDOWN_C, FACTOR, BPP, MASK) \ 71 SCALEROWDOWN_C(src_ptr + (n * FACTOR) * BPP, src_stride, \ 72 dst_ptr + n * BPP, r); \ 353 #define SDAANY(NAMEANY, SCALEROWDOWN_SIMD, SCALEROWDOWN_C, BPP, MASK) \ 361 SCALEROWDOWN_C(src_ptr + (n * src_stepx) * BPP, src_stride, src_stepx, [all...] |
row_common.cc | 316 #define MAKEROWY(NAME, R, G, B, BPP) \ 321 src_argb0 += BPP; \ 330 uint8 ab = (src_rgb0[B] + src_rgb0[B + BPP] + src_rgb1[B] + \ 331 src_rgb1[B + BPP]) >> \ 333 uint8 ag = (src_rgb0[G] + src_rgb0[G + BPP] + src_rgb1[G] + \ 334 src_rgb1[G + BPP]) >> \ 336 uint8 ar = (src_rgb0[R] + src_rgb0[R + BPP] + src_rgb1[R] + \ 337 src_rgb1[R + BPP]) >> \ 341 src_rgb0 += BPP * 2; \ 342 src_rgb1 += BPP * 2; [all...] |
/external/libvncserver/common/ |
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)
|
/prebuilts/misc/windows/sdl2/test/ |
testgesture.c | 49 #define BPP 4 100 pixmem32 = (Uint32*) screen->pixels + y*screen->pitch/BPP + x;
|
/external/python/cpython2/Modules/ |
imgfile.c | 110 if ( BPP(image->type) != 1 ) { 113 "Can't handle imgfiles with bpp!=1"); 299 if ( BPP(image->type) != 1 ) { 302 "Can't handle imgfiles with bpp!=1");
|
/cts/tests/camera/src/android/hardware/camera2/cts/ |
AllocationTest.java | 431 final int BPP = 8; // bits per pixel 447 width * height * ImageFormat.getBitsPerPixel(YUV_420_888) / BPP; [all...] |
/external/webrtc/talk/session/media/ |
planarfunctions_unittest.cc | [all...] |