VirtualBox

Changeset 85870 in vbox for trunk/include


Ignore:
Timestamp:
Aug 21, 2020 4:56:23 PM (4 years ago)
Author:
vboxsync
Message:

iprt/formats/bmp.h: doxygen fixes and a couple of adjustments.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/formats/bmp.h

    r85864 r85870  
    11/* $Id$ */
    22/** @file
    3  * Bitmap (BMP) format defines.
     3 * IPRT - Microsoft Bitmap Formats (BMP).
    44 */
    55
    66/*
    7  * Copyright (C) 2020 Oracle Corporation
     7 * Copyright (C) 2006-2020 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    3434#include <iprt/assertcompile.h>
    3535
     36
     37/** @defgroup grp_rt_fmt_bmp  Microsoft Bitmaps Formats (BMP)
     38 * @ingroup grp_rt_formats
     39 * @{
     40 */
     41
    3642/** @name BMP header sizes (in bytes).
    37  * @{ . */
     43 * @{ */
    3844#define BMP_HDR_SIZE_FILE      14
    3945#define BMP_HDR_SIZE_OS21      12
    4046#define BMP_HDR_SIZE_OS22      64
    4147#define BMP_HDR_SIZE_WIN3X     40
    42 /** @} . */
     48/** @} */
    4349
    44 #pragma pack(1)
    4550
    4651/** BMP format file header. */
     52#pragma pack(1)
    4753typedef struct BMPFILEHDR
    4854{
     
    5864    uint32_t      offBits;
    5965} BMPFILEHDR;
     66#pragma pack()
    6067AssertCompileSize(BMPFILEHDR, BMP_HDR_SIZE_FILE);
    6168/** Pointer to a BMP format file header. */
    6269typedef BMPFILEHDR *PBMPFILEHDR;
     70
     71/** BMP file magic number for BMP / DIB. */
     72#define BMP_HDR_MAGIC (RT_H2LE_U16_C(0x4d42))
    6373
    6474/** OS/2 1.x BMP core header,
     
    158168typedef BMPWIN3XINFOHDR *PBMPWIN3XINFOHDR;
    159169
    160 #pragma pack()
    161170
    162 /** BMP file magic number for BMP / DIB. */
    163 #define BMP_HDR_MAGIC (RT_H2LE_U16_C(0x4d42))
    164171
    165172/** @name BMP compression types.
    166  * @{ . */
    167 typedef enum BMP_COMPRESSION_TYPE
    168 {
    169     BMP_COMPRESSION_TYPE_NONE = 0,
    170     BMP_COMPRESSION_TYPE_RLE8 = 1,
    171     BMP_COMPRESSION_TYPE_RLE4 = 2
    172 } BMP_COMPRESSION_TYPE;
    173 /** @} . */
     173 * @{  */
     174#define BMP_COMPRESSION_TYPE_NONE  0
     175#define BMP_COMPRESSION_TYPE_RLE8  1
     176#define BMP_COMPRESSION_TYPE_RLE4  2
     177/** @} */
     178
     179/** @} */
    174180
    175181#endif /* !IPRT_INCLUDED_formats_bmp_h */
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