SRanipal Unreal SDK  1.3.2.0
SRanipal Unreal SDK document
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
SRanipal_Lip Class Reference

The internal static class about lip relative API. More...

#include <SRanipal_Lip.h>

Public Member Functions

int GetLipData_ (ViveSR::anipal::Lip::LipData *data)
 
bool GetLipWeightings (TMap< LipShape, float > &shapes)
 
bool UpdateTexture (UTexture2D *&texture)
 

Static Public Member Functions

static SRanipal_LipInstance ()
 
static void DestroyLipModule ()
 

Public Attributes

int ImageWidth
 
int ImageHeight
 
int SingleImageWidth
 

Detailed Description

The internal static class about lip relative API.

Member Function Documentation

◆ GetLipData_()

int SRanipal_Lip::GetLipData_ ( ViveSR::anipal::Lip::LipData data)

Get the LipData from Lip engine. When use this API, you should assign an uint8 image buffer(size = 800*400) to data.image.

Returns
one of ViveSR.Error

◆ GetLipWeightings()

bool SRanipal_Lip::GetLipWeightings ( TMap< LipShape, float > &  shapes)

Get a dictionary that stores individual weighting with respect to LipShape

Parameters
shapesA dictionary that stores individual weighting with respect to LipShape.
Returns
true if there is any new data.

◆ UpdateTexture()

bool SRanipal_Lip::UpdateTexture ( UTexture2D *&  texture)

Update given texture2D with lip image.

Parameters
textureA texture2D sholud be defined as UTexture2D::CreateTransient(ImageWidth, ImageHeight, PF_A8)
Returns
true if there is any new data.