diff options
author | Jef <jef@targetspot.com> | 2024-09-24 08:54:57 -0400 |
---|---|---|
committer | Jef <jef@targetspot.com> | 2024-09-24 08:54:57 -0400 |
commit | 20d28e80a5c861a9d5f449ea911ab75b4f37ad0d (patch) | |
tree | 12f17f78986871dd2cfb0a56e5e93b545c1ae0d0 /Src/libvp6/include/duck_bmp.h | |
parent | 537bcbc86291b32fc04ae4133ce4d7cac8ebe9a7 (diff) | |
download | winamp-20d28e80a5c861a9d5f449ea911ab75b4f37ad0d.tar.gz |
Initial community commit
Diffstat (limited to 'Src/libvp6/include/duck_bmp.h')
-rw-r--r-- | Src/libvp6/include/duck_bmp.h | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/Src/libvp6/include/duck_bmp.h b/Src/libvp6/include/duck_bmp.h new file mode 100644 index 00000000..5b4fa291 --- /dev/null +++ b/Src/libvp6/include/duck_bmp.h @@ -0,0 +1,79 @@ +#ifndef _duck_bmp_h +#define _duck_bmp_h + +#include "dkpltfrm.h" + +#if defined(__cplusplus) +extern "C" { +#endif + +typedef struct tDKBITMAP_old +{ + unsigned long ulFormatTag; + unsigned long usWidth; /* width */ + unsigned long usHeight; /* height */ + unsigned long bmWidthBytes; + unsigned short bmPlanes; + unsigned short usDepth; + unsigned int ulHandler; + +} DKBITMAP_old; /* Depricated please ! */ + + +/* This is the REAL BITMAP */ +typedef struct tDKBITMAP { + unsigned long bmType; + unsigned long bmWidth; + unsigned long bmHeight; + unsigned long bmWidthBytes; + unsigned short bmPlanes; + unsigned short bmBitsPixel; + void* bmBits; +} DKBITMAP; + + + +#if !defined(DWORD) +#define DWORD unsigned int +#endif + +#if !defined(WORD) +#define WORD unsigned short +#endif + + + + +typedef struct DK_BITMAPINFOHEADER_t +{ + DWORD biSize; + DWORD biWidth; + DWORD biHeight; + WORD biPlanes; + WORD biBitCount; + DWORD biCompression; + DWORD biSizeImage; + DWORD biXPelsPerMeter; + DWORD biYPelsPerMeter; + DWORD biClrUsed; + DWORD biClrImportant; + + DWORD fccHandler; /* hopefully this never matters */ + DWORD dxFlavor; +} DK_BITMAPINFOHEADER; + + +static int DK_BITMAPINFOHEADER_REFLECT[ ] = { 4,4,4,2,2, 4,4,4,4,4,4,4,4 }; + + + +#undef WORD +#undef DWORD + + + + +#if defined(__cplusplus) +} +#endif +#endif |