The runtime must return ERROR_VALIDATION_FAILURE if weightCount is not equal to the number of blend shapes defined by the XrFaceExpressionSetFB used to create the XrFaceTrackerFB.
The runtime must return ERROR_VALIDATION_FAILURE if confidenceCount is not equal to the number of confidence areas defined by the XrFaceExpressionSetFB used to create the XrFaceTrackerFB.
The runtime must return weights representing the weights of blend shapes of current facial expression.
The runtime must update the weights array ordered so that the application can index elements using the corresponding facial expression enum (e.g. XrFaceExpressionFB) as described by XrFaceExpressionSetFB when creating the XrFaceTrackerFB. For example, when the XrFaceTrackerFB is created with FACE_EXPRESSION_SET_DEFAULT_FB, the application sets the weightCount to FACE_EXPRESSION_COUNT_FB, and the runtime must fill the weights array ordered so that it can be indexed by the XrFaceExpressionFB enum.
The runtime must update the confidences array ordered so that the application can index elements using the corresponding confidence area enum (e.g. XrFaceConfidenceFB) as described by XrFaceExpressionSetFB when creating the XrFaceTrackerFB. For example, when the XrFaceTrackerFB is created with FACE_EXPRESSION_SET_DEFAULT_FB, the application sets the confidenceCount to FACE_CONFIDENCE_COUNT_FB, and the runtime must fill the confidences array ordered so that it can be indexed by the XrFaceConfidenceFB enum.
XR_FB_face_tracking extension must be enabled prior to using XrFaceExpressionWeightsFBtype must be TYPE_FACE_EXPRESSION_WEIGHTS_FBnext must be NULL or a valid pointer to the next structure in a structure chainweights must be a pointer to an array of weightCount float valuesconfidences must be a pointer to an array of confidenceCount float valuesstatus must be a valid XrFaceExpressionStatusFB structureweightCount parameter must be greater than 0confidenceCount parameter must be greater than 0XrFaceExpressionStatusFB, GetFaceExpressionWeightsFB
struct XrFaceExpressionWeightsFB {
XrStructureType type;
void * next;
uint32_t weightCount;
float * weights;
uint32_t confidenceCount;
float * confidences;
XrFaceExpressionStatusFB status;
XrTime time;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | XrFaceExpressionWeightsFB.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | CONFIDENCECOUNT
The struct member offsets. |
| public static final int | CONFIDENCES
The struct member offsets. |
| public static final int | NEXT
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| public static final int | STATUS
The struct member offsets. |
| public static final int | TIME
The struct member offsets. |
| public static final int | TYPE
The struct member offsets. |
| public static final int | WEIGHTCOUNT
The struct member offsets. |
| public static final int | WEIGHTS
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | XrFaceExpressionWeightsFB(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public static XrFaceExpressionWeightsFB | |
| public static XrFaceExpressionWeightsFB. | calloc(int
the buffer capacity capacity)Returns a new |
| public static XrFaceExpressionWeightsFB | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static XrFaceExpressionWeightsFB. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public int | |
| public FloatBuffer | confidences()
a pointer to an application-allocated array of |
| public XrFaceExpressionWeightsFB | confidences(FloatBuffer value)
Sets the address of the specified |
| protected XrFaceExpressionWeightsFB | 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 XrFaceExpressionWeightsFB | |
| public static XrFaceExpressionWeightsFB | create(long address)
Returns a new |
| public static XrFaceExpressionWeightsFB. | create(int
the buffer capacity capacity)Returns a new |
| public static XrFaceExpressionWeightsFB. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static XrFaceExpressionWeightsFB | |
| public static XrFaceExpressionWeightsFB. | |
| public static XrFaceExpressionWeightsFB | |
| public static XrFaceExpressionWeightsFB. | malloc(int
the buffer capacity capacity)Returns a new |
| public static XrFaceExpressionWeightsFB | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static XrFaceExpressionWeightsFB. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static int | |
| public static void | nconfidenceCount(long struct, int value)
Sets the specified value to the |
| public static FloatBuffer | |
| public static void | |
| public long | |
| public XrFaceExpressionWeightsFB | |
| public static long | |
| public static void | |
| public static XrFaceExpressionStatusFB | |
| public static void | |
| public static long | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | nweightCount(long struct, int value)
Sets the specified value to the |
| public static FloatBuffer | |
| public static void | |
| public XrFaceExpressionWeightsFB | set(int type, long next, FloatBuffer weights, FloatBuffer confidences, XrFaceExpressionStatusFB status, long time)
Initializes this struct with the specified values. |
| public XrFaceExpressionWeightsFB | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int | |
| public XrFaceExpressionStatusFB | |
| public XrFaceExpressionWeightsFB | status(XrFaceExpressionStatusFB value)
Copies the specified |
| public XrFaceExpressionWeightsFB | status(Consumer<XrFaceExpressionStatusFB> consumer)
|
| public long | |
| public XrFaceExpressionWeightsFB | |
| public int | |
| public XrFaceExpressionWeightsFB | |
| public XrFaceExpressionWeightsFB | |
| public static void | |
| public int | |
| public FloatBuffer | weights()
a pointer to an application-allocated array of |
| public XrFaceExpressionWeightsFB |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| CONFIDENCECOUNT | back to summary |
|---|---|
| public static final int CONFIDENCECOUNT The struct member offsets. | |
| CONFIDENCES | back to summary |
|---|---|
| public static final int CONFIDENCES The struct member offsets. | |
| NEXT | back to summary |
|---|---|
| public static final int NEXT The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| STATUS | back to summary |
|---|---|
| public static final int STATUS The struct member offsets. | |
| TIME | back to summary |
|---|---|
| public static final int TIME The struct member offsets. | |
| TYPE | back to summary |
|---|---|
| public static final int TYPE The struct member offsets. | |
| WEIGHTCOUNT | back to summary |
|---|---|
| public static final int WEIGHTCOUNT The struct member offsets. | |
| WEIGHTS | back to summary |
|---|---|
| public static final int WEIGHTS The struct member offsets. | |
| XrFaceExpressionWeightsFB | back to summary |
|---|---|
| protected XrFaceExpressionWeightsFB(long address, ByteBuffer container) | |
| XrFaceExpressionWeightsFB | back to summary |
|---|---|
| public XrFaceExpressionWeightsFB(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| calloc | back to summary |
|---|---|
| public static XrFaceExpressionWeightsFB calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static XrFaceExpressionWeightsFB. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static XrFaceExpressionWeightsFB calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static XrFaceExpressionWeightsFB. Returns a new
| |
| confidenceCount | back to summary |
|---|---|
| public int confidenceCount() a
| |
| confidences | back to summary |
|---|---|
| public FloatBuffer confidences() a pointer to an application-allocated array of
| |
| confidences | back to summary |
|---|---|
| public XrFaceExpressionWeightsFB confidences(FloatBuffer value) Sets the address of the specified | |
| create | back to summary |
|---|---|
| protected XrFaceExpressionWeightsFB create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static XrFaceExpressionWeightsFB create() Returns a new | |
| create | back to summary |
|---|---|
| public static XrFaceExpressionWeightsFB create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static XrFaceExpressionWeightsFB. Returns a new
| |
| create | back to summary |
|---|---|
| public static XrFaceExpressionWeightsFB. Create a
| |
| createSafe | back to summary |
|---|---|
| public static XrFaceExpressionWeightsFB createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static XrFaceExpressionWeightsFB. Like
| |
| malloc | back to summary |
|---|---|
| public static XrFaceExpressionWeightsFB malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static XrFaceExpressionWeightsFB. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static XrFaceExpressionWeightsFB malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static XrFaceExpressionWeightsFB. Returns a new
| |
| nconfidenceCount | back to summary |
|---|---|
| public static int nconfidenceCount(long struct) Unsafe version of | |
| nconfidenceCount | back to summary |
|---|---|
| public static void nconfidenceCount(long struct, int value) Sets the specified value to the | |
| nconfidences | back to summary |
|---|---|
| public static FloatBuffer nconfidences(long struct) Unsafe version of | |
| nconfidences | back to summary |
|---|---|
| public static void nconfidences(long struct, FloatBuffer value) Unsafe version of | |
| next | back to summary |
|---|---|
| public long next()
| |
| next | back to summary |
|---|---|
| public XrFaceExpressionWeightsFB next(long value) Sets the specified value to the | |
| 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 | |
| nstatus | back to summary |
|---|---|
| public static XrFaceExpressionStatusFB nstatus(long struct) Unsafe version of | |
| nstatus | back to summary |
|---|---|
| public static void nstatus(long struct, XrFaceExpressionStatusFB value) Unsafe version of | |
| ntime | back to summary |
|---|---|
| public static long ntime(long struct) Unsafe version of | |
| ntime | back to summary |
|---|---|
| public static void ntime(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 | |
| nweightCount | back to summary |
|---|---|
| public static int nweightCount(long struct) Unsafe version of | |
| nweightCount | back to summary |
|---|---|
| public static void nweightCount(long struct, int value) Sets the specified value to the | |
| nweights | back to summary |
|---|---|
| public static FloatBuffer nweights(long struct) Unsafe version of | |
| nweights | back to summary |
|---|---|
| public static void nweights(long struct, FloatBuffer value) Unsafe version of | |
| set | back to summary |
|---|---|
| public XrFaceExpressionWeightsFB set(int type, long next, FloatBuffer weights, FloatBuffer confidences, XrFaceExpressionStatusFB status, long time) Initializes this struct with the specified values. | |
| set | back to summary |
|---|---|
| public XrFaceExpressionWeightsFB set(XrFaceExpressionWeightsFB src) Copies the specified struct data to this struct.
| |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
| status | back to summary |
|---|---|
| public XrFaceExpressionStatusFB status() the | |
| status | back to summary |
|---|---|
| public XrFaceExpressionWeightsFB status(XrFaceExpressionStatusFB value) Copies the specified | |
| status | back to summary |
|---|---|
| public XrFaceExpressionWeightsFB status(Consumer<XrFaceExpressionStatusFB> consumer) | |
| time | back to summary |
|---|---|
| public long time() an
| |
| time | back to summary |
|---|---|
| public XrFaceExpressionWeightsFB time(long value) Sets the specified value to the | |
| type | back to summary |
|---|---|
| public int type() the
| |
| type | back to summary |
|---|---|
| public XrFaceExpressionWeightsFB type(int value) Sets the specified value to the | |
| type$Default | back to summary |
|---|---|
| public XrFaceExpressionWeightsFB type$Default() Sets the | |
| validate | back to summary |
|---|---|
| public static void validate(long struct) Validates pointer members that should not be
| |
| weightCount | back to summary |
|---|---|
| public int weightCount() a
| |
| weights | back to summary |
|---|---|
| public FloatBuffer weights() a pointer to an application-allocated array of
| |
| weights | back to summary |
|---|---|
| public XrFaceExpressionWeightsFB weights(FloatBuffer value) Sets the address of the specified | |
XrFaceExpressionWeightsFB structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final XrFaceExpressionWeightsFB |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final XrFaceExpressionWeightsFB 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) | |
| confidenceCount | back to summary |
|---|---|
public int confidenceCount()
| |
| confidences | back to summary |
|---|---|
public FloatBuffer confidences()
| |
| confidences | back to summary |
|---|---|
| public XrFaceExpressionWeightsFB. Sets the address of the specified | |
| getElementFactory | back to summary |
|---|---|
| protected XrFaceExpressionWeightsFB getElementFactory() Implements abstract org.
| |
| next | back to summary |
|---|---|
public long next()
| |
| next | back to summary |
|---|---|
| public XrFaceExpressionWeightsFB. Sets the specified value to the | |
| self | back to summary |
|---|---|
| protected XrFaceExpressionWeightsFB. Implements abstract org.
| |
| status | back to summary |
|---|---|
public XrFaceExpressionStatusFB status()
| |
| status | back to summary |
|---|---|
| public XrFaceExpressionWeightsFB. Copies the specified | |
| status | back to summary |
|---|---|
| public XrFaceExpressionWeightsFB. Passes the | |
| time | back to summary |
|---|---|
public long time()
| |
| time | back to summary |
|---|---|
| public XrFaceExpressionWeightsFB. Sets the specified value to the | |
| type | back to summary |
|---|---|
public int type()
| |
| type | back to summary |
|---|---|
| public XrFaceExpressionWeightsFB. Sets the specified value to the | |
| type$Default | back to summary |
|---|---|
| public XrFaceExpressionWeightsFB. Sets the | |
| weightCount | back to summary |
|---|---|
public int weightCount()
| |
| weights | back to summary |
|---|---|
public FloatBuffer weights()
| |
| weights | back to summary |
|---|---|
| public XrFaceExpressionWeightsFB. Sets the address of the specified | |