VirtualBox

Changeset 85856 in vbox for trunk/include


Ignore:
Timestamp:
Aug 21, 2020 9:06:50 AM (4 years ago)
Author:
vboxsync
Message:

Consolidated all the different Bitmap (BMP) file format headers / definitions into new include/iprt/formats/bmp.h (part 1).

Location:
trunk/include
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/GuestHost/clipboard-helper.h

    r85845 r85856  
    165165int ShClConvLatin1LFToUtf16CRLF(const char *pcszSrc, size_t cbSrc, PRTUTF16 *ppwszDst, size_t *pcwDst);
    166166
    167 #pragma pack(1)
    168 /** @todo r=bird: Why duplicate these structures here, we've got them in
    169  *        DevVGA.cpp already! */
    170 /**
    171  * Bitmap File Header. Official win32 name is BITMAPFILEHEADER
    172  * Always Little Endian.
    173  */
    174 typedef struct BMFILEHEADER
    175 {
    176     uint16_t uType;
    177     uint32_t uSize;
    178     uint16_t uReserved1;
    179     uint16_t uReserved2;
    180     uint32_t uOffBits;
    181 } BMFILEHEADER;
    182 #pragma pack()
    183 
    184 /** Pointer to a BMFILEHEADER structure. */
    185 typedef BMFILEHEADER *PBMFILEHEADER;
    186 /** BMP file magic number */
    187 #define BITMAPHEADERMAGIC (RT_H2LE_U16_C(0x4d42))
    188 
    189 /**
    190  * Bitmap Info Header. Official win32 name is BITMAPINFOHEADER
    191  * Always Little Endian.
    192  */
    193 typedef struct BMINFOHEADER
    194 {
    195     uint32_t uSize;
    196     uint32_t uWidth;
    197     uint32_t uHeight;
    198     uint16_t uPlanes;
    199     uint16_t uBitCount;
    200     uint32_t uCompression;
    201     uint32_t uSizeImage;
    202     uint32_t uXBitsPerMeter;
    203     uint32_t uYBitsPerMeter;
    204     uint32_t uClrUsed;
    205     uint32_t uClrImportant;
    206 } BMINFOHEADER;
    207 /** Pointer to a BMINFOHEADER structure. */
    208 typedef BMINFOHEADER *PBMINFOHEADER;
    209 
    210167/**
    211168 * Convert CF_DIB data to full BMP data by prepending the BM header.
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette