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.NativeResourceLayout
struct CameraVideoStreamFrameHeader_t { EVRTrackedCameraFrameType eFrameType; uint32_t nWidth; uint32_t nHeight; uint32_t nBytesPerPixel; uint32_t nFrameSequence;TrackedDevicePose_ttrackedDevicePose; uint64_tulFrameExposureTime(); }
-
-
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 intTRACKEDDEVICEPOSE
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 Deprecated 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 CameraVideoStreamFrameHeader.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newCameraVideoStreamFrameHeader.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CameraVideoStreamFrameHeadercalloc(org.lwjgl.system.MemoryStack stack)Returns a newCameraVideoStreamFrameHeaderinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CameraVideoStreamFrameHeadercallocStack()Deprecated.static CameraVideoStreamFrameHeader.BuffercallocStack(int capacity)Deprecated.static CameraVideoStreamFrameHeader.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static CameraVideoStreamFrameHeadercallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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()static CameraVideoStreamFrameHeadermalloc()Returns a newCameraVideoStreamFrameHeaderinstance allocated withmemAlloc.static CameraVideoStreamFrameHeader.Buffermalloc(int capacity)Returns a newCameraVideoStreamFrameHeader.Bufferinstance allocated withmemAlloc.static CameraVideoStreamFrameHeader.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newCameraVideoStreamFrameHeader.Bufferinstance allocated on the specifiedMemoryStack.static CameraVideoStreamFrameHeadermalloc(org.lwjgl.system.MemoryStack stack)Returns a newCameraVideoStreamFrameHeaderinstance allocated on the specifiedMemoryStack.static CameraVideoStreamFrameHeadermallocStack()Deprecated.static CameraVideoStreamFrameHeader.BuffermallocStack(int capacity)Deprecated.static CameraVideoStreamFrameHeader.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static CameraVideoStreamFrameHeadermallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.intnBytesPerPixel()static intneFrameType(long struct)Unsafe version ofeFrameType().intnFrameSequence()intnHeight()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 TrackedDevicePosentrackedDevicePose(long struct)Unsafe version oftrackedDevicePose().static longnulFrameExposureTime(long struct)Unsafe version ofulFrameExposureTime().intnWidth()intsizeof()TrackedDevicePosetrackedDevicePose()longulFrameExposureTime()mid-point of the exposure of the image in host system ticks
-
-
-
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 the
eFrameTypefield.
-
nWidth
public int nWidth()
- Returns:
- the value of the
nWidthfield.
-
nHeight
public int nHeight()
- Returns:
- the value of the
nHeightfield.
-
nBytesPerPixel
public int nBytesPerPixel()
- Returns:
- the value of the
nBytesPerPixelfield.
-
nFrameSequence
public int nFrameSequence()
- Returns:
- the value of the
nFrameSequencefield.
-
trackedDevicePose
public TrackedDevicePose trackedDevicePose()
- Returns:
- a
TrackedDevicePoseview of thetrackedDevicePosefield.
-
ulFrameExposureTime
public long ulFrameExposureTime()
mid-point of the exposure of the image in host system ticks
-
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
@Deprecated public static CameraVideoStreamFrameHeader mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static CameraVideoStreamFrameHeader callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static CameraVideoStreamFrameHeader mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static CameraVideoStreamFrameHeader callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static CameraVideoStreamFrameHeader.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static CameraVideoStreamFrameHeader.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static CameraVideoStreamFrameHeader.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static CameraVideoStreamFrameHeader.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static CameraVideoStreamFrameHeader malloc(org.lwjgl.system.MemoryStack stack)
Returns a newCameraVideoStreamFrameHeaderinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static CameraVideoStreamFrameHeader calloc(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
-
malloc
public static CameraVideoStreamFrameHeader.Buffer malloc(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
-
calloc
public static CameraVideoStreamFrameHeader.Buffer calloc(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().
-
ntrackedDevicePose
public static TrackedDevicePose ntrackedDevicePose(long struct)
Unsafe version oftrackedDevicePose().
-
nulFrameExposureTime
public static long nulFrameExposureTime(long struct)
Unsafe version ofulFrameExposureTime().
-
-