ConvertToGeometry#
Fully qualified name: cupva::mem::ConvertToGeometry
Defined in 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
Interrupt handler: No
Signal handler: No
Thread-safe: Yes
Re-entrant: No
Async/Sync: Sync
Required privileges: None
Allowed execution state
Initialization: Yes
Operational: No
Reinit/Deinit Preparation: Yes
Maturity: GA
- 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”
- Pre:
None