Package org.lwjgl.openvr
Class CameraVideoStreamFrameHeader
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openvr.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.NativeResourceMember 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_tstandingTrackedDevicePose; uint64_t ulFrameExposureTime; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCameraVideoStreamFrameHeader.BufferAn array ofCameraVideoStreamFrameHeaderstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intEFRAMETYPE
NBYTESPERPIXEL
NFRAMESEQUENCE
NHEIGHT
NWIDTHThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTANDINGTRACKEDDEVICEPOSE
ULFRAMEEXPOSURETIMEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description CameraVideoStreamFrameHeader(java.nio.ByteBuffer container)Creates aCameraVideoStreamFrameHeaderinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CameraVideoStreamFrameHeadercalloc()Returns a newCameraVideoStreamFrameHeaderinstance allocated withmemCalloc.static CameraVideoStreamFrameHeader.Buffercalloc(int capacity)Returns a newCameraVideoStreamFrameHeader.Bufferinstance allocated withmemCalloc.static CameraVideoStreamFrameHeadercallocStack()Returns a newCameraVideoStreamFrameHeaderinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static CameraVideoStreamFrameHeader.BuffercallocStack(int capacity)Returns a newCameraVideoStreamFrameHeader.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static CameraVideoStreamFrameHeader.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newCameraVideoStreamFrameHeader.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CameraVideoStreamFrameHeadercallocStack(org.lwjgl.system.MemoryStack stack)Returns a newCameraVideoStreamFrameHeaderinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CameraVideoStreamFrameHeadercreate()Returns a newCameraVideoStreamFrameHeaderinstance allocated withBufferUtils.static CameraVideoStreamFrameHeader.Buffercreate(int capacity)Returns a newCameraVideoStreamFrameHeader.Bufferinstance allocated withBufferUtils.static CameraVideoStreamFrameHeadercreate(long address)Returns a newCameraVideoStreamFrameHeaderinstance for the specified memory address.static CameraVideoStreamFrameHeader.Buffercreate(long address, int capacity)Create aCameraVideoStreamFrameHeader.Bufferinstance at the specified memory.static CameraVideoStreamFrameHeadercreateSafe(long address)static CameraVideoStreamFrameHeader.BuffercreateSafe(long address, int capacity)inteFrameType()Returns the value of theeFrameTypefield.static CameraVideoStreamFrameHeadermalloc()Returns a newCameraVideoStreamFrameHeaderinstance allocated withmemAlloc.static CameraVideoStreamFrameHeader.Buffermalloc(int capacity)Returns a newCameraVideoStreamFrameHeader.Bufferinstance allocated withmemAlloc.static CameraVideoStreamFrameHeadermallocStack()Returns a newCameraVideoStreamFrameHeaderinstance allocated on the thread-localMemoryStack.static CameraVideoStreamFrameHeader.BuffermallocStack(int capacity)Returns a newCameraVideoStreamFrameHeader.Bufferinstance allocated on the thread-localMemoryStack.static CameraVideoStreamFrameHeader.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newCameraVideoStreamFrameHeader.Bufferinstance allocated on the specifiedMemoryStack.static CameraVideoStreamFrameHeadermallocStack(org.lwjgl.system.MemoryStack stack)Returns a newCameraVideoStreamFrameHeaderinstance allocated on the specifiedMemoryStack.intnBytesPerPixel()Returns the value of thenBytesPerPixelfield.static intneFrameType(long struct)Unsafe version ofeFrameType().intnFrameSequence()Returns the value of thenFrameSequencefield.intnHeight()Returns the value of thenHeightfield.static intnnBytesPerPixel(long struct)Unsafe version ofnBytesPerPixel().static intnnFrameSequence(long struct)Unsafe version ofnFrameSequence().static intnnHeight(long struct)Unsafe version ofnHeight().static intnnWidth(long struct)Unsafe version ofnWidth().static TrackedDevicePosenstandingTrackedDevicePose(long struct)Unsafe version ofstandingTrackedDevicePose().static longnulFrameExposureTime(long struct)Unsafe version ofulFrameExposureTime().intnWidth()Returns the value of thenWidthfield.intsizeof()TrackedDevicePosestandingTrackedDevicePose()Returns aTrackedDevicePoseview of thestandingTrackedDevicePosefield.longulFrameExposureTime()Returns the value of theulFrameExposureTimefield.
-
-
-
Constructor Detail
-
CameraVideoStreamFrameHeader
public CameraVideoStreamFrameHeader(java.nio.ByteBuffer container)
Creates aCameraVideoStreamFrameHeaderinstance at the current position of the specifiedByteBuffercontainer. 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:
sizeofin classorg.lwjgl.system.Struct
-
eFrameType
public int eFrameType()
Returns the value of theeFrameTypefield.
-
nWidth
public int nWidth()
Returns the value of thenWidthfield.
-
nHeight
public int nHeight()
Returns the value of thenHeightfield.
-
nBytesPerPixel
public int nBytesPerPixel()
Returns the value of thenBytesPerPixelfield.
-
nFrameSequence
public int nFrameSequence()
Returns the value of thenFrameSequencefield.
-
standingTrackedDevicePose
public TrackedDevicePose standingTrackedDevicePose()
Returns aTrackedDevicePoseview of thestandingTrackedDevicePosefield.
-
ulFrameExposureTime
public long ulFrameExposureTime()
Returns the value of theulFrameExposureTimefield.
-
malloc
public static CameraVideoStreamFrameHeader malloc()
Returns a newCameraVideoStreamFrameHeaderinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static CameraVideoStreamFrameHeader calloc()
Returns a newCameraVideoStreamFrameHeaderinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static CameraVideoStreamFrameHeader create()
Returns a newCameraVideoStreamFrameHeaderinstance allocated withBufferUtils.
-
create
public static CameraVideoStreamFrameHeader create(long address)
Returns a newCameraVideoStreamFrameHeaderinstance for the specified memory address.
-
createSafe
@Nullable public static CameraVideoStreamFrameHeader createSafe(long address)
-
malloc
public static CameraVideoStreamFrameHeader.Buffer malloc(int capacity)
Returns a newCameraVideoStreamFrameHeader.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static CameraVideoStreamFrameHeader.Buffer calloc(int capacity)
Returns a newCameraVideoStreamFrameHeader.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static CameraVideoStreamFrameHeader.Buffer create(int capacity)
Returns a newCameraVideoStreamFrameHeader.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static CameraVideoStreamFrameHeader.Buffer create(long address, int capacity)
Create aCameraVideoStreamFrameHeader.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static CameraVideoStreamFrameHeader.Buffer createSafe(long address, int capacity)
-
mallocStack
public static CameraVideoStreamFrameHeader mallocStack()
Returns a newCameraVideoStreamFrameHeaderinstance allocated on the thread-localMemoryStack.
-
callocStack
public static CameraVideoStreamFrameHeader callocStack()
Returns a newCameraVideoStreamFrameHeaderinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static CameraVideoStreamFrameHeader mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newCameraVideoStreamFrameHeaderinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static CameraVideoStreamFrameHeader callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newCameraVideoStreamFrameHeaderinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static CameraVideoStreamFrameHeader.Buffer mallocStack(int capacity)
Returns a newCameraVideoStreamFrameHeader.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static CameraVideoStreamFrameHeader.Buffer callocStack(int capacity)
Returns a newCameraVideoStreamFrameHeader.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static CameraVideoStreamFrameHeader.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCameraVideoStreamFrameHeader.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static CameraVideoStreamFrameHeader.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCameraVideoStreamFrameHeader.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
neFrameType
public static int neFrameType(long struct)
Unsafe version ofeFrameType().
-
nnWidth
public static int nnWidth(long struct)
Unsafe version ofnWidth().
-
nnHeight
public static int nnHeight(long struct)
Unsafe version ofnHeight().
-
nnBytesPerPixel
public static int nnBytesPerPixel(long struct)
Unsafe version ofnBytesPerPixel().
-
nnFrameSequence
public static int nnFrameSequence(long struct)
Unsafe version ofnFrameSequence().
-
nstandingTrackedDevicePose
public static TrackedDevicePose nstandingTrackedDevicePose(long struct)
Unsafe version ofstandingTrackedDevicePose().
-
nulFrameExposureTime
public static long nulFrameExposureTime(long struct)
Unsafe version ofulFrameExposureTime().
-
-