Searched refs:bhdr (Results 1 – 4 of 4) sorted by relevance
/external/vboot_reference/utility/ |
D | image_types.c | 46 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/ |
D | sf-pcap-ng.c | 259 struct block_header bhdr; in read_block() local 261 status = read_bytes(fp, &bhdr, sizeof(bhdr), 0, errbuf); in read_block() 266 bhdr.block_type = SWAPLONG(bhdr.block_type); in read_block() 267 bhdr.total_length = SWAPLONG(bhdr.total_length); in read_block() 277 if (bhdr.total_length > 16*1024*1024) { in read_block() 280 bhdr.total_length, 16*1024*1024); in read_block() 288 if (bhdr.total_length < sizeof(struct block_header) + in read_block() 292 bhdr.total_length, in read_block() 300 if (p->bufsize < bhdr.total_length) { in read_block() 304 p->buffer = realloc(p->buffer, bhdr.total_length); in read_block() [all …]
|
/external/vboot_reference/tests/ |
D | vboot_display_tests.c | 30 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()
|
D | vboot_region_tests.c | 43 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()
|