Lines Matching defs:bitmap

19 #include <grub/bitmap.h>
81 tga_load_truecolor_rle_R8G8B8 (struct grub_video_bitmap *bitmap,
96 ptr = bitmap->data;
98 ptr += y * bitmap->mode_info.pitch;
100 ptr += (header->image_height - 1 - y) * bitmap->mode_info.pitch;
160 tga_load_truecolor_rle_R8G8B8A8 (struct grub_video_bitmap *bitmap,
175 ptr = bitmap->data;
177 ptr += y * bitmap->mode_info.pitch;
179 ptr += (header->image_height - 1 - y) * bitmap->mode_info.pitch;
241 tga_load_truecolor_R8G8B8 (struct grub_video_bitmap *bitmap,
255 ptr = bitmap->data;
257 ptr += y * bitmap->mode_info.pitch;
259 ptr += (header->image_height - 1 - y) * bitmap->mode_info.pitch;
278 tga_load_truecolor_R8G8B8A8 (struct grub_video_bitmap *bitmap,
292 ptr = bitmap->data;
294 ptr += y * bitmap->mode_info.pitch;
296 ptr += (header->image_height - 1 - y) * bitmap->mode_info.pitch;
316 grub_video_reader_tga (struct grub_video_bitmap **bitmap,
366 /* Check that bitmap encoding is supported. */
376 "unsupported bitmap format (unknown encoding)");
379 /* Check that bitmap depth is supported. */
393 "unsupported bitmap format (bpp=%d)",
397 /* Allocate bitmap. If there is alpha information store it too. */
400 grub_video_bitmap_create (bitmap, header.image_width,
409 /* Load bitmap data. */
413 tga_load_truecolor_R8G8B8A8 (*bitmap, &header, file);
417 tga_load_truecolor_rle_R8G8B8A8 (*bitmap, &header, file);
423 grub_video_bitmap_create (bitmap, header.image_width,
432 /* Load bitmap data. */
436 tga_load_truecolor_R8G8B8 (*bitmap, &header, file);
440 tga_load_truecolor_rle_R8G8B8 (*bitmap, &header, file);
445 /* If there was a loading problem, destroy bitmap. */
448 grub_video_bitmap_destroy (*bitmap);
449 *bitmap = 0;
461 struct grub_video_bitmap *bitmap = 0;
466 grub_video_reader_tga (&bitmap, args[0]);
470 grub_video_bitmap_destroy (bitmap);
487 "FILE", "Tests loading of TGA bitmap.");