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:
attr – [in] The reference to a cupva::mem::SurfaceAttributes object.
bpp – [in] The number of bytes per pixel.
geom – [out] The reference to a PlanarGeometry struct.
- Throws:
cupva::Exception(NotAllowedInOperationalState) – if current context is null and default context does not exist and NVIDIA DRIVE OS VM state is “Operational”