Package org.lwjgl.vulkan.video
Class StdVideoEncodeH264ReferenceInfo
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.video.StdVideoEncodeH264ReferenceInfo
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class StdVideoEncodeH264ReferenceInfo extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceLayout
struct StdVideoEncodeH264ReferenceInfo {StdVideoEncodeH264ReferenceInfoFlagsflags; uint32_t FrameNum; int32_t PicOrderCnt; uint16_t long_term_pic_num; uint16_t long_term_frame_idx; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStdVideoEncodeH264ReferenceInfo.BufferAn array ofStdVideoEncodeH264ReferenceInfostructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intFLAGS
FRAMENUM
LONG_TERM_FRAME_IDX
LONG_TERM_PIC_NUM
PICORDERCNTThe struct member offsets.static intSIZEOFThe struct size in bytes.
-
Constructor Summary
Constructors Constructor Description StdVideoEncodeH264ReferenceInfo(java.nio.ByteBuffer container)Creates aStdVideoEncodeH264ReferenceInfoinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StdVideoEncodeH264ReferenceInfocalloc()Returns a newStdVideoEncodeH264ReferenceInfoinstance allocated withmemCalloc.static StdVideoEncodeH264ReferenceInfo.Buffercalloc(int capacity)Returns a newStdVideoEncodeH264ReferenceInfo.Bufferinstance allocated withmemCalloc.static StdVideoEncodeH264ReferenceInfo.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newStdVideoEncodeH264ReferenceInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static StdVideoEncodeH264ReferenceInfocalloc(org.lwjgl.system.MemoryStack stack)Returns a newStdVideoEncodeH264ReferenceInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static StdVideoEncodeH264ReferenceInfocreate()Returns a newStdVideoEncodeH264ReferenceInfoinstance allocated withBufferUtils.static StdVideoEncodeH264ReferenceInfo.Buffercreate(int capacity)Returns a newStdVideoEncodeH264ReferenceInfo.Bufferinstance allocated withBufferUtils.static StdVideoEncodeH264ReferenceInfocreate(long address)Returns a newStdVideoEncodeH264ReferenceInfoinstance for the specified memory address.static StdVideoEncodeH264ReferenceInfo.Buffercreate(long address, int capacity)Create aStdVideoEncodeH264ReferenceInfo.Bufferinstance at the specified memory.static StdVideoEncodeH264ReferenceInfocreateSafe(long address)static StdVideoEncodeH264ReferenceInfo.BuffercreateSafe(long address, int capacity)StdVideoEncodeH264ReferenceInfoFlagsflags()StdVideoEncodeH264ReferenceInfoflags(java.util.function.Consumer<StdVideoEncodeH264ReferenceInfoFlags> consumer)Passes theflagsfield to the specifiedConsumer.StdVideoEncodeH264ReferenceInfoflags(StdVideoEncodeH264ReferenceInfoFlags value)Copies the specifiedStdVideoEncodeH264ReferenceInfoFlagsto theflagsfield.intFrameNum()StdVideoEncodeH264ReferenceInfoFrameNum(int value)Sets the specified value to theFrameNumfield.shortlong_term_frame_idx()StdVideoEncodeH264ReferenceInfolong_term_frame_idx(short value)Sets the specified value to thelong_term_frame_idxfield.shortlong_term_pic_num()StdVideoEncodeH264ReferenceInfolong_term_pic_num(short value)Sets the specified value to thelong_term_pic_numfield.static StdVideoEncodeH264ReferenceInfomalloc()Returns a newStdVideoEncodeH264ReferenceInfoinstance allocated withmemAlloc.static StdVideoEncodeH264ReferenceInfo.Buffermalloc(int capacity)Returns a newStdVideoEncodeH264ReferenceInfo.Bufferinstance allocated withmemAlloc.static StdVideoEncodeH264ReferenceInfo.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newStdVideoEncodeH264ReferenceInfo.Bufferinstance allocated on the specifiedMemoryStack.static StdVideoEncodeH264ReferenceInfomalloc(org.lwjgl.system.MemoryStack stack)Returns a newStdVideoEncodeH264ReferenceInfoinstance allocated on the specifiedMemoryStack.static StdVideoEncodeH264ReferenceInfoFlagsnflags(long struct)Unsafe version offlags().static voidnflags(long struct, StdVideoEncodeH264ReferenceInfoFlags value)Unsafe version offlags.static intnFrameNum(long struct)Unsafe version ofFrameNum().static voidnFrameNum(long struct, int value)Unsafe version ofFrameNum.static shortnlong_term_frame_idx(long struct)Unsafe version oflong_term_frame_idx().static voidnlong_term_frame_idx(long struct, short value)Unsafe version oflong_term_frame_idx.static shortnlong_term_pic_num(long struct)Unsafe version oflong_term_pic_num().static voidnlong_term_pic_num(long struct, short value)Unsafe version oflong_term_pic_num.static intnPicOrderCnt(long struct)Unsafe version ofPicOrderCnt().static voidnPicOrderCnt(long struct, int value)Unsafe version ofPicOrderCnt.intPicOrderCnt()StdVideoEncodeH264ReferenceInfoPicOrderCnt(int value)Sets the specified value to thePicOrderCntfield.StdVideoEncodeH264ReferenceInfoset(StdVideoEncodeH264ReferenceInfo src)Copies the specified struct data to this struct.StdVideoEncodeH264ReferenceInfoset(StdVideoEncodeH264ReferenceInfoFlags flags, int FrameNum, int PicOrderCnt, short long_term_pic_num, short long_term_frame_idx)Initializes this struct with the specified values.intsizeof()
-
-
-
Constructor Detail
-
StdVideoEncodeH264ReferenceInfo
public StdVideoEncodeH264ReferenceInfo(java.nio.ByteBuffer container)
Creates aStdVideoEncodeH264ReferenceInfoinstance 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
-
flags
public StdVideoEncodeH264ReferenceInfoFlags flags()
- Returns:
- a
StdVideoEncodeH264ReferenceInfoFlagsview of theflagsfield.
-
FrameNum
public int FrameNum()
- Returns:
- the value of the
FrameNumfield.
-
PicOrderCnt
public int PicOrderCnt()
- Returns:
- the value of the
PicOrderCntfield.
-
long_term_pic_num
public short long_term_pic_num()
- Returns:
- the value of the
long_term_pic_numfield.
-
long_term_frame_idx
public short long_term_frame_idx()
- Returns:
- the value of the
long_term_frame_idxfield.
-
flags
public StdVideoEncodeH264ReferenceInfo flags(StdVideoEncodeH264ReferenceInfoFlags value)
Copies the specifiedStdVideoEncodeH264ReferenceInfoFlagsto theflagsfield.
-
flags
public StdVideoEncodeH264ReferenceInfo flags(java.util.function.Consumer<StdVideoEncodeH264ReferenceInfoFlags> consumer)
Passes theflagsfield to the specifiedConsumer.
-
FrameNum
public StdVideoEncodeH264ReferenceInfo FrameNum(int value)
Sets the specified value to theFrameNumfield.
-
PicOrderCnt
public StdVideoEncodeH264ReferenceInfo PicOrderCnt(int value)
Sets the specified value to thePicOrderCntfield.
-
long_term_pic_num
public StdVideoEncodeH264ReferenceInfo long_term_pic_num(short value)
Sets the specified value to thelong_term_pic_numfield.
-
long_term_frame_idx
public StdVideoEncodeH264ReferenceInfo long_term_frame_idx(short value)
Sets the specified value to thelong_term_frame_idxfield.
-
set
public StdVideoEncodeH264ReferenceInfo set(StdVideoEncodeH264ReferenceInfoFlags flags, int FrameNum, int PicOrderCnt, short long_term_pic_num, short long_term_frame_idx)
Initializes this struct with the specified values.
-
set
public StdVideoEncodeH264ReferenceInfo set(StdVideoEncodeH264ReferenceInfo src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static StdVideoEncodeH264ReferenceInfo malloc()
Returns a newStdVideoEncodeH264ReferenceInfoinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static StdVideoEncodeH264ReferenceInfo calloc()
Returns a newStdVideoEncodeH264ReferenceInfoinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static StdVideoEncodeH264ReferenceInfo create()
Returns a newStdVideoEncodeH264ReferenceInfoinstance allocated withBufferUtils.
-
create
public static StdVideoEncodeH264ReferenceInfo create(long address)
Returns a newStdVideoEncodeH264ReferenceInfoinstance for the specified memory address.
-
createSafe
@Nullable public static StdVideoEncodeH264ReferenceInfo createSafe(long address)
-
malloc
public static StdVideoEncodeH264ReferenceInfo.Buffer malloc(int capacity)
Returns a newStdVideoEncodeH264ReferenceInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static StdVideoEncodeH264ReferenceInfo.Buffer calloc(int capacity)
Returns a newStdVideoEncodeH264ReferenceInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static StdVideoEncodeH264ReferenceInfo.Buffer create(int capacity)
Returns a newStdVideoEncodeH264ReferenceInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static StdVideoEncodeH264ReferenceInfo.Buffer create(long address, int capacity)
Create aStdVideoEncodeH264ReferenceInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static StdVideoEncodeH264ReferenceInfo.Buffer createSafe(long address, int capacity)
-
malloc
public static StdVideoEncodeH264ReferenceInfo malloc(org.lwjgl.system.MemoryStack stack)
Returns a newStdVideoEncodeH264ReferenceInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static StdVideoEncodeH264ReferenceInfo calloc(org.lwjgl.system.MemoryStack stack)
Returns a newStdVideoEncodeH264ReferenceInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static StdVideoEncodeH264ReferenceInfo.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newStdVideoEncodeH264ReferenceInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static StdVideoEncodeH264ReferenceInfo.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newStdVideoEncodeH264ReferenceInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nflags
public static StdVideoEncodeH264ReferenceInfoFlags nflags(long struct)
Unsafe version offlags().
-
nFrameNum
public static int nFrameNum(long struct)
Unsafe version ofFrameNum().
-
nPicOrderCnt
public static int nPicOrderCnt(long struct)
Unsafe version ofPicOrderCnt().
-
nlong_term_pic_num
public static short nlong_term_pic_num(long struct)
Unsafe version oflong_term_pic_num().
-
nlong_term_frame_idx
public static short nlong_term_frame_idx(long struct)
Unsafe version oflong_term_frame_idx().
-
nflags
public static void nflags(long struct, StdVideoEncodeH264ReferenceInfoFlags value)Unsafe version offlags.
-
nFrameNum
public static void nFrameNum(long struct, int value)Unsafe version ofFrameNum.
-
nPicOrderCnt
public static void nPicOrderCnt(long struct, int value)Unsafe version ofPicOrderCnt.
-
nlong_term_pic_num
public static void nlong_term_pic_num(long struct, short value)Unsafe version oflong_term_pic_num.
-
nlong_term_frame_idx
public static void nlong_term_frame_idx(long struct, short value)Unsafe version oflong_term_frame_idx.
-
-