Release 960428
[wine/multimedia.git] / library / arch.c
blob9f9c6c70d8b9b0ea8700b665561382dfb9c90ef1
1 /*
2 * Big endian structure conversion routines
4 * Copyright Miguel de Icaza, 1994
5 */
7 #include "arch.h"
8 #include "windows.h"
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);