NVIDIA Holoscan SDK v2.7.0
Holoscan v2.7.0

Function holoscan::viz::GetSurfaceFormats

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 in surface_format_count. Otherwise, surface_format_count must point to a variable set by the application to the number of elements in the surface_formats array, and on return the variable is overwritten with the number of values actually written to surface_formats. If the value of surface_format_count is less than the number of surface formats supported, at most surface_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

Previous Function holoscan::viz::GetPresentModes
Next Function holoscan::viz::ImageChromaLocation
© Copyright 2022-2024, NVIDIA. Last updated on Dec 2, 2024.