MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ write_normalized_at() [2/2]

MAYAFLUX_API void MayaFlux::Kakshya::write_normalized_at ( DataVariant &  v,
ImageFormat  format,
size_t  elem_index,
double  value 
)

Write one element from a normalised double.

Inverse of read_normalized_at, with clamping on the integer paths. Out-of-range indices are ignored.

Parameters
vDestination variant.
formatPixel format governing the uint16 interpretation.
elem_indexElement index.
valueNormalised value.

Definition at line 276 of file PixelStorage.cpp.

278{
279 write_normalized_at(v, format, std::nullopt, elem_index, value);
280}
bool format
glm::vec3 value
void 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.

References format, value, and write_normalized_at().

+ Here is the call graph for this function: