Lines Matching refs:hdr

414 		TranslatorBitmap hdr;
415 hdr.magic = B_HOST_TO_BENDIAN_INT32(B_TRANSLATOR_BITMAP);
416 hdr.bounds.left = B_HOST_TO_BENDIAN_FLOAT(0);
417 hdr.bounds.top = B_HOST_TO_BENDIAN_FLOAT(0);
418 hdr.bounds.right = B_HOST_TO_BENDIAN_FLOAT(width-1);
419 hdr.bounds.bottom = B_HOST_TO_BENDIAN_FLOAT(height-1);
420 hdr.rowBytes = B_HOST_TO_BENDIAN_INT32(out_rowbytes);
421 hdr.colors = (color_space)B_HOST_TO_BENDIAN_INT32(out_space);
422 hdr.dataSize = B_HOST_TO_BENDIAN_INT32(out_rowbytes*height);
424 err = outDestination->Write(&hdr, sizeof(hdr));
433 if (err == sizeof(hdr)) err = 0;
813 TranslatorBitmap hdr;
815 hdr.magic = B_HOST_TO_BENDIAN_INT32(B_TRANSLATOR_BITMAP);
816 char * ptr = (char *)&hdr;
821 hdr.magic = B_BENDIAN_TO_HOST_INT32(hdr.magic);
822 hdr.bounds.left = B_BENDIAN_TO_HOST_FLOAT(hdr.bounds.left);
823 hdr.bounds.right = B_BENDIAN_TO_HOST_FLOAT(hdr.bounds.right);
824 hdr.bounds.top = B_BENDIAN_TO_HOST_FLOAT(hdr.bounds.top);
825 hdr.bounds.bottom = B_BENDIAN_TO_HOST_FLOAT(hdr.bounds.bottom);
826 hdr.rowBytes = B_BENDIAN_TO_HOST_INT32(hdr.rowBytes);
827 hdr.colors = (color_space)B_BENDIAN_TO_HOST_INT32(hdr.colors);
828 hdr.dataSize = B_BENDIAN_TO_HOST_INT32(hdr.dataSize);
830 if (hdr.magic != B_TRANSLATOR_BITMAP) {
833 if (hdr.colors & 0xffff0000) { /* according to <GraphicsDefs.h> this is a reasonable check. */
836 if (hdr.rowBytes * (hdr.bounds.Height()+1) > hdr.dataSize) {
840 *width = (int)hdr.bounds.Width()+1;
841 *rowbytes = hdr.rowBytes;
842 *height = (int)hdr.bounds.Height()+1;
845 *space = hdr.colors;