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 {
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.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
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 member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe 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 aStdVideoDecodeH264PictureInfoinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptioncalloc()Returns a newStdVideoDecodeH264PictureInfoinstance allocated withmemCalloc.calloc(int capacity) Returns a newStdVideoDecodeH264PictureInfo.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newStdVideoDecodeH264PictureInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.calloc(MemoryStack stack) Returns a newStdVideoDecodeH264PictureInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.create()Returns a newStdVideoDecodeH264PictureInfoinstance allocated withBufferUtils.create(int capacity) Returns a newStdVideoDecodeH264PictureInfo.Bufferinstance allocated withBufferUtils.create(long address) Returns a newStdVideoDecodeH264PictureInfoinstance for the specified memory address.create(long address, int capacity) Create aStdVideoDecodeH264PictureInfo.Bufferinstance at the specified memory.static @Nullable StdVideoDecodeH264PictureInfocreateSafe(long address) static @Nullable StdVideoDecodeH264PictureInfo.BuffercreateSafe(long address, int capacity) flags()flags(Consumer<StdVideoDecodeH264PictureInfoFlags> consumer) Passes theflagsfield to the specifiedConsumer.Copies the specifiedStdVideoDecodeH264PictureInfoFlagsto theflagsfield.shortframe_num(short value) Sets the specified value to theframe_numfield.shortidr_pic_id(short value) Sets the specified value to theidr_pic_idfield.malloc()Returns a newStdVideoDecodeH264PictureInfoinstance allocated withmemAlloc.malloc(int capacity) Returns a newStdVideoDecodeH264PictureInfo.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newStdVideoDecodeH264PictureInfo.Bufferinstance allocated on the specifiedMemoryStack.malloc(MemoryStack stack) Returns a newStdVideoDecodeH264PictureInfoinstance allocated on the specifiedMemoryStack.nflags(long struct) Unsafe version offlags().static voidnflags(long struct, StdVideoDecodeH264PictureInfoFlags value) Unsafe version offlags.static shortnframe_num(long struct) Unsafe version offrame_num().static voidnframe_num(long struct, short value) Unsafe version offrame_num.static shortnidr_pic_id(long struct) Unsafe version ofidr_pic_id().static voidnidr_pic_id(long struct, short value) Unsafe version ofidr_pic_id.static bytenpic_parameter_set_id(long struct) Unsafe version ofpic_parameter_set_id().static voidnpic_parameter_set_id(long struct, byte value) Unsafe version ofpic_parameter_set_id.static IntBuffernPicOrderCnt(long struct) Unsafe version ofPicOrderCnt().static intnPicOrderCnt(long struct, int index) Unsafe version ofPicOrderCnt.static voidnPicOrderCnt(long struct, int index, int value) Unsafe version ofPicOrderCnt.static voidnPicOrderCnt(long struct, IntBuffer value) Unsafe version ofPicOrderCnt.static bytenreserved1(long struct) static voidnreserved1(long struct, byte value) static bytenreserved2(long struct) static voidnreserved2(long struct, byte value) static bytenseq_parameter_set_id(long struct) Unsafe version ofseq_parameter_set_id().static voidnseq_parameter_set_id(long struct, byte value) Unsafe version ofseq_parameter_set_id.bytepic_parameter_set_id(byte value) Sets the specified value to thepic_parameter_set_idfield.intPicOrderCnt(int index) PicOrderCnt(int index, int value) Sets the specified value at the specified index of thePicOrderCntfield.PicOrderCnt(IntBuffer value) Copies the specifiedIntBufferto thePicOrderCntfield.byteseq_parameter_set_id(byte value) Sets the specified value to theseq_parameter_set_idfield.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.intsizeof()Returnssizeof(struct).Methods 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. -
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 aStdVideoDecodeH264PictureInfoinstance 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()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<StdVideoDecodeH264PictureInfo>
-
flags
- Returns:
- a
StdVideoDecodeH264PictureInfoFlagsview of theflagsfield.
-
seq_parameter_set_id
public byte seq_parameter_set_id()- Returns:
- the value of the
seq_parameter_set_idfield.
-
pic_parameter_set_id
public byte pic_parameter_set_id()- Returns:
- the value of the
pic_parameter_set_idfield.
-
frame_num
public short frame_num()- Returns:
- the value of the
frame_numfield.
-
idr_pic_id
public short idr_pic_id()- Returns:
- the value of the
idr_pic_idfield.
-
PicOrderCnt
- Returns:
- a
IntBufferview of thePicOrderCntfield.
-
PicOrderCnt
public int PicOrderCnt(int index) - Returns:
- the value at the specified index of the
PicOrderCntfield.
-
flags
Copies the specifiedStdVideoDecodeH264PictureInfoFlagsto theflagsfield. -
flags
Passes theflagsfield to the specifiedConsumer. -
seq_parameter_set_id
Sets the specified value to theseq_parameter_set_idfield. -
pic_parameter_set_id
Sets the specified value to thepic_parameter_set_idfield. -
frame_num
Sets the specified value to theframe_numfield. -
idr_pic_id
Sets the specified value to theidr_pic_idfield. -
PicOrderCnt
Copies the specifiedIntBufferto thePicOrderCntfield. -
PicOrderCnt
Sets the specified value at the specified index of thePicOrderCntfield. -
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 newStdVideoDecodeH264PictureInfoinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newStdVideoDecodeH264PictureInfoinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newStdVideoDecodeH264PictureInfoinstance allocated withBufferUtils. -
create
Returns a newStdVideoDecodeH264PictureInfoinstance for the specified memory address. -
createSafe
-
malloc
Returns a newStdVideoDecodeH264PictureInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newStdVideoDecodeH264PictureInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newStdVideoDecodeH264PictureInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aStdVideoDecodeH264PictureInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newStdVideoDecodeH264PictureInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newStdVideoDecodeH264PictureInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newStdVideoDecodeH264PictureInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newStdVideoDecodeH264PictureInfo.Bufferinstance allocated on the specifiedMemoryStackand 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.
-