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_v2 Class Reference

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

#include <SRanipal_Lip_v2.h>

Public Member Functions

int GetLipData_v2 (ViveSR::anipal::Lip::LipData_v2 *data)
 
bool GetLipWeightings_v2 (TMap< LipShape_v2, float > &shapes)
 
bool UpdateTexture (UTexture2D *&texture)
 

Static Public Member Functions

static SRanipal_Lip_v2Instance ()
 
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_v2()

int SRanipal_Lip_v2::GetLipData_v2 ( ViveSR::anipal::Lip::LipData_v2 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_v2()

bool SRanipal_Lip_v2::GetLipWeightings_v2 ( TMap< LipShape_v2, 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_v2::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.