|
MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
|
| MAYAFLUX_API double MayaFlux::Kakshya::read_normalized_at | ( | const DataVariant & | v, |
| Portal::Graphics::ImageFormat | format, | ||
| size_t | elem_index | ||
| ) |
Read one element as a normalised double.
uint8 divided by 255. uint16 divided by 65535 unless the format is half-float, in which case the raw bits are returned uninterpreted. float returned unchanged.
| v | Source variant. |
| format | Pixel format governing the uint16 interpretation. |
| elem_index | Element index. Returns 0.0 when out of range. |