Lines Matching defs:file
55 struct bmp_file *file;
63 /* check file header */
64 file = (struct bmp_file *)bmp;
65 if (file->signature[0] != 'B' || file->signature[1] != 'M')
67 if (file->size != size)
69 if (file->size < file->offset)
99 if (file->size - file->offset < dib->y * row_size)
106 if (file->offset < sizeof(struct bmp_file) + dib->size)
109 if (file->offset > sizeof(struct bmp_file) + dib->size) {
129 map_size = file->offset - (sizeof(struct bmp_file) + dib->size);
136 *pixmap = bmp + file->offset;