ConvertToGeometry#

Fully qualified name: cupva::mem::ConvertToGeometry

Defined in src/host/cpp_api/include/cupva_host.hpp

void cupva::mem::ConvertToGeometry(
cupva::mem::SurfaceAttributes const &attr,
int32_t const bpp,
PlanarGeometry &geom,
)#

Convert the surface attributes to planar geometry.

Usage considerations

  • Allowed context for the API call

    • Thread-safe: Yes

  • API group

    • Init: Yes

    • Runtime: No

    • De-Init: No

Parameters:
Throws:

cupva::Exception(NotAllowedInOperationalState) – if current context is null and default context does not exist and NVIDIA DRIVE OS VM state is “Operational”