Home
last modified time | relevance | path

Searched refs:bmpinfoheader (Results 1 – 2 of 2) sorted by relevance

/external/libjpeg-turbo/
Drdbmp.c428 U_CHAR bmpinfoheader[64]; in start_input_bmp() local
462 if (!ReadOK(source->pub.input_file, bmpinfoheader, 4)) in start_input_bmp()
464 headerSize = GET_4B(bmpinfoheader, 0); in start_input_bmp()
467 if (!ReadOK(source->pub.input_file, bmpinfoheader + 4, headerSize - 4)) in start_input_bmp()
473 biWidth = (int)GET_2B(bmpinfoheader, 4); in start_input_bmp()
474 biHeight = (int)GET_2B(bmpinfoheader, 6); in start_input_bmp()
475 biPlanes = GET_2B(bmpinfoheader, 8); in start_input_bmp()
476 source->bits_per_pixel = (int)GET_2B(bmpinfoheader, 10); in start_input_bmp()
495 biWidth = (int)GET_4B(bmpinfoheader, 4); in start_input_bmp()
496 biHeight = (int)GET_4B(bmpinfoheader, 8); in start_input_bmp()
[all …]
Dwrbmp.c222 char bmpinfoheader[40]; in write_bmp_header() local
262 MEMZERO(bmpinfoheader, sizeof(bmpinfoheader)); in write_bmp_header()
272 PUT_2B(bmpinfoheader, 0, 40); /* biSize */ in write_bmp_header()
273 PUT_4B(bmpinfoheader, 4, cinfo->output_width); /* biWidth */ in write_bmp_header()
274 PUT_4B(bmpinfoheader, 8, cinfo->output_height); /* biHeight */ in write_bmp_header()
275 PUT_2B(bmpinfoheader, 12, 1); /* biPlanes - must be 1 */ in write_bmp_header()
276 PUT_2B(bmpinfoheader, 14, bits_per_pixel); /* biBitCount */ in write_bmp_header()
280 PUT_4B(bmpinfoheader, 24, (long)(cinfo->X_density * 100)); /* XPels/M */ in write_bmp_header()
281 PUT_4B(bmpinfoheader, 28, (long)(cinfo->Y_density * 100)); /* XPels/M */ in write_bmp_header()
283 PUT_2B(bmpinfoheader, 32, cmap_entries); /* biClrUsed */ in write_bmp_header()
[all …]