optris::sdk::Rgb24
One palette entry. Eight bits per channel, no alpha, no padding -- three bytes, so an array of these is the same bytes a caller would upload as an RGB texture or write into a gradient.
Public attributes
r
uint8_t r
Red, 0 to 255 over the full range.
Already display-encoded. The colorizer writes this byte straight into the output pixel's red channel, and the resample from 240 entries to the renderer's 256-entry lookup interpolates in this encoding rather than in light. So treat it as sRGB: linearizing it first would give a picture the SDK's own output does not match.
g
uint8_t g
Green, on the same scale and in the same encoding as r.
b
uint8_t b
Blue, likewise, and last -- the three bytes are in red, green, blue order, which is what makes an array of these RGB8 and not BGR8. Note the colorized frames the SDK delivers are BGRA8, the opposite order, so copying palette entries into one is a swap and not a memcpy.