CopyFromPlane#

Fully qualified name: cupva_utils::CopyFromPlane

Defined in cupva_host_utils.hpp

void cupva_utils::CopyFromPlane(
void *dst,
const void *srcPlaneBase,
const int32_t imageWidth,
const int32_t imageHeight,
)#

copy a surface plane to a pitch linear buffer.

Usage considerations

  • Allowed context for the API call

    • Interrupt handler: No

    • Signal handler: No

    • Thread-safe: No

    • Re-entrant: No

    • Async/Sync: Sync

  • Required privileges: None

  • Allowed execution state

    • Initialization: Yes

    • Operational: Yes

    • Reinit/Deinit Preparation: Yes

  • Maturity: GA

Parameters:
  • dst – [in] The host pointer to destination buffer.

  • srcPlaneBase – [in] The device pointer to plane base of source surface.

  • imageWidth – [in] The width of destination buffer in bytes.

  • imageHeight – [in] The height of destination buffer in lines.

Throws:

cupva::Exception(InvalidArgument) – Invalid device pointer.

Pre:

None