Namespace: Rx – Header: Rx.Core/EDataType.h

EDataType Enumeration

C++
#include "Rx.Core/EDataType.h"
enum class EDataType

Specifies possible data types of an image.

The data type describes the format and size of each pixel component.

Values

Void

This data type is used for an invalid or uninitialized state.

Custom_10in16_LSB

The lower 10 bits of a 16 bit unsigned short are used. The upper 6 bits are unused (zero).

Custom_10in16_MSB

The upper 10 bits of a 16 bit unsigned short are used. The lower 6 bits are unused (zero).

Custom_12in16_LSB

The lower 12 bits of a 16 bit unsigned short are used. The upper 4 bits are unused (zero).

Custom_12in16_MSB

The upper 12 bits of a 16 bit unsigned short are used. The lower 4 bits are unused (zero).

Custom_Packed10

Each pixel has a size of 10 bit. It should be converted into 16 bit.

Custom_Packed12

Each pixel has a size of 12 bit. It should be converted into 16 bit.

SplitPacked10Bits

In this formats the high and low bits of each pixel are split. In the following packing description Hx refers to high bits of a pixel value and Lx refers to the low bits of a pixel value with index x. The | represents an 8-bit octet (1 byte).

Format layout is: H0 | H1 | H2 | H3 | L3 L2 L1 L0 | H4 | H5 | ....

SplitPacked12Bits

In this formats the high and low bits of each pixel are split. In the following packing description Hx refers to high bits of a pixel value and Lx refers to the low bits of a pixel value with index x. The | represents an 8-bit octet (1 byte).

Format layout is: H0 | H1 | L1 L0 | H2 | H3 | L3 L2 | ...

Byte

Signed 8 bit. The value is equal to GL_BYTE from OpenGL.

UByte

Unsigned 8 bit. The value is equal to GL_UNSIGNED_BYTE from OpenGL.

Short

Signed 16 bit. The value is equal to GL_SHORT from OpenGL.

UShort

Unsigned 16 bit. The value is equal to GL_UNSIGNED_SHORT from OpenGL.

Int

Signed 32 bit. The value is equal to GL_INT from OpenGL.

UInt

Unsigned 32 bit. The value is equal to GL_UNSIGNED_INT from OpenGL.

Float

Signed single precision floating point. The value is equal to GL_FLOAT from OpenGL.

Double

Signed double precision floating point. The value is equal to GL_DOUBLE from OpenGL.