NRSDKApiForUnity
Classes
XRXREALFrameCaptureContext
Unity.XR.XREAL.FrameCaptureContext

Public Member Functions

CaptureBehaviourBase GetBehaviour ()
 
AbstractFrameProvider GetFrameProvider ()
 
BlenderBase GetBlender ()
 
CameraParameters RequestCameraParam ()
 
IEncoder GetEncoder ()
 
 FrameCaptureContext ()
 
void StartCaptureMode (CameraParameters param, BlenderBase blender, AbstractFrameProvider provider)
 
BlendMode AutoAdaptBlendMode (BlendMode blendMode, bool isGrayCamera=false)
 
void StopCaptureMode ()
 
void StartCapture ()
 
void StopCapture ()
 
void Release ()
 

Properties

Texture PreviewTexture [get]
 

Detailed Description

A frame capture context.

Member Function Documentation

◆ AutoAdaptBlendMode()

BlendMode Unity.XR.XREAL.FrameCaptureContext.AutoAdaptBlendMode ( BlendMode blendMode,
bool isGrayCamera = false )

Auto adaption for BlendMode based on supported feature on current device.

Parameters
blendModesource blendMode.
Returns
Fallback blendMode.

◆ GetBehaviour()

CaptureBehaviourBase Unity.XR.XREAL.FrameCaptureContext.GetBehaviour ( )

Gets the behaviour.

Returns
The behaviour.

◆ GetBlender()

BlenderBase Unity.XR.XREAL.FrameCaptureContext.GetBlender ( )

Gets the blender.

Returns
The blender.

◆ GetEncoder()

IEncoder Unity.XR.XREAL.FrameCaptureContext.GetEncoder ( )

Gets the encoder.

Returns
The encoder.

◆ GetFrameProvider()

AbstractFrameProvider Unity.XR.XREAL.FrameCaptureContext.GetFrameProvider ( )

Gets frame provider.

Returns
The frame provider.

◆ RequestCameraParam()

CameraParameters Unity.XR.XREAL.FrameCaptureContext.RequestCameraParam ( )

Request camera parameter.

Returns
The CameraParameters.

◆ StartCaptureMode()

void Unity.XR.XREAL.FrameCaptureContext.StartCaptureMode ( CameraParameters param,
BlenderBase blender,
AbstractFrameProvider provider )

Starts capture mode.

Parameters
paramThe parameter.

Property Documentation

◆ PreviewTexture

Texture Unity.XR.XREAL.FrameCaptureContext.PreviewTexture
get

Gets the preview texture.

The preview texture.