/dports/net/libvncserver/libvncserver-LibVNCServer-0.9.13/examples/ |
H A D | pnmshow24.c | 29 int j,width,height,paddedWidth; in main() local 58 paddedWidth = width; in main() 63 paddedWidth+=4-(width&3); in main() 66 rfbScreen = rfbGetScreen(&argc,argv,paddedWidth,height,8,3,3); in main() 80 rfbScreen->frameBuffer = (char*)malloc(paddedWidth*3*height); in main() 87 if(width != paddedWidth) { in main() 88 int padCount = 3*(paddedWidth - width); in main() 90 memmove(rfbScreen->frameBuffer+3*paddedWidth*j, in main() 93 memset(rfbScreen->frameBuffer+3*paddedWidth*(j+1)-padCount, in main()
|
H A D | pnmshow.c | 19 int i,j,k,l,width,height,paddedWidth; in main() local 62 paddedWidth = width; in main() 64 paddedWidth+=4-(width&3); in main() 67 rfbScreen = rfbGetScreen(&argc,argv,paddedWidth,height,8,(bitsPerPixelInFile+7)/8,bytesPerPixel); in main() 81 rfbScreen->frameBuffer = (char*)malloc(paddedWidth*bytesPerPixel*height); in main() 104 rfbScreen->frameBuffer[(j*paddedWidth+i)*4+k]= in main() 106 for(i=width*4;i<paddedWidth*4;i++) in main() 107 rfbScreen->frameBuffer[j*paddedWidth*4+i]=0; in main() 118 rfbScreen->frameBuffer[j*paddedWidth+i+7-k]=(l&(1<<k))?0:255; in main()
|
/dports/misc/veles/veles-2018.05.0/src/data/ |
H A D | repack.cc | 29 unsigned res = paddedWidth() / gcd(paddedWidth(), from_width) * from_width; in repackUnit() 31 assert(res % paddedWidth() == 0 && res % from_width == 0); in repackUnit() 36 size_t bits = num_elements * paddedWidth(); in repackSize() 37 assert(bits / paddedWidth() == num_elements); in repackSize() 44 return bits / paddedWidth(); in repackableSize() 51 unsigned dst_per_unit = repack_unit / paddedWidth(); in repack() 81 work_pos = i * paddedWidth() + low_pad; in repack() 84 work_pos = (dst_per_unit - i - 1) * paddedWidth() + low_pad; in repack()
|
/dports/net/tigervnc-server/tigervnc-1.12.0/unix/xserver/hw/kdrive/src/ |
H A D | kshadow.c | 31 int paddedWidth; in KdShadowFbAlloc() local 38 paddedWidth = ((width * bpp + FB_MASK) >> FB_SHIFT) * sizeof(FbBits); in KdShadowFbAlloc() 39 buf = xallocarray(paddedWidth, height); in KdShadowFbAlloc() 46 screen->fb.byteStride = paddedWidth; in KdShadowFbAlloc() 47 screen->fb.pixelStride = paddedWidth * 8 / bpp; in KdShadowFbAlloc()
|
/dports/x11-servers/xorg-dmx/xorg-server-1.20.13/hw/kdrive/src/ |
H A D | kshadow.c | 31 int paddedWidth; in KdShadowFbAlloc() local 38 paddedWidth = ((width * bpp + FB_MASK) >> FB_SHIFT) * sizeof(FbBits); in KdShadowFbAlloc() 39 buf = xallocarray(paddedWidth, height); in KdShadowFbAlloc() 46 screen->fb.byteStride = paddedWidth; in KdShadowFbAlloc() 47 screen->fb.pixelStride = paddedWidth * 8 / bpp; in KdShadowFbAlloc()
|
/dports/x11-servers/xwayland-devel/xorg-xserver-xorg-server-21.0.99.1-177-g9e5a37961/hw/kdrive/src/ |
H A D | kshadow.c | 31 int paddedWidth; in KdShadowFbAlloc() local 38 paddedWidth = ((width * bpp + FB_MASK) >> FB_SHIFT) * sizeof(FbBits); in KdShadowFbAlloc() 39 buf = xallocarray(paddedWidth, height); in KdShadowFbAlloc() 46 screen->fb.byteStride = paddedWidth; in KdShadowFbAlloc() 47 screen->fb.pixelStride = paddedWidth * 8 / bpp; in KdShadowFbAlloc()
|
/dports/x11-servers/xorg-vfbserver/xorg-server-1.20.13/hw/kdrive/src/ |
H A D | kshadow.c | 31 int paddedWidth; in KdShadowFbAlloc() local 38 paddedWidth = ((width * bpp + FB_MASK) >> FB_SHIFT) * sizeof(FbBits); in KdShadowFbAlloc() 39 buf = xallocarray(paddedWidth, height); in KdShadowFbAlloc() 46 screen->fb.byteStride = paddedWidth; in KdShadowFbAlloc() 47 screen->fb.pixelStride = paddedWidth * 8 / bpp; in KdShadowFbAlloc()
|
/dports/x11-servers/xorg-server/xorg-server-1.20.13/hw/kdrive/src/ |
H A D | kshadow.c | 31 int paddedWidth; in KdShadowFbAlloc() local 38 paddedWidth = ((width * bpp + FB_MASK) >> FB_SHIFT) * sizeof(FbBits); in KdShadowFbAlloc() 39 buf = xallocarray(paddedWidth, height); in KdShadowFbAlloc() 46 screen->fb.byteStride = paddedWidth; in KdShadowFbAlloc() 47 screen->fb.pixelStride = paddedWidth * 8 / bpp; in KdShadowFbAlloc()
|
/dports/x11-servers/xephyr/xorg-server-1.20.13/hw/kdrive/src/ |
H A D | kshadow.c | 31 int paddedWidth; in KdShadowFbAlloc() local 38 paddedWidth = ((width * bpp + FB_MASK) >> FB_SHIFT) * sizeof(FbBits); in KdShadowFbAlloc() 39 buf = xallocarray(paddedWidth, height); in KdShadowFbAlloc() 46 screen->fb.byteStride = paddedWidth; in KdShadowFbAlloc() 47 screen->fb.pixelStride = paddedWidth * 8 / bpp; in KdShadowFbAlloc()
|
/dports/x11-servers/xorg-nestserver/xorg-server-1.20.13/hw/kdrive/src/ |
H A D | kshadow.c | 31 int paddedWidth; in KdShadowFbAlloc() local 38 paddedWidth = ((width * bpp + FB_MASK) >> FB_SHIFT) * sizeof(FbBits); in KdShadowFbAlloc() 39 buf = xallocarray(paddedWidth, height); in KdShadowFbAlloc() 46 screen->fb.byteStride = paddedWidth; in KdShadowFbAlloc() 47 screen->fb.pixelStride = paddedWidth * 8 / bpp; in KdShadowFbAlloc()
|
/dports/x11-servers/xarcan/xarcan-0.6.0/hw/kdrive/src/ |
H A D | kshadow.c | 31 int paddedWidth; in KdShadowFbAlloc() local 38 paddedWidth = ((width * bpp + FB_MASK) >> FB_SHIFT) * sizeof(FbBits); in KdShadowFbAlloc() 39 buf = xallocarray(paddedWidth, height); in KdShadowFbAlloc() 46 screen->fb.byteStride = paddedWidth; in KdShadowFbAlloc() 47 screen->fb.pixelStride = paddedWidth * 8 / bpp; in KdShadowFbAlloc()
|
/dports/x11-servers/xwayland/xorg-server-1.20.13/hw/kdrive/src/ |
H A D | kshadow.c | 31 int paddedWidth; in KdShadowFbAlloc() local 38 paddedWidth = ((width * bpp + FB_MASK) >> FB_SHIFT) * sizeof(FbBits); in KdShadowFbAlloc() 39 buf = xallocarray(paddedWidth, height); in KdShadowFbAlloc() 46 screen->fb.byteStride = paddedWidth; in KdShadowFbAlloc() 47 screen->fb.pixelStride = paddedWidth * 8 / bpp; in KdShadowFbAlloc()
|
/dports/net/tigervnc-server/tigervnc-1.12.0/unix/xserver/exa/ |
H A D | exa_driver.c | 56 size_t paddedWidth, datasize; in exaCreatePixmap_driver() local 86 paddedWidth = pExaPixmap->fb_pitch = new_pitch; in exaCreatePixmap_driver() 89 paddedWidth = ((w * bpp + FB_MASK) >> FB_SHIFT) * sizeof(FbBits); in exaCreatePixmap_driver() 90 if (paddedWidth / 4 > 32767 || h > 32767) in exaCreatePixmap_driver() 95 if (paddedWidth < pExaPixmap->fb_pitch) in exaCreatePixmap_driver() 96 paddedWidth = pExaPixmap->fb_pitch; in exaCreatePixmap_driver() 97 datasize = h * paddedWidth; in exaCreatePixmap_driver() 115 (*pScreen->ModifyPixmapHeader) (pPixmap, w, h, 0, 0, paddedWidth, NULL); in exaCreatePixmap_driver()
|
H A D | exa_migration_mixed.c | 44 int paddedWidth = pExaPixmap->sys_pitch; in exaCreateDriverPixmap_mixed() local 63 paddedWidth = pExaPixmap->fb_pitch = new_pitch; in exaCreateDriverPixmap_mixed() 66 if (paddedWidth < pExaPixmap->fb_pitch) in exaCreateDriverPixmap_mixed() 67 paddedWidth = pExaPixmap->fb_pitch; in exaCreateDriverPixmap_mixed() 69 pExaScr->info->CreatePixmap(pScreen, paddedWidth * h, 0); in exaCreateDriverPixmap_mixed() 75 (*pScreen->ModifyPixmapHeader) (pPixmap, w, h, 0, 0, paddedWidth, NULL); in exaCreateDriverPixmap_mixed()
|
/dports/x11-servers/xwayland-devel/xorg-xserver-xorg-server-21.0.99.1-177-g9e5a37961/exa/ |
H A D | exa_driver.c | 56 size_t paddedWidth, datasize; in exaCreatePixmap_driver() local 86 paddedWidth = pExaPixmap->fb_pitch = new_pitch; in exaCreatePixmap_driver() 89 paddedWidth = ((w * bpp + FB_MASK) >> FB_SHIFT) * sizeof(FbBits); in exaCreatePixmap_driver() 90 if (paddedWidth / 4 > 32767 || h > 32767) in exaCreatePixmap_driver() 95 if (paddedWidth < pExaPixmap->fb_pitch) in exaCreatePixmap_driver() 96 paddedWidth = pExaPixmap->fb_pitch; in exaCreatePixmap_driver() 97 datasize = h * paddedWidth; in exaCreatePixmap_driver() 115 (*pScreen->ModifyPixmapHeader) (pPixmap, w, h, 0, 0, paddedWidth, NULL); in exaCreatePixmap_driver()
|
H A D | exa_migration_mixed.c | 44 int paddedWidth = pExaPixmap->sys_pitch; in exaCreateDriverPixmap_mixed() local 63 paddedWidth = pExaPixmap->fb_pitch = new_pitch; in exaCreateDriverPixmap_mixed() 66 if (paddedWidth < pExaPixmap->fb_pitch) in exaCreateDriverPixmap_mixed() 67 paddedWidth = pExaPixmap->fb_pitch; in exaCreateDriverPixmap_mixed() 69 pExaScr->info->CreatePixmap(pScreen, paddedWidth * h, 0); in exaCreateDriverPixmap_mixed() 75 (*pScreen->ModifyPixmapHeader) (pPixmap, w, h, 0, 0, paddedWidth, NULL); in exaCreateDriverPixmap_mixed()
|
/dports/x11-servers/xorg-vfbserver/xorg-server-1.20.13/exa/ |
H A D | exa_driver.c | 56 size_t paddedWidth, datasize; in exaCreatePixmap_driver() local 86 paddedWidth = pExaPixmap->fb_pitch = new_pitch; in exaCreatePixmap_driver() 89 paddedWidth = ((w * bpp + FB_MASK) >> FB_SHIFT) * sizeof(FbBits); in exaCreatePixmap_driver() 90 if (paddedWidth / 4 > 32767 || h > 32767) in exaCreatePixmap_driver() 95 if (paddedWidth < pExaPixmap->fb_pitch) in exaCreatePixmap_driver() 96 paddedWidth = pExaPixmap->fb_pitch; in exaCreatePixmap_driver() 97 datasize = h * paddedWidth; in exaCreatePixmap_driver() 115 (*pScreen->ModifyPixmapHeader) (pPixmap, w, h, 0, 0, paddedWidth, NULL); in exaCreatePixmap_driver()
|
/dports/x11-servers/xorg-dmx/xorg-server-1.20.13/exa/ |
H A D | exa_driver.c | 56 size_t paddedWidth, datasize; in exaCreatePixmap_driver() local 86 paddedWidth = pExaPixmap->fb_pitch = new_pitch; in exaCreatePixmap_driver() 89 paddedWidth = ((w * bpp + FB_MASK) >> FB_SHIFT) * sizeof(FbBits); in exaCreatePixmap_driver() 90 if (paddedWidth / 4 > 32767 || h > 32767) in exaCreatePixmap_driver() 95 if (paddedWidth < pExaPixmap->fb_pitch) in exaCreatePixmap_driver() 96 paddedWidth = pExaPixmap->fb_pitch; in exaCreatePixmap_driver() 97 datasize = h * paddedWidth; in exaCreatePixmap_driver() 115 (*pScreen->ModifyPixmapHeader) (pPixmap, w, h, 0, 0, paddedWidth, NULL); in exaCreatePixmap_driver()
|
/dports/x11-servers/xorg-server/xorg-server-1.20.13/exa/ |
H A D | exa_driver.c | 56 size_t paddedWidth, datasize; in exaCreatePixmap_driver() local 86 paddedWidth = pExaPixmap->fb_pitch = new_pitch; in exaCreatePixmap_driver() 89 paddedWidth = ((w * bpp + FB_MASK) >> FB_SHIFT) * sizeof(FbBits); in exaCreatePixmap_driver() 90 if (paddedWidth / 4 > 32767 || h > 32767) in exaCreatePixmap_driver() 95 if (paddedWidth < pExaPixmap->fb_pitch) in exaCreatePixmap_driver() 96 paddedWidth = pExaPixmap->fb_pitch; in exaCreatePixmap_driver() 97 datasize = h * paddedWidth; in exaCreatePixmap_driver() 115 (*pScreen->ModifyPixmapHeader) (pPixmap, w, h, 0, 0, paddedWidth, NULL); in exaCreatePixmap_driver()
|
/dports/x11-servers/xephyr/xorg-server-1.20.13/exa/ |
H A D | exa_driver.c | 56 size_t paddedWidth, datasize; in exaCreatePixmap_driver() local 86 paddedWidth = pExaPixmap->fb_pitch = new_pitch; in exaCreatePixmap_driver() 89 paddedWidth = ((w * bpp + FB_MASK) >> FB_SHIFT) * sizeof(FbBits); in exaCreatePixmap_driver() 90 if (paddedWidth / 4 > 32767 || h > 32767) in exaCreatePixmap_driver() 95 if (paddedWidth < pExaPixmap->fb_pitch) in exaCreatePixmap_driver() 96 paddedWidth = pExaPixmap->fb_pitch; in exaCreatePixmap_driver() 97 datasize = h * paddedWidth; in exaCreatePixmap_driver() 115 (*pScreen->ModifyPixmapHeader) (pPixmap, w, h, 0, 0, paddedWidth, NULL); in exaCreatePixmap_driver()
|
H A D | exa_migration_mixed.c | 44 int paddedWidth = pExaPixmap->sys_pitch; in exaCreateDriverPixmap_mixed() local 63 paddedWidth = pExaPixmap->fb_pitch = new_pitch; in exaCreateDriverPixmap_mixed() 66 if (paddedWidth < pExaPixmap->fb_pitch) in exaCreateDriverPixmap_mixed() 67 paddedWidth = pExaPixmap->fb_pitch; in exaCreateDriverPixmap_mixed() 69 pExaScr->info->CreatePixmap(pScreen, paddedWidth * h, 0); in exaCreateDriverPixmap_mixed() 75 (*pScreen->ModifyPixmapHeader) (pPixmap, w, h, 0, 0, paddedWidth, NULL); in exaCreateDriverPixmap_mixed()
|
/dports/x11-servers/xarcan/xarcan-0.6.0/exa/ |
H A D | exa_driver.c | 56 size_t paddedWidth, datasize; in exaCreatePixmap_driver() local 86 paddedWidth = pExaPixmap->fb_pitch = new_pitch; in exaCreatePixmap_driver() 89 paddedWidth = ((w * bpp + FB_MASK) >> FB_SHIFT) * sizeof(FbBits); in exaCreatePixmap_driver() 90 if (paddedWidth / 4 > 32767 || h > 32767) in exaCreatePixmap_driver() 95 if (paddedWidth < pExaPixmap->fb_pitch) in exaCreatePixmap_driver() 96 paddedWidth = pExaPixmap->fb_pitch; in exaCreatePixmap_driver() 97 datasize = h * paddedWidth; in exaCreatePixmap_driver() 115 (*pScreen->ModifyPixmapHeader) (pPixmap, w, h, 0, 0, paddedWidth, NULL); in exaCreatePixmap_driver()
|
/dports/x11-servers/xorg-nestserver/xorg-server-1.20.13/exa/ |
H A D | exa_driver.c | 56 size_t paddedWidth, datasize; in exaCreatePixmap_driver() local 86 paddedWidth = pExaPixmap->fb_pitch = new_pitch; in exaCreatePixmap_driver() 89 paddedWidth = ((w * bpp + FB_MASK) >> FB_SHIFT) * sizeof(FbBits); in exaCreatePixmap_driver() 90 if (paddedWidth / 4 > 32767 || h > 32767) in exaCreatePixmap_driver() 95 if (paddedWidth < pExaPixmap->fb_pitch) in exaCreatePixmap_driver() 96 paddedWidth = pExaPixmap->fb_pitch; in exaCreatePixmap_driver() 97 datasize = h * paddedWidth; in exaCreatePixmap_driver() 115 (*pScreen->ModifyPixmapHeader) (pPixmap, w, h, 0, 0, paddedWidth, NULL); in exaCreatePixmap_driver()
|
H A D | exa_migration_mixed.c | 44 int paddedWidth = pExaPixmap->sys_pitch; in exaCreateDriverPixmap_mixed() local 63 paddedWidth = pExaPixmap->fb_pitch = new_pitch; in exaCreateDriverPixmap_mixed() 66 if (paddedWidth < pExaPixmap->fb_pitch) in exaCreateDriverPixmap_mixed() 67 paddedWidth = pExaPixmap->fb_pitch; in exaCreateDriverPixmap_mixed() 69 pExaScr->info->CreatePixmap(pScreen, paddedWidth * h, 0); in exaCreateDriverPixmap_mixed() 75 (*pScreen->ModifyPixmapHeader) (pPixmap, w, h, 0, 0, paddedWidth, NULL); in exaCreateDriverPixmap_mixed()
|
/dports/x11-servers/xwayland/xorg-server-1.20.13/exa/ |
H A D | exa_driver.c | 56 size_t paddedWidth, datasize; in exaCreatePixmap_driver() local 86 paddedWidth = pExaPixmap->fb_pitch = new_pitch; in exaCreatePixmap_driver() 89 paddedWidth = ((w * bpp + FB_MASK) >> FB_SHIFT) * sizeof(FbBits); in exaCreatePixmap_driver() 90 if (paddedWidth / 4 > 32767 || h > 32767) in exaCreatePixmap_driver() 95 if (paddedWidth < pExaPixmap->fb_pitch) in exaCreatePixmap_driver() 96 paddedWidth = pExaPixmap->fb_pitch; in exaCreatePixmap_driver() 97 datasize = h * paddedWidth; in exaCreatePixmap_driver() 115 (*pScreen->ModifyPixmapHeader) (pPixmap, w, h, 0, 0, paddedWidth, NULL); in exaCreatePixmap_driver()
|