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.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; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CameraVideoStreamFrameHeader.Buffer
An array ofCameraVideoStreamFrameHeader
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
EFRAMETYPE
NBYTESPERPIXEL
NFRAMESEQUENCE
NHEIGHT
NWIDTHThe struct member offsets.static int
SIZEOF
The struct size in bytes.static int
TRACKEDDEVICEPOSE
ULFRAMEEXPOSURETIMEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description CameraVideoStreamFrameHeader(java.nio.ByteBuffer container)
Creates aCameraVideoStreamFrameHeader
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CameraVideoStreamFrameHeader
calloc()
Returns a newCameraVideoStreamFrameHeader
instance allocated withmemCalloc
.static CameraVideoStreamFrameHeader.Buffer
calloc(int capacity)
Returns a newCameraVideoStreamFrameHeader.Buffer
instance allocated withmemCalloc
.static CameraVideoStreamFrameHeader
callocStack()
Returns a newCameraVideoStreamFrameHeader
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static CameraVideoStreamFrameHeader.Buffer
callocStack(int capacity)
Returns a newCameraVideoStreamFrameHeader.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static CameraVideoStreamFrameHeader.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCameraVideoStreamFrameHeader.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static CameraVideoStreamFrameHeader
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newCameraVideoStreamFrameHeader
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static CameraVideoStreamFrameHeader
create()
Returns a newCameraVideoStreamFrameHeader
instance allocated withBufferUtils
.static CameraVideoStreamFrameHeader.Buffer
create(int capacity)
Returns a newCameraVideoStreamFrameHeader.Buffer
instance allocated withBufferUtils
.static CameraVideoStreamFrameHeader
create(long address)
Returns a newCameraVideoStreamFrameHeader
instance for the specified memory address.static CameraVideoStreamFrameHeader.Buffer
create(long address, int capacity)
Create aCameraVideoStreamFrameHeader.Buffer
instance at the specified memory.static CameraVideoStreamFrameHeader
createSafe(long address)
static CameraVideoStreamFrameHeader.Buffer
createSafe(long address, int capacity)
int
eFrameType()
Returns the value of theeFrameType
field.static CameraVideoStreamFrameHeader
malloc()
Returns a newCameraVideoStreamFrameHeader
instance allocated withmemAlloc
.static CameraVideoStreamFrameHeader.Buffer
malloc(int capacity)
Returns a newCameraVideoStreamFrameHeader.Buffer
instance allocated withmemAlloc
.static CameraVideoStreamFrameHeader
mallocStack()
Returns a newCameraVideoStreamFrameHeader
instance allocated on the thread-localMemoryStack
.static CameraVideoStreamFrameHeader.Buffer
mallocStack(int capacity)
Returns a newCameraVideoStreamFrameHeader.Buffer
instance allocated on the thread-localMemoryStack
.static CameraVideoStreamFrameHeader.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCameraVideoStreamFrameHeader.Buffer
instance allocated on the specifiedMemoryStack
.static CameraVideoStreamFrameHeader
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newCameraVideoStreamFrameHeader
instance allocated on the specifiedMemoryStack
.int
nBytesPerPixel()
Returns the value of thenBytesPerPixel
field.static int
neFrameType(long struct)
Unsafe version ofeFrameType()
.int
nFrameSequence()
Returns the value of thenFrameSequence
field.int
nHeight()
Returns the value of thenHeight
field.static int
nnBytesPerPixel(long struct)
Unsafe version ofnBytesPerPixel()
.static int
nnFrameSequence(long struct)
Unsafe version ofnFrameSequence()
.static int
nnHeight(long struct)
Unsafe version ofnHeight()
.static int
nnWidth(long struct)
Unsafe version ofnWidth()
.static TrackedDevicePose
ntrackedDevicePose(long struct)
Unsafe version oftrackedDevicePose()
.static long
nulFrameExposureTime(long struct)
Unsafe version ofulFrameExposureTime()
.int
nWidth()
Returns the value of thenWidth
field.int
sizeof()
TrackedDevicePose
trackedDevicePose()
Returns aTrackedDevicePose
view of thetrackedDevicePose
field.long
ulFrameExposureTime()
Returns the value of theulFrameExposureTime
field.
-
-
-
Constructor Detail
-
CameraVideoStreamFrameHeader
public CameraVideoStreamFrameHeader(java.nio.ByteBuffer container)
Creates aCameraVideoStreamFrameHeader
instance at the current position of the specifiedByteBuffer
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 classorg.lwjgl.system.Struct
-
eFrameType
public int eFrameType()
Returns the value of theeFrameType
field.
-
nWidth
public int nWidth()
Returns the value of thenWidth
field.
-
nHeight
public int nHeight()
Returns the value of thenHeight
field.
-
nBytesPerPixel
public int nBytesPerPixel()
Returns the value of thenBytesPerPixel
field.
-
nFrameSequence
public int nFrameSequence()
Returns the value of thenFrameSequence
field.
-
trackedDevicePose
public TrackedDevicePose trackedDevicePose()
Returns aTrackedDevicePose
view of thetrackedDevicePose
field.
-
ulFrameExposureTime
public long ulFrameExposureTime()
Returns the value of theulFrameExposureTime
field.
-
malloc
public static CameraVideoStreamFrameHeader malloc()
Returns a newCameraVideoStreamFrameHeader
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static CameraVideoStreamFrameHeader calloc()
Returns a newCameraVideoStreamFrameHeader
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static CameraVideoStreamFrameHeader create()
Returns a newCameraVideoStreamFrameHeader
instance allocated withBufferUtils
.
-
create
public static CameraVideoStreamFrameHeader create(long address)
Returns a newCameraVideoStreamFrameHeader
instance for the specified memory address.
-
createSafe
@Nullable public static CameraVideoStreamFrameHeader createSafe(long address)
-
malloc
public static CameraVideoStreamFrameHeader.Buffer malloc(int capacity)
Returns a newCameraVideoStreamFrameHeader.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static CameraVideoStreamFrameHeader.Buffer calloc(int capacity)
Returns a newCameraVideoStreamFrameHeader.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static CameraVideoStreamFrameHeader.Buffer create(int capacity)
Returns a newCameraVideoStreamFrameHeader.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static CameraVideoStreamFrameHeader.Buffer create(long address, int capacity)
Create aCameraVideoStreamFrameHeader.Buffer
instance 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 newCameraVideoStreamFrameHeader
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static CameraVideoStreamFrameHeader callocStack()
Returns a newCameraVideoStreamFrameHeader
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static CameraVideoStreamFrameHeader mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newCameraVideoStreamFrameHeader
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static CameraVideoStreamFrameHeader callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newCameraVideoStreamFrameHeader
instance allocated on the specifiedMemoryStack
and 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.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static CameraVideoStreamFrameHeader.Buffer callocStack(int capacity)
Returns a newCameraVideoStreamFrameHeader.Buffer
instance allocated on the thread-localMemoryStack
and 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.Buffer
instance 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.Buffer
instance allocated on the specifiedMemoryStack
and 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()
.
-
ntrackedDevicePose
public static TrackedDevicePose ntrackedDevicePose(long struct)
Unsafe version oftrackedDevicePose()
.
-
nulFrameExposureTime
public static long nulFrameExposureTime(long struct)
Unsafe version ofulFrameExposureTime()
.
-
-