Skip to main content
Version: 12 Dec 2024

CreateInfo

Info to create the native rendering plugin instance with

Public Methods

CreateInfo

Construct the info for the native plugin instance

public CreateInfo(
GCHandle context,
YcbcrRenderer renderer,
bool waitForQueueIdleOnSubmit
)

Parameters

TypeNameDescription
GCHandlecontextGCHandle passed back to the callbacks as the user context
YcbcrRendererisReleaseBufferAvailableIf the api supports releasing the native buffer. Pass false to avoid unnecesarry calls from unmanaged to managed layer.
boolisFrameTransformMatrixAvailableIf the api supports a frame transform matrix. Pass false to avoid unnecesarry calls & data copies from unmanaged to managed layer & back.

Public Attributes

AcquireNextAvailableBufferCallback

Callback invoked by the native plugin to acquire a native buffer.


public AcquireNextAvailableBufferDelegate AcquireNextAvailableBufferCallback;


AcquireNextAvailableHwBufferCallback


public AcquireNextAvailableHwBufferDelegate AcquireNextAvailableHwBufferCallback;


Context

User context data provided in the callbacks.


public IntPtr Context;


GetFrameTransformMatrixCallback

Callback invoked by the native plugin to get the frame transform matrix.


public GetFrameTransformMatrixDelegate GetFrameTransformMatrixCallback;


IsNewFrameAvailableCallback


public IsNewFrameAvailableDelegate IsNewFrameAvailableCallback;


OnCleanupCompleteCallback


public OnCleanupCompleteDelegate OnCleanupCompleteCallback;


OnFirstFrameRenderedCallback


public OnFirstFrameRenderedDelegate OnFirstFrameRenderedCallback;


OverrideYcbcrConversionSamplerCallback


public OverrideYcbcrConversionSamplerDelegate OverrideYcbcrConversionSamplerCallback;


ReleaseBufferCallback

Callback invoked by the native plugin to release a native buffer.


public ReleaseBufferDelegate ReleaseBufferCallback;


ReleaseHwBufferCallback


public ReleaseHwBufferDelegate ReleaseHwBufferCallback;


ShouldWaitForQueueIdleOnSubmit


public bool ShouldWaitForQueueIdleOnSubmit;