Table of Contents

Delegate VulkanContinuousCaptureSession.OnFrameReadyCallback

Signals the Vulkan plugin that a frame is ready for conversion.

public delegate void VulkanContinuousCaptureSession.OnFrameReadyCallback(nint acquiredBufferPtr, int bufferDataSpace, long bufferId, long timestampNs)

Parameters

acquiredBufferPtr nint

The HardwareBuffer associated with the frame.

bufferDataSpace int

The DataSpace of the buffer.

bufferId long

The global unique ID (AHardwareBuffer_getId) of the buffer.

timestampNs long

The timestamp the frame was captured at in nanoseconds.

Extension Methods

Remarks

AHardwareBuffer_acquire has already been called on acquiredBufferPtr, and this method must release it either through native plugin render events or releaseHardwareBuffer(nint).