|
MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
|
| MAYAFLUX_API void MayaFlux::Kakshya::write_normalized_at | ( | DataVariant & | v, |
| ImageFormat | format, | ||
| const std::optional< DataDimension::ValueRange > & | range, | ||
| size_t | elem_index, | ||
| double | value | ||
| ) |
Write one element from a normalised double, with optional range remapping.
Inverse of read_normalized_at, with clamping on the integer paths. If range is provided, the value is linearly remapped from [0.0, 1.0] to [range.min, range.max] before writing. Out-of-range indices are ignored.
| v | Destination variant. |
| format | Pixel format governing the uint16 interpretation. |
| range | Optional value range for remapping. |
| elem_index | Element index. |
| value | Normalised value. |
Definition at line 222 of file PixelStorage.cpp.
References format, is_float_format(), and value.
Referenced by MayaFlux::Kakshya::VideoStreamContainer::set_value_impl(), and write_normalized_at().
Here is the call graph for this function:
Here is the caller graph for this function: