NRSDKApiForUnity
Classes
XRXREALNativeEncodeConfig
Unity.XR.XREAL.NativeEncodeConfig

Public Member Functions

 NativeEncodeConfig (CameraParameters cameraparam, string path="")
 
void SetOutPutPath (string path)
 
override string ToString ()
 

Properties

int width [get]
 
int height [get]
 
int bitRate [get]
 
int fps [get]
 
int codecType [get]
 
string outPutPath [get]
 
int useStepTime [get]
 
bool useAlpha [get]
 
bool useLinnerTexture [get]
 

Detailed Description

A native encode configuration.

Constructor & Destructor Documentation

◆ NativeEncodeConfig()

Unity.XR.XREAL.NativeEncodeConfig.NativeEncodeConfig ( CameraParameters cameraparam,
string path = "" )

Constructor.

Parameters
cameraparamThe cameraparam.
path(Optional) Full pathname of the file.

Member Function Documentation

◆ SetOutPutPath()

void Unity.XR.XREAL.NativeEncodeConfig.SetOutPutPath ( string path)

Sets out put path.

Parameters
pathFull pathname of the file.

◆ ToString()

override string Unity.XR.XREAL.NativeEncodeConfig.ToString ( )

Convert this object into a string representation.

Returns
A string that represents this object.

format: { "width":1280,"height":720,"bitRate":10240000,"fps":30,"codecType":0,"outPutPath":"/storage/emulated/0/Android/data/com.DefaultCompany.NRSDKXRPlugin/files/Xreal_Record_6437926.mp4","useStepTime":0,"useAlpha":false,"useLinnerTexture":true,"addMicphoneAudio":true,"addInternalAudio":true,"audioSampleRate":16000,"audioBitRate":128000}

Property Documentation

◆ bitRate

int Unity.XR.XREAL.NativeEncodeConfig.bitRate
get

Gets or sets the bit rate.

The bit rate.

◆ codecType

int Unity.XR.XREAL.NativeEncodeConfig.codecType
get

Gets or sets the type of the codec.

The type of the codec.

◆ fps

int Unity.XR.XREAL.NativeEncodeConfig.fps
get

Gets or sets the FPS.

The FPS.

◆ height

int Unity.XR.XREAL.NativeEncodeConfig.height
get

Gets or sets the height.

The height.

◆ outPutPath

string Unity.XR.XREAL.NativeEncodeConfig.outPutPath
get

Gets or sets the full pathname of the out put file.

The full pathname of the out put file.

◆ useAlpha

bool Unity.XR.XREAL.NativeEncodeConfig.useAlpha
get

Gets or sets a value indicating whether this object use alpha.

True if use alpha, false if not.

◆ useLinnerTexture

bool Unity.XR.XREAL.NativeEncodeConfig.useLinnerTexture
get

Gets or sets a value indicating whether this object use linner texture.

True if use linner texture, false if not.

◆ useStepTime

int Unity.XR.XREAL.NativeEncodeConfig.useStepTime
get

Gets or sets the use step time.

The use step time.

◆ width

int Unity.XR.XREAL.NativeEncodeConfig.width
get

Gets or sets the width.

The width.