Defines

Bitmap Types

See also: BitmapStorage, Color, AColor, AColor, LogLUV32Pixel, LogLUV24Pixel, RealPixel. More...

Defines

#define  BMM_NO_TYPE   0
  Not allocated yet.
#define  BMM_LINE_ART   1
  1-bit monochrome image
#define  BMM_PALETTED   2
  8-bit paletted image.
#define  BMM_GRAY_8   3
  8-bit grayscale bitmap.
#define  BMM_GRAY_16   4
  16-bit grayscale bitmap.
#define  BMM_TRUE_16   5
  16-bit true color image.
#define  BMM_TRUE_32   6
  32-bit color: 8 bits each for Red, Green, Blue, and Alpha.
#define  BMM_TRUE_64   7
  64-bit color: 16 bits each for Red, Green, Blue, and Alpha.
#define  BMM_LOGLUV_32   13
  This format uses a logarithmic encoding of luminance and U' and V' in the CIE perceptively uniform space.
#define  BMM_LOGLUV_24   14
  This format is similar to BMM_LOGLUV_32 except is uses smaller values to give a span of 5 order of magnitude from 1/4096 to 16 in 1.1% luminance steps.
#define  BMM_LOGLUV_24A   15
  This format is similar to BMM_LOGUV_24, except the 8 bit alpha value is kept with the 24 bit color value in a single 32 bit word.
#define  BMM_REALPIX_32   16
  The "Real Pixel" format.
#define  BMM_FLOAT_RGBA_32   17
  32-bit floating-point per component (non-compressed), RGB with or without alpha
#define  BMM_FLOAT_GRAY_32   18
  32-bit floating-point (non-compressed), monochrome/grayscale
#define  BMM_TRUE_24   8
  24-bit color: 8 bits each for Red, Green, and Blue.
#define  BMM_TRUE_48   9
  48-bit color: 16 bits each for Red, Green, and Blue.
#define  BMM_YUV_422   10
  This is the YUV format - CCIR 601.
#define  BMM_BMP_4   11
  Windows BMP 16-bit color bitmap.
#define  BMM_PAD_24   12
  Padded 24-bit (in a 32 bit register).
#define  BMM_FLOAT_RGB_32   19
  ONLY returned by the GetStoragePtr() method of BMM_FLOAT_RGBA_32 storage, NOT an actual storage type! When GetStoragePtr() returns this type, the data should be interpreted as three floating-point values, corresponding to Red, Green, and Blue (in this order).
#define  BMM_FLOAT_A_32   20
  ONLY returned by the GetAlphaStoragePtr() method of BMM_FLOAT_RGBA_32 or BMM_FLOAT_GRAY_32 storage, NOT an actual storage type! When GetStorageAlphaPtr() returns this type, the data should be interpreted as floating-point values one value per pixel, corresponding to Alpha.

Detailed Description

See also: BitmapStorage, Color, AColor, AColor, LogLUV32Pixel, LogLUV24Pixel, RealPixel.


Define Documentation

#define BMM_NO_TYPE   0

Not allocated yet.

#define BMM_LINE_ART   1

1-bit monochrome image

#define BMM_PALETTED   2

8-bit paletted image.

Each pixel value is an index into the color table.

#define BMM_GRAY_8   3

8-bit grayscale bitmap.

#define BMM_GRAY_16   4

16-bit grayscale bitmap.

#define BMM_TRUE_16   5

16-bit true color image.

#define BMM_TRUE_32   6

32-bit color: 8 bits each for Red, Green, Blue, and Alpha.

#define BMM_TRUE_64   7

64-bit color: 16 bits each for Red, Green, Blue, and Alpha.

#define BMM_LOGLUV_32   13

This format uses a logarithmic encoding of luminance and U' and V' in the CIE perceptively uniform space.

It spans 38 orders of magnitude from 5.43571 to 1.84467 in steps of about 0.3% luminance steps. It includes both positive and negative colors. A separate 16 bit channel is kept for alpha values.

#define BMM_LOGLUV_24   14

This format is similar to BMM_LOGLUV_32 except is uses smaller values to give a span of 5 order of magnitude from 1/4096 to 16 in 1.1% luminance steps.

A separate 8 bit channel is kept for alpha values.

#define BMM_LOGLUV_24A   15

This format is similar to BMM_LOGUV_24, except the 8 bit alpha value is kept with the 24 bit color value in a single 32 bit word.

#define BMM_REALPIX_32   16

The "Real Pixel" format.

#define BMM_FLOAT_RGBA_32   17

32-bit floating-point per component (non-compressed), RGB with or without alpha

#define BMM_FLOAT_GRAY_32   18

32-bit floating-point (non-compressed), monochrome/grayscale

#define BMM_TRUE_24   8

24-bit color: 8 bits each for Red, Green, and Blue.

Cannot be written to.

#define BMM_TRUE_48   9

48-bit color: 16 bits each for Red, Green, and Blue.

Cannot be written to.

#define BMM_YUV_422   10

This is the YUV format - CCIR 601.

Cannot be written to.

#define BMM_BMP_4   11

Windows BMP 16-bit color bitmap.

Cannot be written to.

#define BMM_PAD_24   12

Padded 24-bit (in a 32 bit register).

Cannot be written to.

#define BMM_FLOAT_RGB_32   19

ONLY returned by the GetStoragePtr() method of BMM_FLOAT_RGBA_32 storage, NOT an actual storage type! When GetStoragePtr() returns this type, the data should be interpreted as three floating-point values, corresponding to Red, Green, and Blue (in this order).

#define BMM_FLOAT_A_32   20

ONLY returned by the GetAlphaStoragePtr() method of BMM_FLOAT_RGBA_32 or BMM_FLOAT_GRAY_32 storage, NOT an actual storage type! When GetStorageAlphaPtr() returns this type, the data should be interpreted as floating-point values one value per pixel, corresponding to Alpha.