Package org.lwjgl.vulkan.video
Class StdVideoDecodeH264PictureInfo
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<StdVideoDecodeH264PictureInfo>
org.lwjgl.vulkan.video.StdVideoDecodeH264PictureInfo
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
public class StdVideoDecodeH264PictureInfo
extends Struct<StdVideoDecodeH264PictureInfo>
implements NativeResource
struct StdVideoDecodeH264PictureInfo {
{@link StdVideoDecodeH264PictureInfoFlags StdVideoDecodeH264PictureInfoFlags} flags;
uint8_t seq_parameter_set_id;
uint8_t pic_parameter_set_id;
uint8_t reserved1;
uint8_t reserved2;
uint16_t frame_num;
uint16_t idr_pic_id;
int32_t PicOrderCnt[STD_VIDEO_DECODE_H264_FIELD_ORDER_COUNT_LIST_SIZE];
}
-
Nested Class Summary
Nested ClassesNested 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 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
ConstructorsConstructorDescriptionStdVideoDecodeH264PictureInfo
(ByteBuffer container) Creates aStdVideoDecodeH264PictureInfo
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptioncalloc()
Returns a newStdVideoDecodeH264PictureInfo
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newStdVideoDecodeH264PictureInfo.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newStdVideoDecodeH264PictureInfo.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.calloc
(MemoryStack stack) Returns a newStdVideoDecodeH264PictureInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.create()
Returns a newStdVideoDecodeH264PictureInfo
instance allocated withBufferUtils
.create
(int capacity) Returns a newStdVideoDecodeH264PictureInfo.Buffer
instance allocated withBufferUtils
.create
(long address) Returns a newStdVideoDecodeH264PictureInfo
instance for the specified memory address.create
(long address, int capacity) Create aStdVideoDecodeH264PictureInfo.Buffer
instance at the specified memory.static @Nullable StdVideoDecodeH264PictureInfo
createSafe
(long address) static @Nullable StdVideoDecodeH264PictureInfo.Buffer
createSafe
(long address, int capacity) flags()
flags
(Consumer<StdVideoDecodeH264PictureInfoFlags> consumer) Passes theflags
field to the specifiedConsumer
.Copies the specifiedStdVideoDecodeH264PictureInfoFlags
to theflags
field.short
frame_num
(short value) Sets the specified value to theframe_num
field.short
idr_pic_id
(short value) Sets the specified value to theidr_pic_id
field.malloc()
Returns a newStdVideoDecodeH264PictureInfo
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newStdVideoDecodeH264PictureInfo.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newStdVideoDecodeH264PictureInfo.Buffer
instance allocated on the specifiedMemoryStack
.malloc
(MemoryStack stack) Returns a newStdVideoDecodeH264PictureInfo
instance allocated on the specifiedMemoryStack
.nflags
(long struct) Unsafe version offlags()
.static void
nflags
(long struct, StdVideoDecodeH264PictureInfoFlags value) Unsafe version offlags
.static short
nframe_num
(long struct) Unsafe version offrame_num()
.static void
nframe_num
(long struct, short value) Unsafe version offrame_num
.static short
nidr_pic_id
(long struct) Unsafe version ofidr_pic_id()
.static void
nidr_pic_id
(long struct, short value) Unsafe version ofidr_pic_id
.static byte
npic_parameter_set_id
(long struct) Unsafe version ofpic_parameter_set_id()
.static void
npic_parameter_set_id
(long struct, byte value) Unsafe version ofpic_parameter_set_id
.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 byte
nreserved1
(long struct) static void
nreserved1
(long struct, byte value) static byte
nreserved2
(long struct) static void
nreserved2
(long struct, byte value) static byte
nseq_parameter_set_id
(long struct) Unsafe version ofseq_parameter_set_id()
.static void
nseq_parameter_set_id
(long struct, byte value) Unsafe version ofseq_parameter_set_id
.byte
pic_parameter_set_id
(byte value) Sets the specified value to thepic_parameter_set_id
field.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.byte
seq_parameter_set_id
(byte value) Sets the specified value to theseq_parameter_set_id
field.Copies the specified struct data to this struct.set
(StdVideoDecodeH264PictureInfoFlags flags, byte seq_parameter_set_id, byte pic_parameter_set_id, short frame_num, short idr_pic_id, 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. -
SEQ_PARAMETER_SET_ID
public static final int SEQ_PARAMETER_SET_IDThe struct member offsets. -
PIC_PARAMETER_SET_ID
public static final int PIC_PARAMETER_SET_IDThe struct member offsets. -
RESERVED1
public static final int RESERVED1The struct member offsets. -
RESERVED2
public static final int RESERVED2The struct member offsets. -
FRAME_NUM
public static final int FRAME_NUMThe struct member offsets. -
IDR_PIC_ID
public static final int IDR_PIC_IDThe struct member offsets. -
PICORDERCNT
public static final int PICORDERCNTThe struct member offsets.
-
-
Constructor Details
-
StdVideoDecodeH264PictureInfo
Creates aStdVideoDecodeH264PictureInfo
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<StdVideoDecodeH264PictureInfo>
-
flags
- Returns:
- a
StdVideoDecodeH264PictureInfoFlags
view of theflags
field.
-
seq_parameter_set_id
public byte seq_parameter_set_id()- Returns:
- the value of the
seq_parameter_set_id
field.
-
pic_parameter_set_id
public byte pic_parameter_set_id()- Returns:
- the value of the
pic_parameter_set_id
field.
-
frame_num
public short frame_num()- Returns:
- the value of the
frame_num
field.
-
idr_pic_id
public short idr_pic_id()- Returns:
- the value of the
idr_pic_id
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 specifiedStdVideoDecodeH264PictureInfoFlags
to theflags
field. -
flags
Passes theflags
field to the specifiedConsumer
. -
seq_parameter_set_id
Sets the specified value to theseq_parameter_set_id
field. -
pic_parameter_set_id
Sets the specified value to thepic_parameter_set_id
field. -
frame_num
Sets the specified value to theframe_num
field. -
idr_pic_id
Sets the specified value to theidr_pic_id
field. -
PicOrderCnt
Copies the specifiedIntBuffer
to thePicOrderCnt
field. -
PicOrderCnt
Sets the specified value at the specified index of thePicOrderCnt
field. -
set
public StdVideoDecodeH264PictureInfo set(StdVideoDecodeH264PictureInfoFlags flags, byte seq_parameter_set_id, byte pic_parameter_set_id, short frame_num, short idr_pic_id, 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 newStdVideoDecodeH264PictureInfo
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newStdVideoDecodeH264PictureInfo
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newStdVideoDecodeH264PictureInfo
instance allocated withBufferUtils
. -
create
Returns a newStdVideoDecodeH264PictureInfo
instance for the specified memory address. -
createSafe
-
malloc
Returns a newStdVideoDecodeH264PictureInfo.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newStdVideoDecodeH264PictureInfo.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newStdVideoDecodeH264PictureInfo.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aStdVideoDecodeH264PictureInfo.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newStdVideoDecodeH264PictureInfo
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newStdVideoDecodeH264PictureInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newStdVideoDecodeH264PictureInfo.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newStdVideoDecodeH264PictureInfo.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()
. -
nseq_parameter_set_id
public static byte nseq_parameter_set_id(long struct) Unsafe version ofseq_parameter_set_id()
. -
npic_parameter_set_id
public static byte npic_parameter_set_id(long struct) Unsafe version ofpic_parameter_set_id()
. -
nreserved1
public static byte nreserved1(long struct) -
nreserved2
public static byte nreserved2(long struct) -
nframe_num
public static short nframe_num(long struct) Unsafe version offrame_num()
. -
nidr_pic_id
public static short nidr_pic_id(long struct) Unsafe version ofidr_pic_id()
. -
nPicOrderCnt
Unsafe version ofPicOrderCnt()
. -
nPicOrderCnt
public static int nPicOrderCnt(long struct, int index) Unsafe version ofPicOrderCnt
. -
nflags
Unsafe version offlags
. -
nseq_parameter_set_id
public static void nseq_parameter_set_id(long struct, byte value) Unsafe version ofseq_parameter_set_id
. -
npic_parameter_set_id
public static void npic_parameter_set_id(long struct, byte value) Unsafe version ofpic_parameter_set_id
. -
nreserved1
public static void nreserved1(long struct, byte value) -
nreserved2
public static void nreserved2(long struct, byte value) -
nframe_num
public static void nframe_num(long struct, short value) Unsafe version offrame_num
. -
nidr_pic_id
public static void nidr_pic_id(long struct, short value) Unsafe version ofidr_pic_id
. -
nPicOrderCnt
Unsafe version ofPicOrderCnt
. -
nPicOrderCnt
public static void nPicOrderCnt(long struct, int index, int value) Unsafe version ofPicOrderCnt
.
-