Function holoscan::viz::GetSurfaceFormats
Defined in File holoviz.hpp
-
void holoscan::viz::GetSurfaceFormats(uint32_t *surface_format_count, SurfaceFormat *surface_formats)
Get the supported surface formats.
<a class="reference internal" href="function_modules_2holoviz_2src_2holoviz_2holoviz_8hpp_1a9b6ca550663db0ab06c5f3ba6877dff7.html#modules_2holoviz_2src_2holoviz_2holoviz_8hpp_1a9b6ca550663db0ab06c5f3ba6877dff7" target="_self">viz::Init()</a>
has to be called before since the surface formats depend on the window.If
surface_formats
is nullptr, then the number of surface formats supported for the current window is returned insurface_format_count
. Otherwise,surface_format_count
must point to a variable set by the application to the number of elements in thesurface_formats
array, and on return the variable is overwritten with the number of values actually written tosurface_formats
. If the value ofsurface_format_count
is less than the number of surface formats supported, at mostsurface_format_count
values will be written,- Parameters
surface_format_count – number of surface formats available or queried
surface_formats – either nullptr or a pointer to an array of SurfaceFormat values