2 * Big endian structure conversion routines
4 * Copyright Miguel de Icaza, 1994
10 void ARCH_ConvBitmapInfo (BITMAPINFOHEADER *image)
12 image->biSize = CONV_LONG (image->biSize);
13 image->biWidth = CONV_LONG (image->biWidth);
14 image->biHeight = CONV_LONG (image->biHeight);
15 image->biPlanes = CONV_SHORT (image->biPlanes);
16 image->biBitCount = CONV_SHORT (image->biBitCount);
17 image->biCompression = CONV_LONG (image->biCompression);
18 image->biSizeImage = CONV_LONG (image->biSizeImage);
19 image->biXPelsPerMeter = CONV_LONG (image->biXPelsPerMeter);
20 image->biYPelsPerMeter = CONV_LONG (image->biYPelsPerMeter);
21 image->biClrUsed = CONV_LONG (image->biClrUsed);
22 image->biClrImportant = CONV_LONG (image->biClrImportant);
25 void ARCH_ConvCoreHeader (BITMAPCOREHEADER *image)
27 image->bcSize = CONV_LONG (image->bcSize);
28 image->bcWidth = CONV_SHORT (image->bcWidth);
29 image->bcHeight = CONV_SHORT (image->bcHeight);
30 image->bcPlanes = CONV_SHORT (image->bcPlanes);
31 image->bcBitCount = CONV_SHORT (image->bcBitCount);