Lines Matching defs:bmp

107 static void fill_bitmap(BBitmap &bmp, char value);
108 //static void dump_bitmap(BBitmap &bmp, char *name = "bmp");
235 // printf("bmp== 1\n");
237 // printf("bmp== 2\n");
335 fill_bitmap(BBitmap &bmp, char value) {
336 char *data = (char*)bmp.Bits();
337 for (int i = 0; i < bmp.BitsLength(); data++, i++) {
347 fill_bitmap32(BBitmap &bmp, char r, char g, char b, char a) {
348 if (bmp.ColorSpace() == B_RGB32 || bmp.ColorSpace() == B_RGBA32) {
349 char *data = (char*)bmp.Bits();
350 for (int i = 0; i+3 < bmp.BitsLength(); data += 4, i+= 4) {
364 dump_bitmap(BBitmap &bmp, char *name = "bmp") {
365 printf("%s == (%ldx%ld, ", name, bmp.Bounds().IntegerWidth()+1,
366 bmp.Bounds().IntegerHeight()+1);
367 switch (bmp.ColorSpace()) {
381 printf("%x", bmp.ColorSpace());
384 printf(", %d, [", *(char*)bmp.Bits());
385 char *data = (char*)bmp.Bits();
386 for (int i = 0; i < bmp.BitsLength() && i < 20; data++, i++)
1326 BBitmap *bmp = helper.TempBitmap();
1332 CHK(helper.GetIcon(mime, bmp) != B_OK); // R5 == B_BAD_VALUE
1333 CHK(helper.SetIcon(mime, bmp) != B_OK); // R5 == B_BAD_VALUE
1345 CHK(helper.GetIcon(mime, bmp) != B_OK); // R5 == B_ENTRY_NOT_FOUND
1349 CHK(helper.GetIcon(mime, bmp) == B_OK);
1350 CHK(*bmp == *helper.Bitmap1());
1372 CHK(helper.GetIcon(mime, bmp) != B_OK); // B_ENTRY_NOT_FOUND
1376 CHK(helper.GetIcon(mime, bmp) == B_OK);
1377 CHK(*bmp == *helper.Bitmap1());
1379 CHK(helper.GetIcon(mime, bmp) != B_OK); // B_ENTRY_NOT_FOUND
1395 fill_bitmap(*bmp, 100);
1396 CHK(*bmp != *helper.Bitmap2());
1397 CHK(helper.GetIcon(mime, bmp) == B_OK);
1398 CHK(*bmp == *helper.Bitmap2());
1401 CHK(helper.GetIcon(mime, bmp) != B_OK);
1421 CHK(helper.GetIcon(mime, bmp) == B_OK);
1422 CHK(*bmp == *helper.Bitmap1());
1424 CHK(helper.GetIcon(mime, bmp) == B_OK);
1425 CHK(*bmp == *helper.Bitmap1());
1426 CHK(*bmp != testBmp);
1449 CHK(helper.GetIcon(mime, bmp) == B_OK);
1450 CHK(*bmp == *helper.Bitmap1());
1452 CHK(helper.GetIcon(mime, bmp) == B_OK);
1453 CHK(*bmp == *helper.Bitmap1());
1454 CHK(*bmp != testBmp);
1483 CHK(helper.GetIcon(mime, bmp) == B_OK);
1484 CHK(*bmp == *helper.Bitmap1());
1488 CHK(helper.GetIcon(mime, bmp) == B_OK); // R5 == CRASH!, Haiku == Damn right I can handle that shit
1489 CHK(*bmp != *helper.Bitmap1());
1490 CHK(*bmp != testBmp); // Shouldn't match, since SetIcon() reduces to B_CMAP8
1491 CHK(*bmp == testBmp8); // *Should* match, since it's the result of a similar reduction
1506 fill_bitmap(*bmp, 3);
1507 CHK(*bmp != *helper.Bitmap1());
1509 CHK(helper.GetIcon(mime, bmp) == B_OK);
1510 CHK(*bmp == *helper.Bitmap1());
1512 fill_bitmap(*bmp, 3);
1514 CHK(helper.GetIcon(mime, bmp) == B_OK);
1515 CHK(*bmp == *helper.Bitmap2());
1516 CHK(*bmp != *helper.Bitmap1());
1527 BBitmap *bmp = helper.TempBitmap();
1541 fill_bitmap(*bmp, 3);
1542 CHK(*bmp != *helper.Bitmap1());
1544 CHK(mime.GetIconForType(testTypeInvalid, bmp, helper.Size()) != B_OK); // R5 == B_BAD_VALUE
1545 CHK(*bmp != *helper.Bitmap1());
1559 fill_bitmap(*bmp, 3);
1560 CHK(*bmp != *helper.Bitmap1());
1562 CHK(mime.GetIconForType(NULL, bmp, helper.Size()) == B_OK);
1563 CHK(*bmp == *helper.Bitmap1());
1565 fill_bitmap(*bmp, 3);
1566 CHK(*bmp != *helper.Bitmap1());
1567 CHK(mime.GetIcon(bmp, helper.Size()) == B_OK);
1568 CHK(*bmp == *helper.Bitmap1());
1571 CHK(mime.GetIconForType(NULL, bmp, helper.Size()) != B_OK); // B_ENTRY_NOT_FOUND
1572 CHK(mime.GetIcon(bmp, helper.Size()) != B_OK); // B_ENTRY_NOT_FOUND