Searched refs:bitmap (Results 76 - 100 of 295) sorted by relevance

1234567891011>>

/haiku/src/servers/app/
H A DOffscreenServerWindow.h19 int32 handlerID, ServerBitmap* bitmap);
/haiku/src/apps/haikudepot/ui_generic/
H A DBitmapView.cpp121 BitmapView::SetBitmap(SharedBitmap* bitmap, BitmapSize bitmapSize) argument
123 if (bitmap == fReference && bitmapSize == fBitmapSize)
128 fReference.SetTo(bitmap);
130 fBitmap = bitmap->Bitmap(bitmapSize);
/haiku/src/servers/app/drawing/
H A DBBitmapBuffer.h14 BBitmapBuffer(BBitmap* bitmap);
H A DAlphaMask.cpp159 BReference<UtilityBitmap> bitmap(new(std::nothrow) UtilityBitmap(bounds,
161 if (bitmap == NULL)
164 if (!bitmap->IsValid())
167 memset(bitmap->Bits(), fBackgroundOpacity, bitmap->BitsLength());
169 return bitmap.Detach();
181 ServerBitmap* const bitmap = _RenderSource(fCanvasBounds); local
182 BReference<ServerBitmap> bitmapRef(bitmap, true);
183 if (bitmap == NULL) {
194 uint8* source = bitmap
[all...]
/haiku/src/apps/icon-o-matic/generic/support/
H A Dsupport_ui.cpp73 make_color_drop_message(rgb_color color, BBitmap* bitmap) argument
82 // prepare bitmap
83 if (bitmap && bitmap->IsValid()
84 && (bitmap->ColorSpace() == B_RGB32
85 || bitmap->ColorSpace() == B_RGBA32)) {
86 uint8* bits = (uint8*)bitmap->Bits();
87 uint32 bpr = bitmap->BytesPerRow();
88 uint32 width = bitmap->Bounds().IntegerWidth() + 1;
89 uint32 height = bitmap
[all...]
/haiku/src/add-ons/kernel/drivers/disk/nvme/libnvme/
H A Dnvme_common.h365 static inline int test_bit(__u8 *bitmap, unsigned int bit) argument
367 return bitmap[bit >> 3] & (1U << (bit & 0x7));
373 static inline void set_bit(__u8 *bitmap, unsigned int bit) argument
375 bitmap[bit >> 3] |= 1U << (bit & 0x7);
381 static inline void clear_bit(__u8 *bitmap, unsigned int bit) argument
383 bitmap[bit >> 3] &= ~(1U << (bit & 0x7));
387 * Find the first zero bit in a bitmap of size nr_bits.
390 static inline int find_first_zero_bit(__u8 *bitmap, unsigned int nr_bits) argument
392 __u64 *b = (__u64 *)bitmap;
402 if (!test_bit(bitmap,
[all...]
/haiku/src/apps/showimage/
H A DImageCache.cpp44 BitmapOwner::BitmapOwner(BBitmap* bitmap) argument
46 fBitmap(bitmap)
268 BBitmap* bitmap;
269 if (outstream.DetachBitmap(&bitmap) != B_OK)
272 entry->bitmapOwner = new(std::nothrow) BitmapOwner(bitmap);
274 delete bitmap;
280 entry->bitmap = bitmap;
301 fBytes += bitmap->BitsLength();
314 fBytes -= entry->bitmap
[all...]
H A DShowImageView.cpp111 compose_checker_background(const BBitmap* bitmap) argument
113 BBitmap* result = new (nothrow) BBitmap(bitmap);
354 BBitmap* bitmap; local
356 if (message->FindPointer("bitmap", (void**)&bitmap) != B_OK
357 || message->FindRef("ref", &ref) != B_OK || bitmap == NULL)
363 status_t status = SetImage(&ref, bitmap, bitmapOwner);
374 ShowImageView::SetImage(const entry_ref* ref, BBitmap* bitmap, argument
382 fBitmap = bitmap;
390 // prepare the display bitmap
754 BBitmap* bitmap = new(nothrow) BBitmap(rect, hasAlpha ? B_RGBA32 local
800 _AddSupportedTypes(BMessage* msg, BBitmap* bitmap) argument
852 BBitmap* bitmap = _CopySelection(128, false); local
894 _OutputFormatForType(BBitmap* bitmap, const char* type, translation_format* format) argument
932 SaveToFile(BDirectory* dir, const char* name, BBitmap* bitmap, const translation_format* format) argument
978 _SendInMessage(BMessage* msg, BBitmap* bitmap, translation_format* format) argument
1005 BBitmap* bitmap = _CopySelection(); local
1071 BBitmap* bitmap = new(nothrow) BBitmap(fBitmap->Bounds(), local
1539 BBitmap* bitmap = _CopySelection(); local
[all...]
/haiku/src/preferences/filetypes/
H A DIconView.cpp101 icon_for_type(const BMimeType& type, BBitmap& bitmap, icon_size size, argument
106 if (type.GetIcon(&bitmap, size) == B_OK)
116 if (preferredApp.GetIconForType(type.Type(), &bitmap, size) == B_OK)
126 if (superType.GetIcon(&bitmap, size) == B_OK)
135 &bitmap, size) == B_OK)
407 BBitmap* bitmap = new (nothrow) BBitmap(source);
408 if (bitmap == NULL || bitmap->InitCheck() != B_OK) {
409 delete bitmap;
413 *_bitmap = bitmap;
531 BBitmap* bitmap; local
1057 BBitmap* bitmap = NULL; local
[all...]
/haiku/src/apps/people/
H A DPictureView.cpp224 if (data->FindMessage("image/bitmap", &archivedBitmap) == B_OK) {
405 BBitmap* bitmap = new(nothrow) BBitmap(rect, hasAlpha ? B_RGBA32 local
407 if (bitmap == NULL || !bitmap->IsValid()) {
408 delete bitmap;
412 if (bitmap->Lock()) {
413 bitmap->AddChild(&view);
424 bitmap->RemoveChild(&view);
425 bitmap->Unlock();
428 return bitmap;
435 BBitmap* bitmap = _CopyPicture(128); local
[all...]
/haiku/src/apps/mediaplayer/
H A DVideoView.h37 virtual void SetBitmap(const BBitmap* bitmap);
59 void _DrawBitmap(const BBitmap* bitmap);
/haiku/src/preferences/media/
H A DMediaIcons.cpp49 MediaIcons::_LoadBitmap(BResources* resources, int32 id, BBitmap* bitmap) argument
53 bitmap->SetBits(bits, size, 0, B_CMAP8);
/haiku/src/add-ons/translators/gif/
H A DGIFSave.h40 GIFSave(BBitmap* bitmap, BPositionIO* output,
61 BBitmap* bitmap; member in class:GIFSave
/haiku/src/servers/app/drawing/Painter/bitmap_painter/
H A DDrawBitmapNoScale.h21 Draw(PainterAggInterface& aggInterface, agg::rendering_buffer& bitmap, argument
25 // outside the bitmap, so make sure this is not the case before calling
30 const uint8* src = bitmap.row_ptr(0);
31 const uint32 srcBPR = bitmap.stride();
40 || left - offset.x >= (int32)bitmap.width()
43 || top - offset.y >= (int32)bitmap.height()
44 || bottom - offset.y >= (int32)bitmap.height()) {
46 sprintf(message, "reading outside of bitmap (%ld, %ld, %ld, %ld) "
50 bitmap.width(), bitmap
[all...]
/haiku/src/tools/hvif2png/
H A Dhvif2png.cpp11 // HVIF files and then save the resultant bitmap into a PNG image file.
54 BBitmap* bitmap; member in struct:h2p_state
126 h2p_write_png(BBitmap* bitmap, FILE* out) argument
142 BRect rect = bitmap->Bounds();
154 uint8 *bitmapData = (uint8*)bitmap->Bits();
155 int32 bitmapBytesPerRow = bitmap->BytesPerRow();
336 // create the bitmap and then parse and render the HVIF icon
337 // data into the bitmap.
339 state.bitmap = new BBitmap(
347 state.bitmap);
[all...]
/haiku/src/apps/haikudepot/model/
H A DPackageIconTarRepository.h33 BitmapRef& bitmap);
50 BitmapRef& bitmap);
/haiku/src/preferences/appearance/
H A DCurView.h57 BBitmap *GetBitmap(void) const { return bitmap; }
61 BBitmap *bitmap; member in class:BitmapView
H A DColorWhichListView.cpp68 BBitmap* bitmap = new BBitmap(rect, B_RGB32, true); local
69 if (bitmap->Lock()) {
71 bitmap->AddChild(view);
103 bitmap->Unlock();
106 DragMessage(&message, bitmap, B_OP_ALPHA, BPoint(14.0f, 14.0f));
/haiku/headers/private/print/
H A DBeUtils.h93 // load bitmap from application resources
95 // convert bitmap to picture; view must be attached to a window!
96 // returns NULL if bitmap is NULL
97 BPicture *BitmapToPicture(BView* view, BBitmap *bitmap);
98 BPicture *BitmapToGrayedPicture(BView* view, BBitmap *bitmap);
/haiku/src/libs/print/libprint/
H A DValidRect.cpp16 bool getValidRect(BBitmap *bitmap, RECT *rect);
133 // returns false if the bitmap is empty or has wrong color space.
135 BoundsCalculator::getValidRect(BBitmap *bitmap, RECT *rect) argument
143 switch (bitmap->ColorSpace()) {
153 fBits = (uchar*)bitmap->Bits();
154 fBPR = bitmap->BytesPerRow();
/haiku/src/apps/terminal/
H A DColorListView.cpp68 BBitmap* bitmap = new BBitmap(rect, B_RGB32, true); local
69 if (bitmap->Lock()) {
71 bitmap->AddChild(view);
103 bitmap->Unlock();
106 DragMessage(&message, bitmap, B_OP_ALPHA, BPoint(14.0f, 14.0f));
/haiku/src/kits/storage/
H A DMime.cpp188 BBitmap* bitmap = icon; local
198 bitmap = new(std::nothrow) BBitmap(
201 if (bitmap == NULL || bitmap->InitCheck() != B_OK) {
202 delete bitmap;
207 // get the icon, convert temporary data into bitmap if necessary
208 status = get_device_icon(device, bitmap->Bits(), iconSize);
209 if (status == B_OK && icon != bitmap)
210 status = BIconUtils::ConvertFromCMAP8(bitmap, icon);
212 if (icon != bitmap)
[all...]
/haiku/src/apps/resedit/
H A DBitmapView.cpp41 BitmapView::BitmapView(BRect frame, const char *name, BMessage *mod, BBitmap *bitmap, argument
47 if (bitmap && bitmap->IsValid())
48 fBitmap = bitmap;
115 BitmapView::SetBitmap(BBitmap *bitmap) argument
117 if (bitmap && bitmap->IsValid()) {
118 if (fBitmap == bitmap)
120 fBitmap = bitmap;
486 returnval = (clip->FindMessage("image/bitmap",
515 BBitmap *bitmap; local
[all...]
/haiku/src/system/kernel/util/
H A DRadixBitmap.cpp31 * This module implements a general bitmap allocator/deallocator. The
36 * A radix tree is used to maintain the bitmap. Two radix constants are
54 * fragmentation there is and no matter how large a bitmap is used.
116 node->u.bitmap = 0;
118 node->u.bitmap = (bitmap_t)-1 << big_hint;
200 bitmap_t bitmap = ~leaf->u.bitmap;
204 if ((bitmap & mask) == mask) {
205 leaf->u.bitmap |= mask;
278 leaf->u.bitmap
[all...]
/haiku/src/add-ons/kernel/file_systems/nfs4/
H A DReplyInterpreter.cpp653 uint32* bitmap = new(std::nothrow) uint32[bcount]; local
654 if (bitmap == NULL)
656 ArrayDeleter<uint32> _(bitmap);
660 bitmap[i] = str.GetUInt();
661 attr_count += CountBits(bitmap[i]);
683 if (sIsAttrSet(FATTR4_SUPPORTED_ATTRS, bitmap, bcount)) {
695 if (sIsAttrSet(FATTR4_TYPE, bitmap, bcount)) {
701 if (sIsAttrSet(FATTR4_FH_EXPIRE_TYPE, bitmap, bcount)) {
707 if (sIsAttrSet(FATTR4_CHANGE, bitmap, bcount)) {
713 if (sIsAttrSet(FATTR4_SIZE, bitmap, bcoun
[all...]

Completed in 160 milliseconds

1234567891011>>