Searched refs:bmpinfoheader (Results 1 – 2 of 2) sorted by relevance
/external/libjpeg-turbo/ |
D | rdbmp.c | 282 U_CHAR bmpinfoheader[64]; in start_input_bmp() local 312 if (! ReadOK(source->pub.input_file, bmpinfoheader, 4)) in start_input_bmp() 314 headerSize = GET_4B(bmpinfoheader,0); in start_input_bmp() 317 if (! ReadOK(source->pub.input_file, bmpinfoheader+4, headerSize-4)) in start_input_bmp() 323 biWidth = (int) GET_2B(bmpinfoheader,4); in start_input_bmp() 324 biHeight = (int) GET_2B(bmpinfoheader,6); in start_input_bmp() 325 biPlanes = GET_2B(bmpinfoheader,8); in start_input_bmp() 326 source->bits_per_pixel = (int) GET_2B(bmpinfoheader,10); in start_input_bmp() 345 biWidth = (int) GET_4B(bmpinfoheader,4); in start_input_bmp() 346 biHeight = (int) GET_4B(bmpinfoheader,8); in start_input_bmp() [all …]
|
D | wrbmp.c | 193 char bmpinfoheader[40]; in write_bmp_header() local 230 MEMZERO(bmpinfoheader, sizeof(bmpinfoheader)); in write_bmp_header() 240 PUT_2B(bmpinfoheader, 0, 40); /* biSize */ in write_bmp_header() 241 PUT_4B(bmpinfoheader, 4, cinfo->output_width); /* biWidth */ in write_bmp_header() 242 PUT_4B(bmpinfoheader, 8, cinfo->output_height); /* biHeight */ in write_bmp_header() 243 PUT_2B(bmpinfoheader, 12, 1); /* biPlanes - must be 1 */ in write_bmp_header() 244 PUT_2B(bmpinfoheader, 14, bits_per_pixel); /* biBitCount */ in write_bmp_header() 248 PUT_4B(bmpinfoheader, 24, (INT32) (cinfo->X_density*100)); /* XPels/M */ in write_bmp_header() 249 PUT_4B(bmpinfoheader, 28, (INT32) (cinfo->Y_density*100)); /* XPels/M */ in write_bmp_header() 251 PUT_2B(bmpinfoheader, 32, cmap_entries); /* biClrUsed */ in write_bmp_header() [all …]
|