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

◆ is_depth_format()

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

True when the format's values are range measurements rather than colour.

Governs whether a container declares VIDEO_COLOR or VIDEO_DEPTH, and therefore whether its component axis carries Role::CHANNEL or Role::DEPTH.

Parameters
formatPixel format.

Definition at line 290 of file PixelStorage.cpp.

291{
292 switch (format) {
293 case ImageFormat::DEPTH16:
294 case ImageFormat::DEPTH24:
295 case ImageFormat::DEPTH32F:
296 case ImageFormat::DEPTH24_STENCIL8:
297 return true;
298 default:
299 return false;
300 }
301}
bool format

References DEPTH16, DEPTH24, DEPTH24_STENCIL8, DEPTH32F, and format.

Referenced by MayaFlux::Kakshya::VideoStreamContainer::setup_ring(), and MayaFlux::Kakshya::VideoStreamContainer::VideoStreamContainer().

+ Here is the caller graph for this function: