/haiku/src/add-ons/accelerants/skeleton/engine/ |
H A D | bes.c | 51 if ((si->overlay.ow.h_start + (si->overlay.ow.width / 2)) < 96 /* width < 2 is not allowed */ 107 /* width < 2 is not allowed */ 108 if (si->overlay.ow.width < 2) 115 if ((si->overlay.ow.h_start + si->overlay.ow.width - 1) > (crtc_hend - 1)) 122 if ((si->overlay.ow.h_start + si->overlay.ow.width - 1) < (crtc_hstart + 1)) 124 /* width < 2 is not allowed */ 130 temp2 = ((uint16)(si->overlay.ow.h_start + si->overlay.ow.width - crtc_hstart - 1)) & 0x7ff; 210 if ((si->overlay.ow.h_start + si->overlay.ow.width - 1) < (crtc_hstart + 1)) 212 /* increase 'first contributing pixel' with 'fixed value': (total dest. width [all...] |
/haiku/src/add-ons/translators/ico/ |
H A D | ICO.cpp | 127 get_bytes_per_row(int32 width, int32 bitsPerPixel) argument 129 return (((bitsPerPixel * width + 7) / 8) + 3) & ~3; 254 int32 width, int32 height, int32 bytesPerRow) 257 for (int32 x = 0; x < width; x++) { 278 int32 xorRowBytes = get_bytes_per_row(entry.width, header.bits_per_pixel); 281 andRowBytes = get_bytes_per_row(entry.width, 1); 282 int32 outRowBytes = entry.width * 4; 318 for (uint32 x = 0; x < entry.width; x++) { 390 int32 xorRowBytes = get_bytes_per_row(entry.width, bitsPerPixel); 391 int32 andRowBytes = get_bytes_per_row(entry.width, 253 has_true_alpha_channel(color_space space, uint8 *data, int32 width, int32 height, int32 bytesPerRow) argument 665 int32 width = bitsHeader.bounds.IntegerWidth() + 1; local [all...] |
/haiku/src/add-ons/media/media-add-ons/radeon/ |
H A D | VideoIn.cpp | 42 int width, height; member in struct:__anon2577::__anon2578 46 int width, height; member in struct:__anon2577::__anon2579 50 int width, height; member in struct:__anon2577::__anon2580 148 video_in_capture_mode mode, int width, int height) 153 mode == C_VIDEO_IN_BOB ? "C_VIDEO_IN_BOB" : "C_VIDEO_IN_WEAVE", width, height); 162 width = Clamp(width, 0, kTiming[standard].active.width); 166 width = Clamp(width, 147 Start(video_in_source source, video_in_standard standard, video_in_capture_mode mode, int width, int height) argument [all...] |
/haiku/headers/libs/print/libprint/ |
H A D | Halftone.h | 35 int x, int y, int width); 74 int y, int width); 97 int x, int y, int width); 102 void SetupErrorBuffer(int x, int y, int width); 104 const uchar* source, int x, int y, int width);
|
/haiku/src/apps/haikudepot/ui_generic/ |
H A D | BitmapView.cpp | 53 float width = bitmapBounds.Width() * scale; local 60 bounds.left = floorf(bounds.right - width); 65 + (bounds.Width() - width) / 2.0f); 81 bounds.right = ceilf(bounds.left + width); 96 size.width = bounds.Width();
|
/haiku/src/system/kernel/debug/ |
H A D | frame_buffer_console.cpp | 52 int32 width; member in struct:console_info 276 console_fill_glyph(int32 x, int32 y, int32 width, int32 height, uint8 glyph, argument 283 int32 left = x + width; 300 console_blit(int32 srcx, int32 srcy, int32 width, int32 height, int32 destx, argument 311 width *= sConsole.font->glyphWidth * sConsole.bytes_per_pixel; 316 width = width * sConsole.font->glyphWidth / 8; 326 + srcx), width); 357 for (int32 x = 0; x < sConsole.width; x++) { 415 frame_buffer_update(addr_t baseAddress, int32 width, int3 argument 519 _user_frame_buffer_update(addr_t baseAddress, int32 width, int32 height, int32 depth, int32 bytesPerRow) argument [all...] |
/haiku/src/apps/debugger/user_interface/gui/teams_window/ |
H A D | TeamsListView.cpp | 72 TeamsColumn::TeamsColumn(const char* title, float width, float minWidth, argument 75 Inherited(title, width, minWidth, maxWidth, align), 96 float width = 0.0; local 103 width = rect.right - (x + r.Width()) - (2 * sTextMargin); 104 r.Set(x + r.Width(), rect.top, rect.right - width, rect.bottom); 109 width = (x - rect.left - (2 * sTextMargin)); 110 r.Set(rect.left, rect.top, rect.left + width, rect.bottom); 114 if (width != bitmapField->Width()) { 116 parent->TruncateString(&truncatedString, fTruncateMode, width + 2); 118 bitmapField->SetWidth(width); 133 float width = rect.Width() - (2 * sTextMargin); local 156 float width = 0.0; local [all...] |
/haiku/src/kits/tracker/ |
H A D | TextWidget.h | 62 void Draw(BRect widgetRect, BRect widgetTextRect, float width, BPoseView*, 64 void Draw(BRect widgetRect, BRect widgetTextRect, float width, BPoseView*, 73 // returns the rect derived from the formatted string width 80 // of the string width; faster than CalcRect 115 float width); 184 BTextWidget::Draw(BRect widgetRect, BRect widgetTextRect, float width, argument 187 Draw(widgetRect, widgetTextRect, width, view, (BView*)view, selected,
|
/haiku/headers/os/interface/ |
H A D | Alert.h | 44 button_width width = B_WIDTH_AS_USUAL, 48 const char* button3, button_width width, 64 void SetButtonWidth(button_width width); 93 static BPoint AlertPosition(float width, float height); 105 button_width width, button_spacing spacing,
|
/haiku/src/tests/servers/app/copy_bits/ |
H A D | main.cpp | 92 float width = r.Width(); local 98 StrokeLine(BPoint(r.left + (width / lineCount) * i, r.top), 100 StrokeLine(BPoint(r.right - (width / lineCount) * i, r.bottom), 118 width = StringWidth(message); 119 BPoint p(r.left + r.Width() / 2.0 - width / 2.0, 125 width = StringWidth(message); 126 p.x = r.left + r.Width() / 2.0 - width / 2.0; 132 width = StringWidth(message); 133 p.x = r.left + r.Width() / 2.0 - width / 2.0; 139 width [all...] |
/haiku/src/system/boot/platform/generic/ |
H A D | video_splash.cpp | 91 addr_t size = min_c(gKernelArgs.frame_buffer.width 139 int width = min_c(kSplashLogoWidth, gKernelArgs.frame_buffer.width); local 145 int x = (gKernelArgs.frame_buffer.width - width) * placementX / 100; 153 video_blit_image(frameBuffer, uncompressedLogo, width, height, 191 width = min_c(kSplashIconsWidth, gKernelArgs.frame_buffer.width); 197 x = (gKernelArgs.frame_buffer.width - width) * placement [all...] |
/haiku/src/add-ons/accelerants/3dfx/ |
H A D | overlay.cpp | 48 AllocateOverlayBuffer(color_space colorSpace, uint16 width, uint16 height) argument 52 TRACE("AllocateOverlayBuffer() width %u, height %u, colorSpace 0x%lx\n", 53 width, height, colorSpace); 78 uint32 buffSize = (width * bytesPerPixel * height + 0x3ff) & ~0x3ff; 147 ovBuff->width = width; 149 ovBuff->bytes_per_row = width * bytesPerPixel; 229 constraints->view.width.min = 4; 231 constraints->view.width.max = buffer->width; [all...] |
/haiku/src/apps/debuganalyzer/gui/table/ |
H A D | TableColumns.h | 18 int32 modelIndex, float width, 42 const char* title, float width, 63 const char* title, float width, 85 const char* title, float width, 101 const char* title, float width, 117 const char* title, float width, 137 const char* title, float width,
|
/haiku/src/libs/glut/ |
H A D | glutInit.cpp | 174 int flags, x, y, width, height; local 176 /* Fix bogus "{width|height} may be used before set" 178 width = 0; 182 (unsigned int *) &width, (unsigned int *) &height); 185 width windows */ 186 if (width > 0) 187 gState.initWidth = width; 262 void glutInitWindowSize(int width, int height) { argument 263 gState.initWidth = width;
|
/haiku/src/libs/icon/shape/ |
H A D | ReferenceImage.cpp | 39 double width = (int) Style()->Bitmap()->Bounds().Width() + 1; local 43 double longerSide = std::max(width, height); 47 Transform(&width, &height); 48 TranslateBy(BPoint((64-width)/2, (64-height)/2)); 212 double width = (int) Style()->Bitmap()->Bounds().Width() + 1; local 216 fPath->AddPoint(BPoint(width, height)); 217 fPath->AddPoint(BPoint(width, 0));
|
/haiku/src/add-ons/accelerants/via/ |
H A D | Overlay.c | 70 const overlay_buffer *ALLOCATE_OVERLAY_BUFFER(color_space cs, uint16 width, uint16 height) argument 99 si->overlay.myBuffer[offset].width = ((width + 0x0007) & ~0x0007); 100 si->overlay.myBuffer[offset].bytes_per_row = 2 * si->overlay.myBuffer[offset].width; 104 if (si->overlay.myBuffer[offset].width > 4088) 125 /* check if the requested buffer width is supported */ 126 if (si->overlay.myBuffer[offset].width > 1024) 128 LOG(4,("Overlay: Sorry, requested buffer width not supported, aborted\n")); 147 si->overlay.myBufInfo[offset].slopspace = si->overlay.myBuffer[offset].width - width; [all...] |
/haiku/src/add-ons/print/drivers/postscript/ |
H A D | PS.cpp | 245 int width = rc.right - rc.left + 1; local 246 int widthByte = (width + 7) / 8; 249 int in_size = color ? width : widthByte; 250 int out_size = color ? width * 6: widthByte * 2; 253 DBGMSG(("width = %d\n", width)); 276 int size = color ? width * 3 : in_size; 277 _StartRasterGraphics(x, y, width, height, size); 283 for (int w = width; w > 0; w --) { 293 fHalftone->Dither(&in_buffer[0], ptr, x, y, width); 368 _StartRasterGraphics(int x, int y, int width, int height, int widthByte) argument [all...] |
/haiku/src/system/boot/platform/efi/ |
H A D | video.cpp | 37 size_t width, height, bits_per_pixel, bytes_per_row; member in struct:video_mode 55 int compare = a->width - b->width; 89 closest_video_mode(uint32 width, uint32 height, uint32 depth) argument 96 if (mode->width > width) { 97 // Only choose modes with a width less or equal than the searched 102 int64 diff = 2 * abs((int64)mode->width - width) 136 uint32 width local 322 platform_blit4(addr_t frameBuffer, const uint8 *data, uint16 width, uint16 height, uint16 imageWidth, uint16 left, uint16 top) argument [all...] |
/haiku/src/add-ons/translators/bmp/ |
H A D | BMPTranslator.cpp | 170 // Parameters: width, width of the row, in pixels 179 get_padding(uint32 width, uint16 bitsperpixel) argument 185 padding = (width * bytesPerPixel) % 4; 188 if (!(width % pixelsPerByte)) 189 padding = (width / pixelsPerByte) % 4; 191 padding = ((width + pixelsPerByte - 192 (width % pixelsPerByte)) / 206 // with a width of width an 221 get_rowbytes(uint32 width, uint16 bitsperpixel) argument [all...] |
/haiku/src/add-ons/accelerants/neomagic/engine/ |
H A D | nm_bes.c | 62 /* width < 2 is not allowed */ 74 /* width < 2 is not allowed */ 75 if (si->overlay.ow.width < 2) 82 if ((si->overlay.ow.h_start + si->overlay.ow.width - 1) > (crtc_hend - 1)) 89 if ((si->overlay.ow.h_start + si->overlay.ow.width - 1) < (crtc_hstart + 1)) 91 /* width < 2 is not allowed */ 97 temp2 = ((uint16)(si->overlay.ow.h_start + si->overlay.ow.width - crtc_hstart - 1)); 178 if ((si->overlay.ow.h_start + si->overlay.ow.width - 1) < (crtc_hstart + 1)) 180 /* increase 'first contributing pixel' with 'fixed value': (total dest. width - 2) */ 181 hsrcstv += (si->overlay.ow.width [all...] |
/haiku/src/kits/interface/ |
H A D | StringView.cpp | 193 *_width = fPreferredSize.width; 227 float width, height; local 228 GetPreferredSize(&width, &height); 230 // Resize the width only for B_ALIGN_LEFT (if its large enough already, that is) 231 if (Bounds().Width() > width && Alignment() != B_ALIGN_LEFT) 232 width = Bounds().Width(); 234 BView::ResizeTo(width, height); 281 float width = StringWidth(text); local 283 if (fTruncation != B_NO_TRUNCATION && width > bounds.Width()) { 289 width 621 float width = StringWidth(lines.StringAt(i)); local [all...] |
H A D | TabView.cpp | 242 float width = owner->StringWidth(Label()); local 249 owner->StrokeLine(BPoint((frame.left + frame.right - width) / 2.0, 251 BPoint((frame.left + frame.right + width) / 2.0, 255 owner->StrokeLine(BPoint((frame.left + frame.right - width) / 2.0, 257 BPoint((frame.left + frame.right + width) / 2.0, 262 (frame.top + frame.bottom - width) / 2.0), 264 (frame.top + frame.bottom + width) / 2.0)); 268 (frame.top + frame.bottom - width) / 2.0), 270 (frame.top + frame.bottom + width) / 2.0)); 405 BTabView::BTabView(const char* name, button_width width, uint3 argument 413 BTabView(BRect frame, const char* name, button_width width, uint32 resizeMask, uint32 flags) argument 440 int16 width; local 1000 float width = padding * 5.0f; local 1255 SetTabWidth(button_width width) argument 1368 _InitObject(bool layouted, button_width width) argument [all...] |
/haiku/src/apps/icon-o-matic/generic/gui/panel/color_picker/ |
H A D | ColorSlider.cpp | 223 ColorSlider::FrameResized(float width, float height) argument 424 ColorSlider::_AllocBitmap(int32 width, int32 height) argument 426 if (width < 2 || height < 2) 430 fBitmap = new BBitmap(BRect(0, 0, width - 1, height - 1), 0, B_RGB32); 460 int32 width = bitmap->Bounds().IntegerWidth(); local 480 _DrawColorLineY(bits, width, r, g, b); 484 for (int x = 0; x <= width; x++) { 485 r = x * 255 / width; 498 _DrawColorLineY(bits, width, r, g, b); 502 for (int x = 0; x <= width; 588 _DrawColorLineY(uint8* bits, int width, int r, int g, int b) argument [all...] |
/haiku/src/apps/terminal/ |
H A D | BasicTerminalBuffer.cpp | 39 #define ALLOC_LINE_ON_STACK(width) \ 41 + sizeof(TerminalCell) * ((width) - 1))) 142 BasicTerminalBuffer::Init(int32 width, int32 height, int32 historySize) argument 146 fWidth = width; 162 fScreen = _AllocateLines(width, height); 171 error = fHistory->Init(width, historySize); 190 BasicTerminalBuffer::ResizeTo(int32 width, int32 height) argument 192 return ResizeTo(width, height, fHistory != NULL ? fHistory->Capacity() : 0); 197 BasicTerminalBuffer::ResizeTo(int32 width, int32 height, int32 historyCapacity) argument 200 || width < kMinColumnCoun 633 int32 width = c.IsFullWidth() ? FULL_WIDTH : HALF_WIDTH; local 670 uint32 width = HALF_WIDTH; local 1082 _AllocateLines(int32 width, int32 count) argument 1138 _ResizeHistory(int32 width, int32 historyCapacity) argument 1181 _ResizeSimple(int32 width, int32 height, int32 historyCapacity) argument 1263 _ResizeRewrap(int32 width, int32 height, int32 historyCapacity) argument 1457 _ResetTabStops(int32 width) argument 1633 _InsertGap(int32 width) argument [all...] |
/haiku/src/add-ons/media/media-add-ons/usb_webcam/addons/uvc/ |
H A D | UVCCamDevice.cpp | 233 descriptor->width, descriptor->height, 316 descriptor->imageSizePatterns[i].width, 558 UVCCamDevice::SuggestVideoFrame(uint32& width, uint32& height) argument 560 printf("UVCCamDevice::SuggestVideoFrame(%" B_PRIu32 ", %" B_PRIu32 ")\n", width, height); 564 width = 320; 566 if (!AcceptVideoFrame(width, height)) { 569 width = (*descriptor).width; 577 UVCCamDevice::AcceptVideoFrame(uint32& width, uint32& height) argument 579 printf("UVCCamDevice::AcceptVideoFrame(%" B_PRIu32 ", %" B_PRIu32 ")\n", width, heigh 1268 _DecodeColor(unsigned char* dst, unsigned char* src, int32 width, int32 height) argument [all...] |