Lines Matching refs:header
10 // under the BSD license, with the stipulations that this complete header must
123 unsigned char header[7];
125 if (source->Read(header, 6) != 6)
128 header[6] = 0x00;
130 if (strcmp((char*)header, "GIF87a") != 0
131 && strcmp((char*)header, "GIF89a") != 0) {
133 int32 magic = (header[0] << 24) + (header[1] << 16) + (header[2] << 8)
134 + header[3];
158 TranslatorBitmap header;
159 status_t result = in->Read(&header, sizeof(header));
160 if (result != sizeof(header))
163 header.magic = B_BENDIAN_TO_HOST_INT32(header.magic);
164 header.bounds.left = B_BENDIAN_TO_HOST_FLOAT(header.bounds.left);
165 header.bounds.top = B_BENDIAN_TO_HOST_FLOAT(header.bounds.top);
166 header.bounds.right = B_BENDIAN_TO_HOST_FLOAT(header.bounds.right);
167 header.bounds.bottom = B_BENDIAN_TO_HOST_FLOAT(header.bounds.bottom);
168 header.rowBytes = B_BENDIAN_TO_HOST_INT32(header.rowBytes);
169 header.colors = (color_space)B_BENDIAN_TO_HOST_INT32(header.colors);
170 header.dataSize = B_BENDIAN_TO_HOST_INT32(header.dataSize);
173 *out = new(std::nothrow) BBitmap(header.bounds, header.colors);
182 result = in->Read((*out)->Bits(), header.dataSize);
183 if (result != (status_t)header.dataSize) {
192 /*! Required identify function - may need to read entire header, not sure