cuda.bindings._v2.driver.egl_stream_producer_present_frame#

cuda.bindings._v2.driver.egl_stream_producer_present_frame(
intptr_t conn,
intptr_t eglframe,
intptr_t p_stream,
)#

Present a CUDA eglFrame to the EGL stream.

When a frame is presented by the producer it gets associated with the EGLStream; freeing the frame before the producer is disconnected leads to undefined behavior. If producer and consumer are on different GPUs (iGPU and dGPU), CU_EGL_FRAME_TYPE_ARRAY is not supported — CU_EGL_FRAME_TYPE_PITCH must be used instead.

For CU_EGL_FRAME_TYPE_PITCH frames, the application may present a sub-region of a memory allocation by setting the pitched pointer to the start address of the sub-region.

Parameters:
  • conn (intptr_t) – Connection handle returned by egl_stream_producer_connect().

  • eglframe (intptr_t) – Pointer to a CUeglFrame struct containing the frame to present.

  • p_stream (intptr_t) – Stream on which to present the frame.

See also

cuEGLStreamProducerPresentFrame