Menu

FBMFormat

Kaban

FBM (FLASH BitMap) is simplified version of SBM designed for images stored in flash memory.
This format does not support compression and embedded palettes.

Layout

  • Header
  • Pixel Data

Structures

File header

Fields are 32-bit aligned for fast access with 32-bit ARM MCU's

Delphi/Pascal

type
    TFBMHeader = packed record
        dwID: cardinal;
        dwFormat: cardinal;
        dwWidth: cardinal;
        dwHeight: cardinal;
        dwRowSize: cardinal;
        dwDataSize: cardinal;
    end;

C/C++

typedef struct _fbm_header {
    uint32_t dwId;
    uint32_t dwFormat;
    uint32_t dwWidth;
    uint32_t dwHeight;
    uint32_t dwRowSize;
    uint32_t dwDataSize;
} fbm_header_t;

where

  • dwId - file identifier (4D424C46 in hex or "FLBM")
  • dwFormat - bit depth/colorspace (see Color Formats)
  • dwWidth - image width
  • dwHeight - image height
  • dwRowSize - row size in bytes
  • dwDataSize - total pixel data size in bytes

Related

Wiki: ColorFormats
Wiki: Home
Wiki: SBMFormat

MongoDB Logo MongoDB