Class XrFaceStateANDROID

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class XrFaceStateANDROID extends Struct<XrFaceStateANDROID> implements NativeResource

 struct XrFaceStateANDROID {
     XrStructureType type;
     void * next;
     uint32_t parametersCapacityInput;
     uint32_t parametersCountOutput;
     float * parameters;
     XrFaceTrackingStateANDROID faceTrackingState;
     XrTime sampleTime;
     XrBool32 isValid;
     uint32_t regionConfidencesCapacityInput;
     uint32_t regionConfidencesCountOutput;
     float * regionConfidences;
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • TYPE

      public static final int TYPE
      The struct member offsets.
    • NEXT

      public static final int NEXT
      The struct member offsets.
    • PARAMETERSCAPACITYINPUT

      public static final int PARAMETERSCAPACITYINPUT
      The struct member offsets.
    • PARAMETERSCOUNTOUTPUT

      public static final int PARAMETERSCOUNTOUTPUT
      The struct member offsets.
    • PARAMETERS

      public static final int PARAMETERS
      The struct member offsets.
    • FACETRACKINGSTATE

      public static final int FACETRACKINGSTATE
      The struct member offsets.
    • SAMPLETIME

      public static final int SAMPLETIME
      The struct member offsets.
    • ISVALID

      public static final int ISVALID
      The struct member offsets.
    • REGIONCONFIDENCESCAPACITYINPUT

      public static final int REGIONCONFIDENCESCAPACITYINPUT
      The struct member offsets.
    • REGIONCONFIDENCESCOUNTOUTPUT

      public static final int REGIONCONFIDENCESCOUNTOUTPUT
      The struct member offsets.
    • REGIONCONFIDENCES

      public static final int REGIONCONFIDENCES
      The struct member offsets.
  • Constructor Details

    • XrFaceStateANDROID

      public XrFaceStateANDROID(ByteBuffer container)
      Creates a XrFaceStateANDROID instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

      The created instance holds a strong reference to the container object.

  • Method Details

    • sizeof

      public int sizeof()
      Description copied from class: Struct
      Returns sizeof(struct).
      Specified by:
      sizeof in class Struct<XrFaceStateANDROID>
    • type

      public int type()
      Returns:
      the value of the type field.
    • next

      public long next()
      Returns:
      the value of the next field.
    • parametersCapacityInput

      public int parametersCapacityInput()
      Returns:
      the value of the parametersCapacityInput field.
    • parametersCountOutput

      public int parametersCountOutput()
      Returns:
      the value of the parametersCountOutput field.
    • parameters

      public @Nullable FloatBuffer parameters()
      Returns:
      a FloatBuffer view of the data pointed to by the parameters field.
    • faceTrackingState

      public int faceTrackingState()
      Returns:
      the value of the faceTrackingState field.
    • sampleTime

      public long sampleTime()
      Returns:
      the value of the sampleTime field.
    • isValid

      public boolean isValid()
      Returns:
      the value of the isValid field.
    • regionConfidencesCapacityInput

      public int regionConfidencesCapacityInput()
      Returns:
      the value of the regionConfidencesCapacityInput field.
    • regionConfidencesCountOutput

      public int regionConfidencesCountOutput()
      Returns:
      the value of the regionConfidencesCountOutput field.
    • regionConfidences

      public @Nullable FloatBuffer regionConfidences()
      Returns:
      a FloatBuffer view of the data pointed to by the regionConfidences field.
    • type

      public XrFaceStateANDROID type(int value)
      Sets the specified value to the type field.
    • type$Default

      public XrFaceStateANDROID type$Default()
      Sets the TYPE_FACE_STATE_ANDROID value to the type field.
    • next

      public XrFaceStateANDROID next(long value)
      Sets the specified value to the next field.
    • parametersCapacityInput

      public XrFaceStateANDROID parametersCapacityInput(int value)
      Sets the specified value to the parametersCapacityInput field.
    • parametersCountOutput

      public XrFaceStateANDROID parametersCountOutput(int value)
      Sets the specified value to the parametersCountOutput field.
    • parameters

      public XrFaceStateANDROID parameters(@Nullable FloatBuffer value)
      Sets the address of the specified FloatBuffer to the parameters field.
    • faceTrackingState

      public XrFaceStateANDROID faceTrackingState(int value)
      Sets the specified value to the faceTrackingState field.
    • sampleTime

      public XrFaceStateANDROID sampleTime(long value)
      Sets the specified value to the sampleTime field.
    • isValid

      public XrFaceStateANDROID isValid(boolean value)
      Sets the specified value to the isValid field.
    • regionConfidencesCapacityInput

      public XrFaceStateANDROID regionConfidencesCapacityInput(int value)
      Sets the specified value to the regionConfidencesCapacityInput field.
    • regionConfidencesCountOutput

      public XrFaceStateANDROID regionConfidencesCountOutput(int value)
      Sets the specified value to the regionConfidencesCountOutput field.
    • regionConfidences

      public XrFaceStateANDROID regionConfidences(@Nullable FloatBuffer value)
      Sets the address of the specified FloatBuffer to the regionConfidences field.
    • set

      public XrFaceStateANDROID set(int type, long next, int parametersCapacityInput, int parametersCountOutput, @Nullable FloatBuffer parameters, int faceTrackingState, long sampleTime, boolean isValid, int regionConfidencesCapacityInput, int regionConfidencesCountOutput, @Nullable FloatBuffer regionConfidences)
      Initializes this struct with the specified values.
    • set

      Copies the specified struct data to this struct.
      Parameters:
      src - the source struct
      Returns:
      this struct
    • malloc

      public static XrFaceStateANDROID malloc()
      Returns a new XrFaceStateANDROID instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

      public static XrFaceStateANDROID calloc()
      Returns a new XrFaceStateANDROID instance allocated with memCalloc. The instance must be explicitly freed.
    • create

      public static XrFaceStateANDROID create()
      Returns a new XrFaceStateANDROID instance allocated with BufferUtils.
    • create

      public static XrFaceStateANDROID create(long address)
      Returns a new XrFaceStateANDROID instance for the specified memory address.
    • createSafe

      public static @Nullable XrFaceStateANDROID createSafe(long address)
      Like create, but returns null if address is NULL.
    • malloc

      public static XrFaceStateANDROID.Buffer malloc(int capacity)
      Returns a new XrFaceStateANDROID.Buffer instance allocated with memAlloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • calloc

      public static XrFaceStateANDROID.Buffer calloc(int capacity)
      Returns a new XrFaceStateANDROID.Buffer instance allocated with memCalloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • create

      public static XrFaceStateANDROID.Buffer create(int capacity)
      Returns a new XrFaceStateANDROID.Buffer instance allocated with BufferUtils.
      Parameters:
      capacity - the buffer capacity
    • create

      public static XrFaceStateANDROID.Buffer create(long address, int capacity)
      Create a XrFaceStateANDROID.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

      public static @Nullable XrFaceStateANDROID.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • malloc

      public static XrFaceStateANDROID malloc(MemoryStack stack)
      Returns a new XrFaceStateANDROID instance allocated on the specified MemoryStack.
      Parameters:
      stack - the stack from which to allocate
    • calloc

      public static XrFaceStateANDROID calloc(MemoryStack stack)
      Returns a new XrFaceStateANDROID instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      stack - the stack from which to allocate
    • malloc

      public static XrFaceStateANDROID.Buffer malloc(int capacity, MemoryStack stack)
      Returns a new XrFaceStateANDROID.Buffer instance allocated on the specified MemoryStack.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • calloc

      public static XrFaceStateANDROID.Buffer calloc(int capacity, MemoryStack stack)
      Returns a new XrFaceStateANDROID.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • ntype

      public static int ntype(long struct)
      Unsafe version of type().
    • nnext

      public static long nnext(long struct)
      Unsafe version of next().
    • nparametersCapacityInput

      public static int nparametersCapacityInput(long struct)
      Unsafe version of parametersCapacityInput().
    • nparametersCountOutput

      public static int nparametersCountOutput(long struct)
      Unsafe version of parametersCountOutput().
    • nparameters

      public static @Nullable FloatBuffer nparameters(long struct)
      Unsafe version of parameters.
    • nfaceTrackingState

      public static int nfaceTrackingState(long struct)
      Unsafe version of faceTrackingState().
    • nsampleTime

      public static long nsampleTime(long struct)
      Unsafe version of sampleTime().
    • nisValid

      public static int nisValid(long struct)
      Unsafe version of isValid().
    • nregionConfidencesCapacityInput

      public static int nregionConfidencesCapacityInput(long struct)
    • nregionConfidencesCountOutput

      public static int nregionConfidencesCountOutput(long struct)
    • nregionConfidences

      public static @Nullable FloatBuffer nregionConfidences(long struct)
      Unsafe version of regionConfidences.
    • ntype

      public static void ntype(long struct, int value)
      Unsafe version of type.
    • nnext

      public static void nnext(long struct, long value)
      Unsafe version of next.
    • nparametersCapacityInput

      public static void nparametersCapacityInput(long struct, int value)
      Sets the specified value to the parametersCapacityInput field of the specified struct.
    • nparametersCountOutput

      public static void nparametersCountOutput(long struct, int value)
      Unsafe version of parametersCountOutput.
    • nparameters

      public static void nparameters(long struct, @Nullable FloatBuffer value)
      Unsafe version of parameters.
    • nfaceTrackingState

      public static void nfaceTrackingState(long struct, int value)
      Unsafe version of faceTrackingState.
    • nsampleTime

      public static void nsampleTime(long struct, long value)
      Unsafe version of sampleTime.
    • nisValid

      public static void nisValid(long struct, int value)
      Unsafe version of isValid.
    • nregionConfidencesCapacityInput

      public static void nregionConfidencesCapacityInput(long struct, int value)
      Sets the specified value to the regionConfidencesCapacityInput field of the specified struct.
    • nregionConfidencesCountOutput

      public static void nregionConfidencesCountOutput(long struct, int value)
      Unsafe version of regionConfidencesCountOutput.
    • nregionConfidences

      public static void nregionConfidences(long struct, @Nullable FloatBuffer value)
      Unsafe version of regionConfidences.