Lines Matching refs:bmp_hdr
155 struct bmp_header bmp_hdr; in get_logo_resolution() local
169 if (size != fread(&bmp_hdr, 1, size, file)) { in get_logo_resolution()
174 if (!(bmp_hdr.signature[0] == 'B' && in get_logo_resolution()
175 bmp_hdr.signature[1] == 'M')) { in get_logo_resolution()
180 *logo_width = bmp_hdr.width; in get_logo_resolution()
181 *logo_height = bmp_hdr.height; in get_logo_resolution()
203 struct bmp_header *bmp_hdr; in convert_one_image() local
237 bmp_hdr = &bmp->hdr; in convert_one_image()
238 if (!(bmp_hdr->signature[0] == 'B' && in convert_one_image()
239 bmp_hdr->signature[1] == 'M')) { in convert_one_image()
244 if (size != le32_to_cpu(bmp_hdr->file_size)) { in convert_one_image()
246 le32_to_cpu(bmp_hdr->file_size)); in convert_one_image()
250 bmp_hdr->width, bmp_hdr->height); in convert_one_image()
252 if (le32_to_cpu(bmp_hdr->width) != screen_w || in convert_one_image()
253 le32_to_cpu(bmp_hdr->height) != screen_h) { in convert_one_image()
270 printf("bmp depth is %d\n", bmp_hdr->bit_count); in convert_one_image()
276 switch (bmp_hdr->bit_count) { in convert_one_image()
355 bmp_hdr->bit_count); in convert_one_image()