Language

The Free and Open Productivity Suite
Released: Apache OpenOffice 4.1.15

:: com :: sun :: star :: rendering ::

unpublished constants group FloatingPointBitmapFormat
Description
This structure describes format of a floating point bitmap.

The difference between chunky and planar layout lies in the way how color channels are interleaved. For a chunky format, all channel data for a single pixel lies consecutively in memory. For a planar layout, the first channel of all pixel is stored consecutive, followed by the second channel, and so forth.

Since
OOo 2.0.0

Constants
CHUNKY_HALFFLOAT Half-float format, with chunky layout.  
PLANES_HALFFLOAT Half-float format, with plane layout.  
CHUNKY_FLOAT IEEE float format, with chunky layout.  
PLANES_FLOAT IEEE float format, with plane layout.  
CHUNKY_DOUBLE IEEE double format, with chunky layout.  
PLANES_DOUBLE IEEE double format, with chunky layout.  
Constants' Details
CHUNKY_HALFFLOAT
const byte CHUNKY_HALFFLOAT =0;
Description
Half-float format, with chunky layout.

The color components are stored in the half-float format, i.e. in a 16 bit value, with 5 bit exponent, 10 bit mantissa and a sign bit. The bits of each value are stored consecutive in memory.

PLANES_HALFFLOAT
const byte PLANES_HALFFLOAT =1;
Description
Half-float format, with plane layout.

The color components are stored in the half-float format, i.e. in a 16 bit value, with 5 bit exponent, 10 bit mantissa and a sign bit. For multi-channel Bitmaps, the pixel of the first color channel are stored consecutively, follow by the second channel and so forth.

CHUNKY_FLOAT
const byte CHUNKY_FLOAT =2;
Description
IEEE float format, with chunky layout.

The color components are stored in the IEEE single-precision floating point format, i.e. in a 32 bit value, with 8 bit exponent, 23 bit mantissa and a sign bit. The bits of each value are stored consecutive in memory.

PLANES_FLOAT
const byte PLANES_FLOAT =3;
Description
IEEE float format, with plane layout.

The color components are stored in the IEEE single-precision floating point format, i.e. in a 32 bit value, with 8 bit exponent, 23 bit mantissa and a sign bit. For multi-channel Bitmaps, the pixel of the first color channel are stored consecutively, follow by the second channel and so forth.

CHUNKY_DOUBLE
const byte CHUNKY_DOUBLE =4;
Description
IEEE double format, with chunky layout.

The color components are stored in the IEEE double-precision floating point format, i.e. in a 64 bit value, with 16 bit exponent, 47 bit mantissa and a sign bit. The bits of each value are stored consecutive in memory.

PLANES_DOUBLE
const byte PLANES_DOUBLE =5;
Description
IEEE double format, with chunky layout.

The color components are stored in the IEEE double-precision floating point format, i.e. in a 64 bit value, with 16 bit exponent, 47 bit mantissa and a sign bit. For multi-channel Bitmaps, the pixel of the first color channel are stored consecutively, follow by the second channel and so forth.

Top of Page

Apache Software Foundation

Copyright & License | Privacy | Contact Us | Donate | Thanks

Apache, OpenOffice, OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. The Apache feather logo is a trademark of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.