/haiku/src/system/libroot/posix/musl/search/ |
H A D | tsearch.c | 5 static inline int height(struct node *n) { return n ? n->h : 0; } function 12 int hz = height(z); 13 if (hz > height(y->a[dir])) { 48 /* balance *p, return 0 if height is unchanged. */ 52 int h0 = height(n->a[0]); 53 int h1 = height(n->a[1]);
|
/haiku/src/system/kernel/debug/ |
H A D | frame_buffer_console.cpp | 53 int32 height; member in struct:console_info 276 console_fill_glyph(int32 x, int32 y, int32 width, int32 height, uint8 glyph, argument 287 int32 bottom = y + height; 300 console_blit(int32 srcx, int32 srcy, int32 width, int32 height, int32 destx, argument 306 height *= sConsole.font->glyphHeight; 322 for (int32 y = 0; y < height; y++) { 344 sConsole.height * sConsole.bytes_per_row); 348 sConsole.height * sConsole.bytes_per_row); 356 for (int32 y = 0; y < sConsole.height; y++) { 415 frame_buffer_update(addr_t baseAddress, int32 width, int32 height, int3 argument 519 _user_frame_buffer_update(addr_t baseAddress, int32 width, int32 height, int32 depth, int32 bytesPerRow) argument [all...] |
/haiku/src/kits/interface/ |
H A D | ColorConversion.cpp | 595 BPoint dstOffset, int32 width, int32 height, bool srcSwap, bool dstSwap, 615 height += srcOffsetY; 624 height += dstOffsetY; 660 for (int32 i = 0; i < height; i++) { 734 BPoint dstOffset, int32 width, int32 height, bool srcSwap, bool dstSwap, 754 height += srcOffsetY; 763 height += dstOffsetY; 789 for (int32 i = 0; i < height; i++) { 817 for (int32 i = 0; i < height; i++) { 898 int32 height, boo 589 ConvertBits64To32(const srcByte *srcBits, dstByte *dstBits, int32 srcBitsLength, int32 dstBitsLength, int32 redShift, int32 greenShift, int32 blueShift, int32 alphaShift, int32 alphaBits, uint32 redMask, uint32 greenMask, uint32 blueMask, uint32 alphaMask, int32 srcBytesPerRow, int32 dstBytesPerRow, int32 srcBitsPerPixel, int32 dstBitsPerPixel, color_space srcColorSpace, color_space dstColorSpace, BPoint srcOffset, BPoint dstOffset, int32 width, int32 height, bool srcSwap, bool dstSwap, read64Func *srcFunc, writeFunc *dstFunc) argument 728 ConvertBits(const srcByte *srcBits, dstByte *dstBits, int32 srcBitsLength, int32 dstBitsLength, int32 redShift, int32 greenShift, int32 blueShift, int32 alphaShift, int32 alphaBits, uint32 redMask, uint32 greenMask, uint32 blueMask, uint32 alphaMask, int32 srcBytesPerRow, int32 dstBytesPerRow, int32 srcBitsPerPixel, int32 dstBitsPerPixel, color_space srcColorSpace, color_space dstColorSpace, BPoint srcOffset, BPoint dstOffset, int32 width, int32 height, bool srcSwap, bool dstSwap, readFunc *srcFunc, writeFunc *dstFunc) argument 893 ConvertBits64(const srcByte *srcBits, void *dstBits, int32 srcBitsLength, int32 dstBitsLength, int32 redShift, int32 greenShift, int32 blueShift, int32 alphaShift, int32 alphaBits, int32 srcBytesPerRow, int32 dstBytesPerRow, int32 srcBitsPerPixel, color_space srcColorSpace, color_space dstColorSpace, BPoint srcOffset, BPoint dstOffset, int32 width, int32 height, bool srcSwap, read64Func *srcFunc) argument 951 ConvertBits(const srcByte *srcBits, void *dstBits, int32 srcBitsLength, int32 dstBitsLength, int32 redShift, int32 greenShift, int32 blueShift, int32 alphaShift, int32 alphaBits, int32 srcBytesPerRow, int32 dstBytesPerRow, int32 srcBitsPerPixel, color_space srcColorSpace, color_space dstColorSpace, BPoint srcOffset, BPoint dstOffset, int32 width, int32 height, bool srcSwap, readFunc *srcFunc) argument 1099 ConvertBits(const void *srcBits, void *dstBits, int32 srcBitsLength, int32 dstBitsLength, int32 srcBytesPerRow, int32 dstBytesPerRow, color_space srcColorSpace, color_space dstColorSpace, int32 width, int32 height) argument 1128 ConvertBits(const void *srcBits, void *dstBits, int32 srcBitsLength, int32 dstBitsLength, int32 srcBytesPerRow, int32 dstBytesPerRow, color_space srcColorSpace, color_space dstColorSpace, BPoint srcOffset, BPoint dstOffset, int32 width, int32 height) argument [all...] |
/haiku/src/apps/deskbar/ |
H A D | CalendarMenuWindow.cpp | 103 float width, height; local 104 fMonthLabel->GetPreferredSize(&width, &height); 107 .Add(_SetupButton("-", kMonthDownMessage, height), 0, 0) 109 .Add(_SetupButton("+", kMonthUpMessage, height), 2, 0) 111 .Add(_SetupButton("-", kYearDownMessage, height), 4, 0) 113 .Add(_SetupButton("+", kYearUpMessage, height), 6, 0) 154 where.y -= (size.height + 4.0); 157 where.y -= (size.height + 4.0); 245 CalendarMenuWindow::_SetupButton(const char* label, uint32 what, float height) argument 248 button->SetExplicitMinSize(BSize(height, heigh [all...] |
H A D | WindowMenuItem.cpp | 79 TWindowMenuItem::GetContentSize(float* width, float* height) argument 95 if (height != NULL) { 96 *height = (fID >= 0) ? fBitmap->Bounds().Height() : 0.0f; 98 *height = (labelHeight > *height) ? labelHeight : *height; 99 *height += sVPad * 2; 171 float height; local 172 GetContentSize(NULL, &height); 173 contentLocation.y += (height [all...] |
/haiku/src/apps/haikudepot/textview/ |
H A D | ParagraphLayout.h | 90 height(0.0f), 99 LineInfo(int32 textOffset, float y, float height, float maxAscent, argument 104 height(height), 117 height(other.height), 130 height = other.height; 143 && height == other.height 160 float height; member in class:LineInfo [all...] |
/haiku/src/add-ons/accelerants/ati/ |
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); 58 if (height > 2048 || width > 768 83 uint32 buffSize = (width * bytesPerPixel * height + 0x3ff) & ~0x3ff; 144 ovBuff->height = height; 222 constraints->view.height.min = 4; 224 constraints->view.height.max = buffer->height; [all...] |
/haiku/src/add-ons/print/drivers/pcl5/ |
H A D | PCL5.cpp | 103 int height = rc.bottom - rc.top + 1; local 110 if (y + height > pageHeight) 111 height = pageHeight - y; 113 rc.bottom = height - 1; 115 DBGMSG(("height = %d\n", height)); 130 int height = rc.bottom - rc.top + 1; local 137 DBGMSG(("height = %d\n", height)); 157 _StartRasterGraphics(width, height); 252 _StartRasterGraphics(int width, int height) argument [all...] |
/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" 179 height = 0; 182 (unsigned int *) &width, (unsigned int *) &height); 191 height windows */ 192 if (height > 0) 193 gState.initHeight = height; 262 void glutInitWindowSize(int width, int height) { argument 264 gState.initHeight = height;
|
/haiku/src/add-ons/accelerants/matrox/engine/ |
H A D | mga_bes.c | 131 /* height < 2 is not allowed */ 142 /* height < 2 is not allowed */ 143 if (si->overlay.ow.height < 2) 150 if ((si->overlay.ow.v_start + si->overlay.ow.height - 1) > (crtc_vend - 1)) 157 if ((si->overlay.ow.v_start + si->overlay.ow.height - 1) < (crtc_vstart + 1)) 159 /* height < 2 is not allowed */ 165 temp2 = ((uint16)(si->overlay.ow.v_start + si->overlay.ow.height - crtc_vstart - 1)) & 0x7ff; 281 if ((si->overlay.ow.v_start + si->overlay.ow.height - 1) < (crtc_vstart + 1)) 284 * (integer part of ('total height - 2' of dest. picture in pixels * inverse scaling factor)) * 286 moi->v1srcstv = (si->overlay.ow.height [all...] |
/haiku/src/libs/icon/shape/ |
H A D | ReferenceImage.cpp | 40 double height = (int) Style()->Bitmap()->Bounds().Height() + 1; local 43 double longerSide = std::max(width, height); 47 Transform(&width, &height); 48 TranslateBy(BPoint((64-width)/2, (64-height)/2)); 213 double height = (int) Style()->Bitmap()->Bounds().Height() + 1; local 215 fPath->AddPoint(BPoint(0, height)); 216 fPath->AddPoint(BPoint(width, height));
|
/haiku/src/apps/showimage/ |
H A D | ShowImageStatusView.cpp | 62 *_height = fPreferredSize.height; 69 float width, height; local 70 GetPreferredSize(&width, &height); 75 BView::ResizeTo(width, height); 217 // height 221 fPreferredSize.height = ceilf(fontHeight.ascent + fontHeight.descent 225 if (fPreferredSize.height < scrollBarSize) 226 fPreferredSize.height = scrollBarSize;
|
/haiku/src/add-ons/print/drivers/postscript/ |
H A D | PS.cpp | 219 int height = rc.bottom - rc.top + 1; local 226 if (y + height > page_height) { 227 height = page_height - y; 230 rc.bottom = height - 1; 232 DBGMSG(("height = %d\n", height)); 248 int height = rc.bottom - rc.top + 1; local 255 DBGMSG(("height = %d\n", height)); 277 _StartRasterGraphics(x, y, width, height, siz 368 _StartRasterGraphics(int x, int y, int width, int height, int widthByte) argument [all...] |
/haiku/src/tests/servers/app/painter/ |
H A D | main.cpp | 23 test_straight_lines(Surface& s, uint32 width, uint32 height) argument 36 for (uint32 y = 0; y <= height; y += 5) { 40 s.StrokeLine(BPoint(x, 0), BPoint(x, height - 1), pat); 51 test_fill_rect(Surface& s, uint32 width, uint32 height) argument 65 for (uint32 y = 10; y <= height; y += 20) { 80 test_ellipses(Surface& s, uint32 width, uint32 height) argument 93 BPoint center(floorf(width / 2.0), floorf(height / 2.0)); 95 float yRadius = height / 2.0; 111 test_lines(Surface& s, uint32 width, uint32 height) argument 124 for (uint32 y = 0; y <= height; 141 test(Surface& s, uint32 width, uint32 height, BBitmap* testBitmap) argument 333 uint32 height = buffer->Height(); local [all...] |
/haiku/src/add-ons/accelerants/skeleton/engine/ |
H A D | bes.c | 150 /* height < 2 is not allowed */ 161 /* height < 2 is not allowed */ 162 if (si->overlay.ow.height < 2) 169 if ((si->overlay.ow.v_start + si->overlay.ow.height - 1) > (crtc_vend - 1)) 176 if ((si->overlay.ow.v_start + si->overlay.ow.height - 1) < (crtc_vstart + 1)) 178 /* height < 2 is not allowed */ 184 temp2 = ((uint16)(si->overlay.ow.v_start + si->overlay.ow.height - crtc_vstart - 1)) & 0x7ff; 256 if ((si->overlay.ow.v_start + si->overlay.ow.height - 1) < (crtc_vstart + 1)) 259 * 'total height - 2' of dest. picture in pixels * inverse scaling factor */ 260 moi->v1srcstv = (si->overlay.ow.height [all...] |
/haiku/src/add-ons/accelerants/nvidia/engine/ |
H A D | nv_bes.c | 150 /* height < 2 is not allowed */ 161 /* height < 2 is not allowed */ 162 if (si->overlay.ow.height < 2) 169 if ((si->overlay.ow.v_start + si->overlay.ow.height - 1) > (crtc_vend - 1)) 176 if ((si->overlay.ow.v_start + si->overlay.ow.height - 1) < (crtc_vstart + 1)) 178 /* height < 2 is not allowed */ 184 temp2 = ((uint16)(si->overlay.ow.v_start + si->overlay.ow.height - crtc_vstart - 1)) & 0x7ff; 256 if ((si->overlay.ow.v_start + si->overlay.ow.height - 1) < (crtc_vstart + 1)) 259 * 'total height - 2' of dest. picture in pixels * inverse scaling factor */ 260 moi->v1srcstv = (si->overlay.ow.height [all...] |
/haiku/src/add-ons/accelerants/via/engine/ |
H A D | bes.c | 225 /* height < 2 is not allowed */ 236 /* height < 2 is not allowed */ 237 if (si->overlay.ow.height < 2) 244 if ((si->overlay.ow.v_start + si->overlay.ow.height - 1) > (crtc_vend - 1)) 251 if ((si->overlay.ow.v_start + si->overlay.ow.height - 1) < (crtc_vstart + 1)) 253 /* height < 2 is not allowed */ 259 temp2 = ((uint16)(si->overlay.ow.v_start + si->overlay.ow.height - crtc_vstart - 1)) & 0x7ff; 372 if ((si->overlay.ow.v_start + si->overlay.ow.height - 1) < (crtc_vstart + 1)) 375 * 'total height - 2' of dest. picture in pixels * inverse scaling factor */ 376 moi->v1srcstv = (si->overlay.ow.height [all...] |
/haiku/src/tests/kits/interface/flatten_picture/ |
H A D | TestResultItem.cpp | 102 float height = 0.0; local 111 height = fBitmapSize.Height(); 115 height += 4; 120 if (height > Height()) 121 SetHeight(height); 180 float height = 0.0; local 188 height = fRect.Height(); 192 height += 4; 196 if (height > Height()) 197 SetHeight(height); [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; 148 ovBuff->height = height; 230 constraints->view.height.min = 4; 232 constraints->view.height.max = buffer->height; 241 constraints->window.height [all...] |
/haiku/src/apps/terminal/ |
H A D | TerminalBuffer.cpp | 49 TerminalBuffer::Init(int32 width, int32 height, int32 historySize) argument 54 fAlternateScreen = _AllocateLines(width, height); 58 for (int32 i = 0; i < height; i++) 68 return BasicTerminalBuffer::Init(width, height, historySize); 314 TerminalBuffer::ResizeTo(int32 width, int32 height) argument 322 return ResizeTo(width, height, historyCapacity); 327 TerminalBuffer::ResizeTo(int32 width, int32 height, int32 historyCapacity) argument 338 status_t error = BasicTerminalBuffer::ResizeTo(width, height, 355 error = BasicTerminalBuffer::ResizeTo(width, height, 0); 358 fHeight = height; [all...] |
/haiku/src/add-ons/translators/pcx/ |
H A D | PCX.cpp | 81 uint32 height = header.yMax - header.yMin + 1; local 88 uint8 *scanLineData[height]; 92 for (uint32 row = 0; row < height; row++) { 125 if (row < height / 3) 128 memset(scanLineData + row, 0, sizeof(uint8*) * (height - row)); 157 for (uint32 row = 0; row < height; row++) { 172 for (uint32 row = 0; row < height; row++) { 192 for (uint32 row = 0; row < height; row++) { 209 for (uint32 row = 0; row < height; row++) { 275 uint16 height local [all...] |
/haiku/src/add-ons/translators/ico/ |
H A D | ICO.cpp | 254 int32 width, int32 height, int32 bytesPerRow) 256 for (int32 y = 0; y < height; y++) { 287 int32 xorDataSize = xorRowBytes * entry.height; 292 int32 andDataSize = andRowBytes * entry.height; 317 for (uint32 row = 0; row < entry.height; row++) { 408 for (uint32 row = entry.height; row-- > 0;) { 469 for (uint32 row = entry.height; row-- > 0;) { 542 TRACE(("width: %d, height: %d, planes: %d, color_count: %d, bits_per_pixel: %d, size: %ld, offset: %ld\n", 543 entry.width, entry.height, entry.planes, entry.color_count, entry.bits_per_pixel, 551 TRACE(("size: %ld, width: %ld, height 253 has_true_alpha_channel(color_space space, uint8 *data, int32 width, int32 height, int32 bytesPerRow) argument 666 int32 height = bitsHeader.bounds.IntegerHeight() + 1; local [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); 461 int32 height = bitmap->Bounds().IntegerHeight(); local 478 for (int y = 0; y <= height; y++) { 479 r = 255 - y * 255 / height; 486 _DrawColorLineX(bits, height, bpr, r, g, b); 496 for (int y = 0; y <= height; y++) { 497 g = 255 - y * 255 / height; 601 _DrawColorLineX(uint8* bits, int height, int bpr, int r, int g, int b) argument [all...] |
/haiku/src/libs/icon/ |
H A D | IconUtils.cpp | 358 uint32 height = temp.Bounds().IntegerHeight() + 1; local 360 result = ConvertToCMAP8((uint8*)temp.Bits(), width, height, 485 uint32 height = temp->Bounds().IntegerHeight() + 1; local 487 result = ConvertToCMAP8(src, width, height, srcBPR, icon); 703 uint32 height = source->Bounds().IntegerHeight() + 1; local 705 return ConvertFromCMAP8(src, width, height, srcBPR, destination); 728 uint32 height = source->Bounds().IntegerHeight() + 1; local 730 return ConvertToCMAP8(src, width, height, srcBPR, destination); 735 BIconUtils::ConvertFromCMAP8(const uint8* src, uint32 width, uint32 height, argument 757 if (dstWidth < width || dstHeight < height 880 ConvertToCMAP8(const uint8* src, uint32 width, uint32 height, uint32 srcBPR, BBitmap* icon) argument [all...] |
/haiku/src/libs/print/libprint/ |
H A D | GraphicsDriver.cpp | 242 float height; local 253 height = physicalRect.Height(); 254 if (width < height) { // portrait 255 scale.x = height / 2.0f / width; 256 scale.y = width / height; 258 scale.x = height / width; 259 scale.y = width / 2.0f / height; 264 height = physicalRect.Height(); 265 if (width < height) { 266 scale.x = height / 4. 334 float height = scaledPhysicalRect.Height(); local 517 const int32 height = source->Bounds().IntegerHeight() + 1; local [all...] |