XrFacialExpressionsHTC structure returns data of a lip facial expression or an eye facial expression.
An application must preallocate the output expressionWeightings array that can contain at least expressionCount of float. expressionCount must be at least FACIAL_EXPRESSION_LIP_COUNT_HTC for FACIAL_TRACKING_TYPE_LIP_DEFAULT_HTC, and at least FACIAL_EXPRESSION_EYE_COUNT_HTC for FACIAL_TRACKING_TYPE_EYE_DEFAULT_HTC.
The application must set expressionCount as described by the XrFacialTrackingTypeHTC when creating the XrFacialTrackerHTC otherwise the runtime must return ERROR_VALIDATION_FAILURE.
The runtime must update the expressionWeightings array ordered so that the application can index elements using the corresponding facial tracker enum (e.g. XrEyeExpressionHTC or XrLipExpressionHTC) as described by XrFacialTrackingTypeHTC when creating the XrFacialTrackerHTC. For example, when the XrFacialTrackerHTC is created with facialTrackingType set to FACIAL_TRACKING_TYPE_EYE_DEFAULT_HTC, the application must set the expressionCount to FACIAL_EXPRESSION_EYE_COUNT_HTC, and the runtime must fill the expressionWeightings array ordered with eye expression data so that it can be indexed by the XrEyeExpressionHTC enum.
If the returned isActive is true, the runtime must fill the expressionWeightings array ordered.
If the returned isActive is false, it indicates the facial tracker did not detect the corresponding facial input or the application lost input focus.
If the input expressionCount is not sufficient to contain all output indices, the runtime must return ERROR_SIZE_INSUFFICIENT on calls to GetFacialExpressionsHTC and not change the content in expressionWeightings.
XR_HTC_facial_tracking extension must be enabled prior to using XrFacialExpressionsHTCtype must be TYPE_FACIAL_EXPRESSIONS_HTCnext must be NULL or a valid pointer to the next structure in a structure chainexpressionWeightings must be a pointer to a float value
struct XrFacialExpressionsHTC {
XrStructureType type;
void const * next;
XrBool32 isActive;
XrTime sampleTime;
uint32_t expressionCount;
float * expressionWeightings;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | XrFacialExpressionsHTC.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | EXPRESSIONCOUNT
The struct member offsets. |
| public static final int | EXPRESSIONWEIGHTINGS
The struct member offsets. |
| public static final int | ISACTIVE
The struct member offsets. |
| public static final int | NEXT
The struct member offsets. |
| public static final int | SAMPLETIME
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| public static final int | TYPE
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | XrFacialExpressionsHTC(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public static XrFacialExpressionsHTC | |
| public static XrFacialExpressionsHTC. | calloc(int
the buffer capacity capacity)Returns a new |
| public static XrFacialExpressionsHTC | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static XrFacialExpressionsHTC. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| protected XrFacialExpressionsHTC | create(long
the struct memory address address, ByteBuffer an optional container buffer, to be referenced strongly by the struct instance. container)Implements abstract org. the constructor, but returns the exact type of the Struct subclass.
|
| public static XrFacialExpressionsHTC | |
| public static XrFacialExpressionsHTC | |
| public static XrFacialExpressionsHTC. | create(int
the buffer capacity capacity)Returns a new |
| public static XrFacialExpressionsHTC. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static XrFacialExpressionsHTC | |
| public static XrFacialExpressionsHTC. | |
| public int | |
| public XrFacialExpressionsHTC | |
| public FloatBuffer | Returns: afloat array filled in by the runtime, specifying the weightings for each blend shape.the number of elements in the returned buffer capacity)
|
| public XrFacialExpressionsHTC | expressionWeightings(FloatBuffer value)
Sets the address of the specified |
| public boolean | |
| public XrFacialExpressionsHTC | |
| public static XrFacialExpressionsHTC | |
| public static XrFacialExpressionsHTC. | malloc(int
the buffer capacity capacity)Returns a new |
| public static XrFacialExpressionsHTC | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static XrFacialExpressionsHTC. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static int | |
| public static void | |
| public static FloatBuffer | |
| public static void | |
| public long | |
| public XrFacialExpressionsHTC | |
| public static int | |
| public static void | |
| public static long | |
| public static void | |
| public static long | |
| public static void | |
| public static int | |
| public static void | |
| public long | |
| public XrFacialExpressionsHTC | |
| public XrFacialExpressionsHTC | set(int type, long next, boolean isActive, long sampleTime, int expressionCount, FloatBuffer expressionWeightings)
Initializes this struct with the specified values. |
| public XrFacialExpressionsHTC | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int | |
| public int | |
| public XrFacialExpressionsHTC | |
| public XrFacialExpressionsHTC | |
| public static void |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| EXPRESSIONCOUNT | back to summary |
|---|---|
| public static final int EXPRESSIONCOUNT The struct member offsets. | |
| EXPRESSIONWEIGHTINGS | back to summary |
|---|---|
| public static final int EXPRESSIONWEIGHTINGS The struct member offsets. | |
| ISACTIVE | back to summary |
|---|---|
| public static final int ISACTIVE The struct member offsets. | |
| NEXT | back to summary |
|---|---|
| public static final int NEXT The struct member offsets. | |
| SAMPLETIME | back to summary |
|---|---|
| public static final int SAMPLETIME The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| TYPE | back to summary |
|---|---|
| public static final int TYPE The struct member offsets. | |
| XrFacialExpressionsHTC | back to summary |
|---|---|
| protected XrFacialExpressionsHTC(long address, ByteBuffer container) | |
| XrFacialExpressionsHTC | back to summary |
|---|---|
| public XrFacialExpressionsHTC(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| calloc | back to summary |
|---|---|
| public static XrFacialExpressionsHTC calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static XrFacialExpressionsHTC. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static XrFacialExpressionsHTC calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static XrFacialExpressionsHTC. Returns a new
| |
| create | back to summary |
|---|---|
| protected XrFacialExpressionsHTC create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static XrFacialExpressionsHTC create() Returns a new | |
| create | back to summary |
|---|---|
| public static XrFacialExpressionsHTC create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static XrFacialExpressionsHTC. Returns a new
| |
| create | back to summary |
|---|---|
| public static XrFacialExpressionsHTC. Create a
| |
| createSafe | back to summary |
|---|---|
| public static XrFacialExpressionsHTC createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static XrFacialExpressionsHTC. Like
| |
| expressionCount | back to summary |
|---|---|
| public int expressionCount() a
| |
| expressionCount | back to summary |
|---|---|
| public XrFacialExpressionsHTC expressionCount(int value) Sets the specified value to the | |
| expressionWeightings | back to summary |
|---|---|
public FloatBuffer expressionWeightings(int capacity)
| |
| expressionWeightings | back to summary |
|---|---|
| public XrFacialExpressionsHTC expressionWeightings(FloatBuffer value) Sets the address of the specified | |
| isActive | back to summary |
|---|---|
| public boolean isActive() an
| |
| isActive | back to summary |
|---|---|
| public XrFacialExpressionsHTC isActive(boolean value) Sets the specified value to the | |
| malloc | back to summary |
|---|---|
| public static XrFacialExpressionsHTC malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static XrFacialExpressionsHTC. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static XrFacialExpressionsHTC malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static XrFacialExpressionsHTC. Returns a new
| |
| nexpressionCount | back to summary |
|---|---|
| public static int nexpressionCount(long struct) Unsafe version of | |
| nexpressionCount | back to summary |
|---|---|
| public static void nexpressionCount(long struct, int value) Unsafe version of | |
| nexpressionWeightings | back to summary |
|---|---|
| public static FloatBuffer nexpressionWeightings(long struct, int capacity) Unsafe version of | |
| nexpressionWeightings | back to summary |
|---|---|
| public static void nexpressionWeightings(long struct, FloatBuffer value) Unsafe version of | |
| next | back to summary |
|---|---|
| public long next()
| |
| next | back to summary |
|---|---|
| public XrFacialExpressionsHTC next(long value) Sets the specified value to the | |
| nisActive | back to summary |
|---|---|
| public static int nisActive(long struct) Unsafe version of | |
| nisActive | back to summary |
|---|---|
| public static void nisActive(long struct, int value) Unsafe version of | |
| nnext | back to summary |
|---|---|
| public static long nnext(long struct) Unsafe version of | |
| nnext | back to summary |
|---|---|
| public static void nnext(long struct, long value) Unsafe version of | |
| nsampleTime | back to summary |
|---|---|
| public static long nsampleTime(long struct) Unsafe version of | |
| nsampleTime | back to summary |
|---|---|
| public static void nsampleTime(long struct, long value) Unsafe version of | |
| ntype | back to summary |
|---|---|
| public static int ntype(long struct) Unsafe version of | |
| ntype | back to summary |
|---|---|
| public static void ntype(long struct, int value) Unsafe version of | |
| sampleTime | back to summary |
|---|---|
| public long sampleTime() when in time the expression is expressed.
| |
| sampleTime | back to summary |
|---|---|
| public XrFacialExpressionsHTC sampleTime(long value) Sets the specified value to the | |
| set | back to summary |
|---|---|
| public XrFacialExpressionsHTC set(int type, long next, boolean isActive, long sampleTime, int expressionCount, FloatBuffer expressionWeightings) Initializes this struct with the specified values. | |
| set | back to summary |
|---|---|
| public XrFacialExpressionsHTC set(XrFacialExpressionsHTC src) Copies the specified struct data to this struct.
| |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
| type | back to summary |
|---|---|
| public int type() the
| |
| type | back to summary |
|---|---|
| public XrFacialExpressionsHTC type(int value) Sets the specified value to the | |
| type$Default | back to summary |
|---|---|
| public XrFacialExpressionsHTC type$Default() Sets the | |
| validate | back to summary |
|---|---|
| public static void validate(long struct) Validates pointer members that should not be
| |
XrFacialExpressionsHTC structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final XrFacialExpressionsHTC |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public XrFacialExpressionsHTC. | expressionCount(int value)
Sets the specified value to the |
| public FloatBuffer | Returns: aFloatBuffer view of the data pointed to by the XrFacialExpressionsHTC#expressionWeightings field.the number of elements in the returned buffer capacity)
|
| public XrFacialExpressionsHTC. | expressionWeightings(FloatBuffer value)
Sets the address of the specified |
| protected XrFacialExpressionsHTC | |
| public boolean | |
| public XrFacialExpressionsHTC. | |
| public long | |
| public XrFacialExpressionsHTC. | |
| public long | |
| public XrFacialExpressionsHTC. | |
| protected XrFacialExpressionsHTC. | |
| public int | |
| public XrFacialExpressionsHTC. | |
| public XrFacialExpressionsHTC. |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final XrFacialExpressionsHTC ELEMENT_FACTORY | |
| Buffer | back to summary |
|---|---|
| public Buffer(ByteBuffer container) Creates a new Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
by The created buffer instance holds a strong reference to the container object. | |
| Buffer | back to summary |
|---|---|
| public Buffer(long address, int cap) | |
| Buffer | back to summary |
|---|---|
| pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap) | |
| expressionCount | back to summary |
|---|---|
public int expressionCount()
| |
| expressionCount | back to summary |
|---|---|
| public XrFacialExpressionsHTC. Sets the specified value to the | |
| expressionWeightings | back to summary |
|---|---|
public FloatBuffer expressionWeightings(int capacity)
| |
| expressionWeightings | back to summary |
|---|---|
| public XrFacialExpressionsHTC. Sets the address of the specified | |
| getElementFactory | back to summary |
|---|---|
| protected XrFacialExpressionsHTC getElementFactory() Implements abstract org.
| |
| isActive | back to summary |
|---|---|
public boolean isActive()
| |
| isActive | back to summary |
|---|---|
| public XrFacialExpressionsHTC. Sets the specified value to the | |
| next | back to summary |
|---|---|
public long next()
| |
| next | back to summary |
|---|---|
| public XrFacialExpressionsHTC. Sets the specified value to the | |
| sampleTime | back to summary |
|---|---|
public long sampleTime()
| |
| sampleTime | back to summary |
|---|---|
| public XrFacialExpressionsHTC. Sets the specified value to the | |
| self | back to summary |
|---|---|
| protected XrFacialExpressionsHTC. Implements abstract org.
| |
| type | back to summary |
|---|---|
public int type()
| |
| type | back to summary |
|---|---|
| public XrFacialExpressionsHTC. Sets the specified value to the | |
| type$Default | back to summary |
|---|---|
| public XrFacialExpressionsHTC. Sets the | |