Package org.lwjgl.vulkan.video
Class StdVideoDecodeH264ReferenceInfo
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<StdVideoDecodeH264ReferenceInfo>
org.lwjgl.vulkan.video.StdVideoDecodeH264ReferenceInfo
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
public class StdVideoDecodeH264ReferenceInfo
extends Struct<StdVideoDecodeH264ReferenceInfo>
implements NativeResource
struct StdVideoDecodeH264ReferenceInfo {
{@link StdVideoDecodeH264ReferenceInfoFlags StdVideoDecodeH264ReferenceInfoFlags} flags;
uint16_t FrameNum;
uint16_t reserved;
int32_t PicOrderCnt[STD_VIDEO_DECODE_H264_FIELD_ORDER_COUNT_LIST_SIZE];
}
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
An array ofStdVideoDecodeH264ReferenceInfo
structs.Nested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionStdVideoDecodeH264ReferenceInfo
(ByteBuffer container) Creates aStdVideoDecodeH264ReferenceInfo
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptioncalloc()
Returns a newStdVideoDecodeH264ReferenceInfo
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newStdVideoDecodeH264ReferenceInfo.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newStdVideoDecodeH264ReferenceInfo.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.calloc
(MemoryStack stack) Returns a newStdVideoDecodeH264ReferenceInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.create()
Returns a newStdVideoDecodeH264ReferenceInfo
instance allocated withBufferUtils
.create
(int capacity) Returns a newStdVideoDecodeH264ReferenceInfo.Buffer
instance allocated withBufferUtils
.create
(long address) Returns a newStdVideoDecodeH264ReferenceInfo
instance for the specified memory address.create
(long address, int capacity) Create aStdVideoDecodeH264ReferenceInfo.Buffer
instance at the specified memory.static @Nullable StdVideoDecodeH264ReferenceInfo
createSafe
(long address) static @Nullable StdVideoDecodeH264ReferenceInfo.Buffer
createSafe
(long address, int capacity) flags()
flags
(Consumer<StdVideoDecodeH264ReferenceInfoFlags> consumer) Passes theflags
field to the specifiedConsumer
.Copies the specifiedStdVideoDecodeH264ReferenceInfoFlags
to theflags
field.short
FrameNum()
FrameNum
(short value) Sets the specified value to theFrameNum
field.malloc()
Returns a newStdVideoDecodeH264ReferenceInfo
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newStdVideoDecodeH264ReferenceInfo.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newStdVideoDecodeH264ReferenceInfo.Buffer
instance allocated on the specifiedMemoryStack
.malloc
(MemoryStack stack) Returns a newStdVideoDecodeH264ReferenceInfo
instance allocated on the specifiedMemoryStack
.nflags
(long struct) Unsafe version offlags()
.static void
nflags
(long struct, StdVideoDecodeH264ReferenceInfoFlags value) Unsafe version offlags
.static short
nFrameNum
(long struct) Unsafe version ofFrameNum()
.static void
nFrameNum
(long struct, short value) Unsafe version ofFrameNum
.static IntBuffer
nPicOrderCnt
(long struct) Unsafe version ofPicOrderCnt()
.static int
nPicOrderCnt
(long struct, int index) Unsafe version ofPicOrderCnt
.static void
nPicOrderCnt
(long struct, int index, int value) Unsafe version ofPicOrderCnt
.static void
nPicOrderCnt
(long struct, IntBuffer value) Unsafe version ofPicOrderCnt
.static short
nreserved
(long struct) static void
nreserved
(long struct, short value) int
PicOrderCnt
(int index) PicOrderCnt
(int index, int value) Sets the specified value at the specified index of thePicOrderCnt
field.PicOrderCnt
(IntBuffer value) Copies the specifiedIntBuffer
to thePicOrderCnt
field.Copies the specified struct data to this struct.set
(StdVideoDecodeH264ReferenceInfoFlags flags, short FrameNum, IntBuffer PicOrderCnt) Initializes this struct with the specified values.int
sizeof()
Returnssizeof(struct)
.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods 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. -
FLAGS
public static final int FLAGSThe struct member offsets. -
FRAMENUM
public static final int FRAMENUMThe struct member offsets. -
RESERVED
public static final int RESERVEDThe struct member offsets. -
PICORDERCNT
public static final int PICORDERCNTThe struct member offsets.
-
-
Constructor Details
-
StdVideoDecodeH264ReferenceInfo
Creates aStdVideoDecodeH264ReferenceInfo
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 Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<StdVideoDecodeH264ReferenceInfo>
-
flags
- Returns:
- a
StdVideoDecodeH264ReferenceInfoFlags
view of theflags
field.
-
FrameNum
public short FrameNum()- Returns:
- the value of the
FrameNum
field.
-
PicOrderCnt
- Returns:
- a
IntBuffer
view of thePicOrderCnt
field.
-
PicOrderCnt
public int PicOrderCnt(int index) - Returns:
- the value at the specified index of the
PicOrderCnt
field.
-
flags
Copies the specifiedStdVideoDecodeH264ReferenceInfoFlags
to theflags
field. -
flags
public StdVideoDecodeH264ReferenceInfo flags(Consumer<StdVideoDecodeH264ReferenceInfoFlags> consumer) Passes theflags
field to the specifiedConsumer
. -
FrameNum
Sets the specified value to theFrameNum
field. -
PicOrderCnt
Copies the specifiedIntBuffer
to thePicOrderCnt
field. -
PicOrderCnt
Sets the specified value at the specified index of thePicOrderCnt
field. -
set
public StdVideoDecodeH264ReferenceInfo set(StdVideoDecodeH264ReferenceInfoFlags flags, short FrameNum, IntBuffer PicOrderCnt) Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newStdVideoDecodeH264ReferenceInfo
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newStdVideoDecodeH264ReferenceInfo
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newStdVideoDecodeH264ReferenceInfo
instance allocated withBufferUtils
. -
create
Returns a newStdVideoDecodeH264ReferenceInfo
instance for the specified memory address. -
createSafe
-
malloc
Returns a newStdVideoDecodeH264ReferenceInfo.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newStdVideoDecodeH264ReferenceInfo.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newStdVideoDecodeH264ReferenceInfo.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aStdVideoDecodeH264ReferenceInfo.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
public static @Nullable StdVideoDecodeH264ReferenceInfo.Buffer createSafe(long address, int capacity) -
malloc
Returns a newStdVideoDecodeH264ReferenceInfo
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newStdVideoDecodeH264ReferenceInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newStdVideoDecodeH264ReferenceInfo.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newStdVideoDecodeH264ReferenceInfo.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nflags
Unsafe version offlags()
. -
nFrameNum
public static short nFrameNum(long struct) Unsafe version ofFrameNum()
. -
nreserved
public static short nreserved(long struct) -
nPicOrderCnt
Unsafe version ofPicOrderCnt()
. -
nPicOrderCnt
public static int nPicOrderCnt(long struct, int index) Unsafe version ofPicOrderCnt
. -
nflags
Unsafe version offlags
. -
nFrameNum
public static void nFrameNum(long struct, short value) Unsafe version ofFrameNum
. -
nreserved
public static void nreserved(long struct, short value) -
nPicOrderCnt
Unsafe version ofPicOrderCnt
. -
nPicOrderCnt
public static void nPicOrderCnt(long struct, int index, int value) Unsafe version ofPicOrderCnt
.
-