Package org.lwjgl.vulkan.video
Class StdVideoDecodeH264PictureInfo
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.video.StdVideoDecodeH264PictureInfo
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class StdVideoDecodeH264PictureInfo extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceLayout
struct StdVideoDecodeH264PictureInfo { uint8_tseq_parameter_set_id(); uint8_tpic_parameter_set_id(); uint16_treserved(); uint16_tframe_num(); uint16_tidr_pic_id(); int32_tPicOrderCnt()[STD_VIDEO_DECODE_H264_FIELD_ORDER_COUNT_LIST_SIZE];StdVideoDecodeH264PictureInfoFlagsflags; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStdVideoDecodeH264PictureInfo.BufferAn array ofStdVideoDecodeH264PictureInfostructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intFLAGS
FRAME_NUM
IDR_PIC_ID
PIC_PARAMETER_SET_ID
PICORDERCNT
RESERVED
SEQ_PARAMETER_SET_IDThe struct member offsets.static intSIZEOFThe struct size in bytes.
-
Constructor Summary
Constructors Constructor Description StdVideoDecodeH264PictureInfo(java.nio.ByteBuffer container)Creates aStdVideoDecodeH264PictureInfoinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StdVideoDecodeH264PictureInfocalloc()Returns a newStdVideoDecodeH264PictureInfoinstance allocated withmemCalloc.static StdVideoDecodeH264PictureInfo.Buffercalloc(int capacity)Returns a newStdVideoDecodeH264PictureInfo.Bufferinstance allocated withmemCalloc.static StdVideoDecodeH264PictureInfo.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newStdVideoDecodeH264PictureInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static StdVideoDecodeH264PictureInfocalloc(org.lwjgl.system.MemoryStack stack)Returns a newStdVideoDecodeH264PictureInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static StdVideoDecodeH264PictureInfocreate()Returns a newStdVideoDecodeH264PictureInfoinstance allocated withBufferUtils.static StdVideoDecodeH264PictureInfo.Buffercreate(int capacity)Returns a newStdVideoDecodeH264PictureInfo.Bufferinstance allocated withBufferUtils.static StdVideoDecodeH264PictureInfocreate(long address)Returns a newStdVideoDecodeH264PictureInfoinstance for the specified memory address.static StdVideoDecodeH264PictureInfo.Buffercreate(long address, int capacity)Create aStdVideoDecodeH264PictureInfo.Bufferinstance at the specified memory.static StdVideoDecodeH264PictureInfocreateSafe(long address)static StdVideoDecodeH264PictureInfo.BuffercreateSafe(long address, int capacity)StdVideoDecodeH264PictureInfoFlagsflags()StdVideoDecodeH264PictureInfoflags(java.util.function.Consumer<StdVideoDecodeH264PictureInfoFlags> consumer)Passes theflagsfield to the specifiedConsumer.StdVideoDecodeH264PictureInfoflags(StdVideoDecodeH264PictureInfoFlags value)Copies the specifiedStdVideoDecodeH264PictureInfoFlagsto theflagsfield.shortframe_num()7.4.3 Slice header semanticsStdVideoDecodeH264PictureInfoframe_num(short value)Sets the specified value to theframe_num()field.shortidr_pic_id()7.4.3 Slice header semanticsStdVideoDecodeH264PictureInfoidr_pic_id(short value)Sets the specified value to theidr_pic_id()field.static StdVideoDecodeH264PictureInfomalloc()Returns a newStdVideoDecodeH264PictureInfoinstance allocated withmemAlloc.static StdVideoDecodeH264PictureInfo.Buffermalloc(int capacity)Returns a newStdVideoDecodeH264PictureInfo.Bufferinstance allocated withmemAlloc.static StdVideoDecodeH264PictureInfo.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newStdVideoDecodeH264PictureInfo.Bufferinstance allocated on the specifiedMemoryStack.static StdVideoDecodeH264PictureInfomalloc(org.lwjgl.system.MemoryStack stack)Returns a newStdVideoDecodeH264PictureInfoinstance allocated on the specifiedMemoryStack.static StdVideoDecodeH264PictureInfoFlagsnflags(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 java.nio.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, java.nio.IntBuffer value)Unsafe version ofPicOrderCnt.static shortnreserved(long struct)Unsafe version ofreserved().static voidnreserved(long struct, short value)Unsafe version ofreserved.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()selecting PPS from the Picture Parameters and the SPSStdVideoDecodeH264PictureInfopic_parameter_set_id(byte value)Sets the specified value to thepic_parameter_set_id()field.java.nio.IntBufferPicOrderCnt()topFieldOrderCnt and BottomFieldOrderCnt fieldsintPicOrderCnt(int index)topFieldOrderCnt and BottomFieldOrderCnt fieldsStdVideoDecodeH264PictureInfoPicOrderCnt(int index, int value)Sets the specified value at the specified index of thePicOrderCnt()field.StdVideoDecodeH264PictureInfoPicOrderCnt(java.nio.IntBuffer value)Copies the specifiedIntBufferto thePicOrderCnt()field.shortreserved()for structure members 32-bit packing/alignmentStdVideoDecodeH264PictureInforeserved(short value)Sets the specified value to thereserved()field.byteseq_parameter_set_id()selecting SPS from the Picture ParametersStdVideoDecodeH264PictureInfoseq_parameter_set_id(byte value)Sets the specified value to theseq_parameter_set_id()field.StdVideoDecodeH264PictureInfoset(byte seq_parameter_set_id, byte pic_parameter_set_id, short reserved, short frame_num, short idr_pic_id, java.nio.IntBuffer PicOrderCnt, StdVideoDecodeH264PictureInfoFlags flags)Initializes this struct with the specified values.StdVideoDecodeH264PictureInfoset(StdVideoDecodeH264PictureInfo src)Copies the specified struct data to this struct.intsizeof()
-
-
-
Constructor Detail
-
StdVideoDecodeH264PictureInfo
public StdVideoDecodeH264PictureInfo(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
seq_parameter_set_id
public byte seq_parameter_set_id()
selecting SPS from the Picture Parameters
-
pic_parameter_set_id
public byte pic_parameter_set_id()
selecting PPS from the Picture Parameters and the SPS
-
reserved
public short reserved()
for structure members 32-bit packing/alignment
-
frame_num, idr_pic_id
public short frame_num() public short idr_pic_id()
7.4.3 Slice header semantics
-
PicOrderCnt
public java.nio.IntBuffer PicOrderCnt() public int PicOrderCnt(int index)
topFieldOrderCnt and BottomFieldOrderCnt fields
-
flags
public StdVideoDecodeH264PictureInfoFlags flags()
- Returns:
- a
StdVideoDecodeH264PictureInfoFlagsview of theflagsfield.
-
seq_parameter_set_id
public StdVideoDecodeH264PictureInfo seq_parameter_set_id(byte value)
Sets the specified value to theseq_parameter_set_id()field.
-
pic_parameter_set_id
public StdVideoDecodeH264PictureInfo pic_parameter_set_id(byte value)
Sets the specified value to thepic_parameter_set_id()field.
-
reserved
public StdVideoDecodeH264PictureInfo reserved(short value)
Sets the specified value to thereserved()field.
-
frame_num
public StdVideoDecodeH264PictureInfo frame_num(short value)
Sets the specified value to theframe_num()field.
-
idr_pic_id
public StdVideoDecodeH264PictureInfo idr_pic_id(short value)
Sets the specified value to theidr_pic_id()field.
-
PicOrderCnt
public StdVideoDecodeH264PictureInfo PicOrderCnt(java.nio.IntBuffer value)
Copies the specifiedIntBufferto thePicOrderCnt()field.
-
PicOrderCnt
public StdVideoDecodeH264PictureInfo PicOrderCnt(int index, int value)
Sets the specified value at the specified index of thePicOrderCnt()field.
-
flags
public StdVideoDecodeH264PictureInfo flags(StdVideoDecodeH264PictureInfoFlags value)
Copies the specifiedStdVideoDecodeH264PictureInfoFlagsto theflagsfield.
-
flags
public StdVideoDecodeH264PictureInfo flags(java.util.function.Consumer<StdVideoDecodeH264PictureInfoFlags> consumer)
Passes theflagsfield to the specifiedConsumer.
-
set
public StdVideoDecodeH264PictureInfo set(byte seq_parameter_set_id, byte pic_parameter_set_id, short reserved, short frame_num, short idr_pic_id, java.nio.IntBuffer PicOrderCnt, StdVideoDecodeH264PictureInfoFlags flags)
Initializes this struct with the specified values.
-
set
public StdVideoDecodeH264PictureInfo set(StdVideoDecodeH264PictureInfo src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static StdVideoDecodeH264PictureInfo malloc()
Returns a newStdVideoDecodeH264PictureInfoinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static StdVideoDecodeH264PictureInfo calloc()
Returns a newStdVideoDecodeH264PictureInfoinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static StdVideoDecodeH264PictureInfo create()
Returns a newStdVideoDecodeH264PictureInfoinstance allocated withBufferUtils.
-
create
public static StdVideoDecodeH264PictureInfo create(long address)
Returns a newStdVideoDecodeH264PictureInfoinstance for the specified memory address.
-
createSafe
@Nullable public static StdVideoDecodeH264PictureInfo createSafe(long address)
-
malloc
public static StdVideoDecodeH264PictureInfo.Buffer malloc(int capacity)
Returns a newStdVideoDecodeH264PictureInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static StdVideoDecodeH264PictureInfo.Buffer calloc(int capacity)
Returns a newStdVideoDecodeH264PictureInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static StdVideoDecodeH264PictureInfo.Buffer create(int capacity)
Returns a newStdVideoDecodeH264PictureInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static StdVideoDecodeH264PictureInfo.Buffer create(long address, int capacity)
Create aStdVideoDecodeH264PictureInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static StdVideoDecodeH264PictureInfo.Buffer createSafe(long address, int capacity)
-
malloc
public static StdVideoDecodeH264PictureInfo malloc(org.lwjgl.system.MemoryStack stack)
Returns a newStdVideoDecodeH264PictureInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static StdVideoDecodeH264PictureInfo calloc(org.lwjgl.system.MemoryStack stack)
Returns a newStdVideoDecodeH264PictureInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static StdVideoDecodeH264PictureInfo.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newStdVideoDecodeH264PictureInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static StdVideoDecodeH264PictureInfo.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newStdVideoDecodeH264PictureInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
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().
-
nreserved
public static short nreserved(long struct)
Unsafe version ofreserved().
-
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
public static java.nio.IntBuffer nPicOrderCnt(long struct)
Unsafe version ofPicOrderCnt().
-
nPicOrderCnt
public static int nPicOrderCnt(long struct, int index)Unsafe version ofPicOrderCnt.
-
nflags
public static StdVideoDecodeH264PictureInfoFlags nflags(long struct)
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.
-
nreserved
public static void nreserved(long struct, short value)Unsafe version ofreserved.
-
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
public static void nPicOrderCnt(long struct, java.nio.IntBuffer value)Unsafe version ofPicOrderCnt.
-
nPicOrderCnt
public static void nPicOrderCnt(long struct, int index, int value)Unsafe version ofPicOrderCnt.
-
nflags
public static void nflags(long struct, StdVideoDecodeH264PictureInfoFlags value)Unsafe version offlags.
-
-