Function holoscan::viz::GetImageFormats
Defined in File holoviz.hpp
-
void holoscan::viz::GetImageFormats(uint32_t *image_format_count, ImageFormat *image_formats)
Get the supported image formats.
viz::Init()has to be called before since the image formats depend on the physical device.If
image_formatsis nullptr, then the number of image formats supported for the current device is returned inimage_format_count. Otherwise,image_format_countmust point to a variable set by the application to the number of elements in theimage_formatsarray, and on return the variable is overwritten with the number of values actually written toimage_formats. If the value ofimage_format_countis less than the number of image formats supported, at mostimage_format_countvalues will be written,- Parameters
image_format_count – number of image formats available or queried
image_formats – either nullptr or a pointer to an array of ImageFormat values