Class CameraVideoStreamFrameHeader

  • All Implemented Interfaces:
    java.lang.AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

    public class CameraVideoStreamFrameHeader
    extends org.lwjgl.system.Struct
    implements org.lwjgl.system.NativeResource

    Member documentation

    • ulFrameExposureTime – mid-point of the exposure of the image in host system ticks

    Layout

    
     struct CameraVideoStreamFrameHeader_t {
         EVRTrackedCameraFrameType eFrameType;
         uint32_t nWidth;
         uint32_t nHeight;
         uint32_t nBytesPerPixel;
         uint32_t nFrameSequence;
         TrackedDevicePose_t trackedDevicePose;
         uint64_t ulFrameExposureTime;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • EFRAMETYPE, NWIDTH, NHEIGHT, NBYTESPERPIXEL, NFRAMESEQUENCE, TRACKEDDEVICEPOSE, ULFRAMEEXPOSURETIME

        The struct member offsets.
    • Constructor Detail

      • CameraVideoStreamFrameHeader

        public CameraVideoStreamFrameHeader​(java.nio.ByteBuffer container)
        Creates a CameraVideoStreamFrameHeader 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 Detail

      • sizeof

        public int sizeof()
        Specified by:
        sizeof in class org.lwjgl.system.Struct
      • eFrameType

        public int eFrameType()
        Returns the value of the eFrameType field.
      • nWidth

        public int nWidth()
        Returns the value of the nWidth field.
      • nHeight

        public int nHeight()
        Returns the value of the nHeight field.
      • nBytesPerPixel

        public int nBytesPerPixel()
        Returns the value of the nBytesPerPixel field.
      • nFrameSequence

        public int nFrameSequence()
        Returns the value of the nFrameSequence field.
      • ulFrameExposureTime

        public long ulFrameExposureTime()
        Returns the value of the ulFrameExposureTime field.
      • malloc

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

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

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

        public static CameraVideoStreamFrameHeader create​(long address)
        Returns a new CameraVideoStreamFrameHeader instance for the specified memory address.
      • mallocStack

        public static CameraVideoStreamFrameHeader mallocStack()
        Returns a new CameraVideoStreamFrameHeader instance allocated on the thread-local MemoryStack.
      • callocStack

        public static CameraVideoStreamFrameHeader callocStack()
        Returns a new CameraVideoStreamFrameHeader instance allocated on the thread-local MemoryStack and initializes all its bits to zero.
      • mallocStack

        public static CameraVideoStreamFrameHeader mallocStack​(org.lwjgl.system.MemoryStack stack)
        Returns a new CameraVideoStreamFrameHeader instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
      • callocStack

        public static CameraVideoStreamFrameHeader callocStack​(org.lwjgl.system.MemoryStack stack)
        Returns a new CameraVideoStreamFrameHeader instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
      • callocStack

        public static CameraVideoStreamFrameHeader.Buffer callocStack​(int capacity,
                                                                      org.lwjgl.system.MemoryStack stack)
        Returns a new CameraVideoStreamFrameHeader.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • neFrameType

        public static int neFrameType​(long struct)
        Unsafe version of eFrameType().
      • nnWidth

        public static int nnWidth​(long struct)
        Unsafe version of nWidth().
      • nnHeight

        public static int nnHeight​(long struct)
        Unsafe version of nHeight().
      • nnBytesPerPixel

        public static int nnBytesPerPixel​(long struct)
        Unsafe version of nBytesPerPixel().
      • nnFrameSequence

        public static int nnFrameSequence​(long struct)
        Unsafe version of nFrameSequence().
      • nulFrameExposureTime

        public static long nulFrameExposureTime​(long struct)
        Unsafe version of ulFrameExposureTime().