Lines Matching refs:width
48 WriteVerticalLine(VGLBitmap *dst, int x, int y, int width, byte *line) in WriteVerticalLine() argument
60 end_offset = (x + width) & 0x07; in WriteVerticalLine()
61 i = (width + start_offset) / 8; in WriteVerticalLine()
71 while (pos < width) { in WriteVerticalLine()
73 while (pos < last && pos < width) in WriteVerticalLine()
91 width+=8; in WriteVerticalLine()
92 width /= 8; in WriteVerticalLine()
106 bcopy(&VGLPlane[i][0], dst->Bitmap + pos, width); in WriteVerticalLine()
115 for (last = width; ; ) { in WriteVerticalLine()
117 bcopy(&VGLPlane[i][width - last], dst->Bitmap + offset, len); in WriteVerticalLine()
132 for (planepos=0, pos=i; pos<width; planepos++, pos+=4) in WriteVerticalLine()
140 while (width > 0) { in WriteVerticalLine()
142 i = min(VGLAdpInfo.va_window_size - offset, width); in WriteVerticalLine()
146 width -= i; in WriteVerticalLine()
152 width = width * dst->PixelBytes; in WriteVerticalLine()
154 while (width > 0) { in WriteVerticalLine()
156 i = min(VGLAdpInfo.va_window_size - offset, width); in WriteVerticalLine()
160 width -= i; in WriteVerticalLine()
166 bcopy(line, address, width); in WriteVerticalLine()
172 bcopy(line, address, width * dst->PixelBytes); in WriteVerticalLine()
180 ReadVerticalLine(VGLBitmap *src, int x, int y, int width, byte *line) in ReadVerticalLine() argument
190 end_offset = (x + width) & 0x07; in ReadVerticalLine()
191 count = (width + start_offset) / 8; in ReadVerticalLine()
214 end_offset = (x + width) & 0x07; in ReadVerticalLine()
215 count = (width + start_offset) / 8; in ReadVerticalLine()
231 while (pos < width) { in ReadVerticalLine()
232 for (; bit >= 0 && pos < width; bit--, pos++) { in ReadVerticalLine()
247 for (planepos=0, pos=i; pos<width; planepos++, pos+=4) in ReadVerticalLine()
255 while (width > 0) { in ReadVerticalLine()
257 i = min(VGLAdpInfo.va_window_size - offset, width); in ReadVerticalLine()
261 width -= i; in ReadVerticalLine()
267 width = width * src->PixelBytes; in ReadVerticalLine()
269 while (width > 0) { in ReadVerticalLine()
271 i = min(VGLAdpInfo.va_window_size - offset, width); in ReadVerticalLine()
275 width -= i; in ReadVerticalLine()
281 bcopy(address, line, width); in ReadVerticalLine()
287 bcopy(address, line, width * src->PixelBytes); in ReadVerticalLine()
296 VGLBitmap *dst, int dstx, int dsty, int width, int hight) in __VGLBitmapCopy() argument
304 width=width+srcx; dstx-=srcx; srcx=0; in __VGLBitmapCopy()
310 width=width+dstx; srcx-=dstx; dstx=0; in __VGLBitmapCopy()
315 if (srcx+width > src->VXsize) in __VGLBitmapCopy()
316 width=src->VXsize-srcx; in __VGLBitmapCopy()
319 if (dstx+width > dst->VXsize) in __VGLBitmapCopy()
320 width=dst->VXsize-dstx; in __VGLBitmapCopy()
323 if (width < 0 || hight < 0) in __VGLBitmapCopy()
327 WriteVerticalLine(dst, dstx, dstline, width, in __VGLBitmapCopy()
333 ReadVerticalLine(src, srcx, srcline, width, in __VGLBitmapCopy()
341 if (width > sizeof(buffer)) { in __VGLBitmapCopy()
342 p = malloc(width); in __VGLBitmapCopy()
349 ReadVerticalLine(src, srcx, srcline, width, p); in __VGLBitmapCopy()
350 WriteVerticalLine(dst, dstx, dstline, width, p); in __VGLBitmapCopy()
352 if (width > sizeof(buffer)) in __VGLBitmapCopy()
360 VGLBitmap *dst, int dstx, int dsty, int width, int hight) in VGLBitmapCopy() argument
364 VGLMouseFreeze(dstx, dsty, width, hight, 0); in VGLBitmapCopy()
365 error = __VGLBitmapCopy(src, srcx, srcy, dst, dstx, dsty, width, hight); in VGLBitmapCopy()