Lines Matching defs:header

82                                struct grub_tga_header *header,
92 bytes_per_pixel = header->image_bpp / 8;
94 for (y = 0; y < header->image_height; y++)
97 if ((header->image_descriptor & GRUB_TGA_IMAGE_ORIGIN_TOP) != 0)
100 ptr += (header->image_height - 1 - y) * bitmap->mode_info.pitch;
102 for (x = 0; x < header->image_width;)
119 if (x < header->image_width)
142 if (x < header->image_width)
161 struct grub_tga_header *header,
171 bytes_per_pixel = header->image_bpp / 8;
173 for (y = 0; y < header->image_height; y++)
176 if ((header->image_descriptor & GRUB_TGA_IMAGE_ORIGIN_TOP) != 0)
179 ptr += (header->image_height - 1 - y) * bitmap->mode_info.pitch;
181 for (x = 0; x < header->image_width;)
198 if (x < header->image_width)
222 if (x < header->image_width)
242 struct grub_tga_header *header,
251 bytes_per_pixel = header->image_bpp / 8;
253 for (y = 0; y < header->image_height; y++)
256 if ((header->image_descriptor & GRUB_TGA_IMAGE_ORIGIN_TOP) != 0)
259 ptr += (header->image_height - 1 - y) * bitmap->mode_info.pitch;
261 for (x = 0; x < header->image_width; x++)
279 struct grub_tga_header *header,
288 bytes_per_pixel = header->image_bpp / 8;
290 for (y = 0; y < header->image_height; y++)
293 if ((header->image_descriptor & GRUB_TGA_IMAGE_ORIGIN_TOP) != 0)
296 ptr += (header->image_height - 1 - y) * bitmap->mode_info.pitch;
298 for (x = 0; x < header->image_width; x++)
321 struct grub_tga_header header;
332 /* Read TGA header from beginning of file. */
333 if (grub_file_read (file, &header, sizeof (header))
334 != sizeof (header))
342 pos += header.id_length;
351 grub_printf("tga: header\n");
352 dump_int_field(header.id_length);
353 dump_int_field(header.color_map_type);
354 dump_int_field(header.image_type);
355 dump_int_field(header.color_map_first_index);
356 dump_int_field(header.color_map_length);
357 dump_int_field(header.color_map_bpp);
358 dump_int_field(header.image_x_origin);
359 dump_int_field(header.image_y_origin);
360 dump_int_field(header.image_width);
361 dump_int_field(header.image_height);
362 dump_int_field(header.image_bpp);
363 dump_int_field(header.image_descriptor);
367 switch (header.image_type)
380 switch (header.image_bpp)
394 header.image_bpp);
400 grub_video_bitmap_create (bitmap, header.image_width,
401 header.image_height,
410 switch (header.image_type)
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,
424 header.image_height,
433 switch (header.image_type)
436 tga_load_truecolor_R8G8B8 (*bitmap, &header, file);
440 tga_load_truecolor_rle_R8G8B8 (*bitmap, &header, file);