Package org.lwjgl.openvr
Class CameraVideoStreamFrameHeader
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<CameraVideoStreamFrameHeader>
org.lwjgl.openvr.CameraVideoStreamFrameHeader
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class CameraVideoStreamFrameHeader
extends org.lwjgl.system.Struct<CameraVideoStreamFrameHeader>
implements org.lwjgl.system.NativeResource
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 ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionCameraVideoStreamFrameHeader(ByteBuffer container) Creates aCameraVideoStreamFrameHeaderinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic CameraVideoStreamFrameHeadercalloc()Returns a newCameraVideoStreamFrameHeaderinstance allocated withmemCalloc.calloc(int capacity) Returns a newCameraVideoStreamFrameHeader.Bufferinstance allocated withmemCalloc.calloc(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 CameraVideoStreamFrameHeaderDeprecated.callocStack(int capacity) Deprecated.callocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static CameraVideoStreamFrameHeadercallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.static CameraVideoStreamFrameHeadercreate()Returns a newCameraVideoStreamFrameHeaderinstance allocated withBufferUtils.create(int capacity) Returns a newCameraVideoStreamFrameHeader.Bufferinstance allocated withBufferUtils.static CameraVideoStreamFrameHeadercreate(long address) Returns a newCameraVideoStreamFrameHeaderinstance for the specified memory address.create(long address, int capacity) Create aCameraVideoStreamFrameHeader.Bufferinstance at the specified memory.static @Nullable CameraVideoStreamFrameHeadercreateSafe(long address) static @Nullable CameraVideoStreamFrameHeader.BuffercreateSafe(long address, int capacity) intstatic CameraVideoStreamFrameHeadermalloc()Returns a newCameraVideoStreamFrameHeaderinstance allocated withmemAlloc.malloc(int capacity) Returns a newCameraVideoStreamFrameHeader.Bufferinstance allocated withmemAlloc.malloc(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 CameraVideoStreamFrameHeaderDeprecated.mallocStack(int capacity) Deprecated.mallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static CameraVideoStreamFrameHeadermallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.intstatic intneFrameType(long struct) Unsafe version ofeFrameType().intintnHeight()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()longmid-point of the exposure of the image in host system ticksMethods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate, validateMethods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
EFRAMETYPE
public static final int EFRAMETYPEThe struct member offsets. -
NWIDTH
public static final int NWIDTHThe struct member offsets. -
NHEIGHT
public static final int NHEIGHTThe struct member offsets. -
NBYTESPERPIXEL
public static final int NBYTESPERPIXELThe struct member offsets. -
NFRAMESEQUENCE
public static final int NFRAMESEQUENCEThe struct member offsets. -
TRACKEDDEVICEPOSE
public static final int TRACKEDDEVICEPOSEThe struct member offsets. -
ULFRAMEEXPOSURETIME
public static final int ULFRAMEEXPOSURETIMEThe struct member offsets.
-
-
Constructor Details
-
CameraVideoStreamFrameHeader
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 Details
-
sizeof
public int sizeof()- Specified by:
sizeofin classorg.lwjgl.system.Struct<CameraVideoStreamFrameHeader>
-
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
- Returns:
- a
TrackedDevicePoseview of thetrackedDevicePosefield.
-
ulFrameExposureTime
public long ulFrameExposureTime()mid-point of the exposure of the image in host system ticks -
malloc
Returns a newCameraVideoStreamFrameHeaderinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newCameraVideoStreamFrameHeaderinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newCameraVideoStreamFrameHeaderinstance allocated withBufferUtils. -
create
Returns a newCameraVideoStreamFrameHeaderinstance for the specified memory address. -
createSafe
-
malloc
Returns a newCameraVideoStreamFrameHeader.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newCameraVideoStreamFrameHeader.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newCameraVideoStreamFrameHeader.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aCameraVideoStreamFrameHeader.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
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.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
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
Returns a newCameraVideoStreamFrameHeaderinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
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:
capacity- the buffer capacitystack- the stack from which to allocate
-
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:
capacity- the buffer capacitystack- the stack from which to allocate
-
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
Unsafe version oftrackedDevicePose(). -
nulFrameExposureTime
public static long nulFrameExposureTime(long struct) Unsafe version ofulFrameExposureTime().
-