Searched refs:bmpinfoheader (Results 1 – 2 of 2) sorted by relevance
/external/libjpeg-turbo/ |
D | rdbmp.c | 416 U_CHAR bmpinfoheader[64]; in start_input_bmp() local 450 if (!ReadOK(source->pub.input_file, bmpinfoheader, 4)) in start_input_bmp() 452 headerSize = GET_4B(bmpinfoheader, 0); in start_input_bmp() 455 if (!ReadOK(source->pub.input_file, bmpinfoheader + 4, headerSize - 4)) in start_input_bmp() 461 biWidth = (int)GET_2B(bmpinfoheader, 4); in start_input_bmp() 462 biHeight = (int)GET_2B(bmpinfoheader, 6); in start_input_bmp() 463 biPlanes = GET_2B(bmpinfoheader, 8); in start_input_bmp() 464 source->bits_per_pixel = (int)GET_2B(bmpinfoheader, 10); in start_input_bmp() 485 biWidth = (int)GET_4B(bmpinfoheader, 4); in start_input_bmp() 486 biHeight = (int)GET_4B(bmpinfoheader, 8); in start_input_bmp() [all …]
|
D | wrbmp.c | 220 char bmpinfoheader[40]; in write_bmp_header() local 260 MEMZERO(bmpinfoheader, sizeof(bmpinfoheader)); in write_bmp_header() 270 PUT_2B(bmpinfoheader, 0, 40); /* biSize */ in write_bmp_header() 271 PUT_4B(bmpinfoheader, 4, cinfo->output_width); /* biWidth */ in write_bmp_header() 272 PUT_4B(bmpinfoheader, 8, cinfo->output_height); /* biHeight */ in write_bmp_header() 273 PUT_2B(bmpinfoheader, 12, 1); /* biPlanes - must be 1 */ in write_bmp_header() 274 PUT_2B(bmpinfoheader, 14, bits_per_pixel); /* biBitCount */ in write_bmp_header() 278 PUT_4B(bmpinfoheader, 24, (long)(cinfo->X_density * 100)); /* XPels/M */ in write_bmp_header() 279 PUT_4B(bmpinfoheader, 28, (long)(cinfo->Y_density * 100)); /* XPels/M */ in write_bmp_header() 281 PUT_2B(bmpinfoheader, 32, cmap_entries); /* biClrUsed */ in write_bmp_header() [all …]
|