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

◆ is_float_format()

MAYAFLUX_API bool MayaFlux::Kakshya::is_float_format ( ImageFormat  format)

True when the format's numeric interpretation is floating point.

Distinguishes R16F from R16: both occupy U16 storage, but only the former holds half-float bits rather than a normalised integer.

Parameters
formatPixel format.

Definition at line 100 of file PixelStorage.cpp.

101{
102 switch (format) {
103 case ImageFormat::R16F:
104 case ImageFormat::RG16F:
105 case ImageFormat::RGBA16F:
106 case ImageFormat::R32F:
107 case ImageFormat::RG32F:
108 case ImageFormat::RGBA32F:
109 case ImageFormat::DEPTH32F:
110 return true;
111 default:
112 return false;
113 }
114}
bool format

References DEPTH32F, format, R16F, R32F, RG16F, RG32F, RGBA16F, and RGBA32F.

Referenced by read_normalized_at(), and write_normalized_at().

+ Here is the caller graph for this function: