Home
last modified time | relevance | path

Searched refs:bhdr (Results 1 – 4 of 4) sorted by relevance

/external/vboot_reference/utility/
Dimage_types.c46 const BMP_IMAGE_HEADER *bhdr = buf; in identify_image_type() local
47 if (bhdr->CharB == 'B' && bhdr->CharM == 'M' && in identify_image_type()
48 bhdr->Planes == 1 && in identify_image_type()
49 (bhdr->CompressionType == 0 || bhdr->CompressionType == 1) && in identify_image_type()
50 (bhdr->BitPerPixel == 1 || bhdr->BitPerPixel == 4 || in identify_image_type()
51 bhdr->BitPerPixel == 8 || bhdr->BitPerPixel == 24)) { in identify_image_type()
54 info->width = bhdr->PixelWidth; in identify_image_type()
55 info->height = bhdr->PixelHeight; in identify_image_type()
/external/libpcap/
Dsf-pcapng.c283 struct block_header bhdr; in read_block() local
290 status = read_bytes(fp, &bhdr, sizeof(bhdr), 0, errbuf); in read_block()
295 bhdr.block_type = SWAPLONG(bhdr.block_type); in read_block()
296 bhdr.total_length = SWAPLONG(bhdr.total_length); in read_block()
303 if (bhdr.total_length < sizeof(struct block_header) + in read_block()
307 bhdr.total_length, in read_block()
315 if ((bhdr.total_length % 4) != 0) { in read_block()
321 bhdr.total_length); in read_block()
328 if (p->bufsize < bhdr.total_length) { in read_block()
335 if (bhdr.total_length > ps->max_blocksize) { in read_block()
[all …]
/external/vboot_reference/tests/
Dvboot_display_tests.c30 static BmpBlockHeader *bhdr; variable
50 bhdr = (BmpBlockHeader *)(gbb_data + gbb->bmpfv_offset); in ResetMocks()
53 memcpy(bhdr->signature, BMPBLOCK_SIGNATURE, BMPBLOCK_SIGNATURE_SIZE); in ResetMocks()
54 bhdr->major_version = BMPBLOCK_MAJOR_VERSION; in ResetMocks()
55 bhdr->minor_version = BMPBLOCK_MINOR_VERSION; in ResetMocks()
56 bhdr->number_of_localizations = 3; in ResetMocks()
157 bhdr->signature[0] ^= 0x5a; in LocalizationTest()
206 bhdr->signature[0] ^= 0x5a; in DisplayKeyTest()
Dvboot_region_tests.c43 BmpBlockHeader *bhdr; in ResetMocks() local
71 bhdr = (BmpBlockHeader *)(gbb_data + gbb->bmpfv_offset); in ResetMocks()
74 memcpy(bhdr->signature, BMPBLOCK_SIGNATURE, BMPBLOCK_SIGNATURE_SIZE); in ResetMocks()
75 bhdr->major_version = BMPBLOCK_MAJOR_VERSION; in ResetMocks()
76 bhdr->minor_version = BMPBLOCK_MINOR_VERSION; in ResetMocks()
77 bhdr->number_of_localizations = 3; in ResetMocks()
78 bhdr->number_of_screenlayouts = 1; in ResetMocks()