The core classes currently offer classes to hold image data of various pixel and data types.
More...
The core classes currently offer classes to hold image data of various pixel and data types.
The template class TPixel allows for the representation of various pixel types, by not only using the data type as template parameter, but also the position of the various color and alpha elements within each pixel. Access to the pixel components is then possible with member inline functions r(), g(), b(), a(), which map to the correct position with a pixel.
The functions Float2Pixel() and Pixel2Float() are template functions that cast the pixel data type to float and vice versa.
◆ RX_IMG_10BIT_SPLIT_PACKED
#define RX_IMG_10BIT_SPLIT_PACKED |
Special Data Types
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)
◆ RX_IMG_12BIT_SPLIT_PACKED
#define RX_IMG_12BIT_SPLIT_PACKED |
◆ RX_IMG_BAYER_BG
◆ RX_IMG_BAYER_GB
◆ RX_IMG_BAYER_GR
◆ RX_IMG_BAYER_RG
◆ RX_IMG_BGR
◆ RX_IMG_BGRA
◆ RX_IMG_BYTE
◆ RX_IMG_DOUBLE
◆ RX_IMG_FLOAT
◆ RX_IMG_INT
◆ RX_IMG_LUMINANCE
◆ RX_IMG_LUMINANCE_ALPHA
#define RX_IMG_LUMINANCE_ALPHA |
◆ RX_IMG_RGB
◆ RX_IMG_RGBA
◆ RX_IMG_SHORT
◆ RX_IMG_UNSIGNED_BYTE
#define RX_IMG_UNSIGNED_BYTE |
◆ RX_IMG_UNSIGNED_INT
#define RX_IMG_UNSIGNED_INT |
◆ RX_IMG_UNSIGNED_SHORT
#define RX_IMG_UNSIGNED_SHORT |
◆ RX_IMG_YUV420P
◆ RXCORE_API
◆ GetTime()
Gets the current time in milliseconds as double.
- Returns
- The current time in milliseconds as double.
◆ GetTime64()
Gets the current time in milliseconds as a 64 bit integer.
- Returns
- The current time in milliseconds as a 64 bit integer.
◆ InitTime()
◆ Sleep()
Blocks the execution of the current thread for at least the specified time given in milliseconds.
A steady clock is used to measure the duration. This function may block for longer than the given time due to scheduling or resource contention delays.
- Parameters
-
uTime | The time to sleep in milliseconds. |