Package org.lwjgl.vulkan
Class VkVideoEncodeH264VclFrameInfoEXT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkVideoEncodeH264VclFrameInfoEXT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkVideoEncodeH264VclFrameInfoEXT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifies H.264 encode frame parameters.Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_VIDEO_ENCODE_H264_VCL_FRAME_INFO_EXT- If
pReferenceFinalListsis notNULL,pReferenceFinalListsmust be a valid pointer to a validVkVideoEncodeH264ReferenceListsEXTstructure pNaluSliceEntriesmust be a valid pointer to an array ofnaluSliceEntryCountvalidVkVideoEncodeH264NaluSliceEXTstructurespCurrentPictureInfomust be a valid pointer to a validStdVideoEncodeH264PictureInfovaluenaluSliceEntryCountmust be greater than 0
See Also
VkVideoEncodeH264NaluSliceEXT,VkVideoEncodeH264ReferenceListsEXTLayout
struct VkVideoEncodeH264VclFrameInfoEXT { VkStructureTypesType(); void const *pNext();VkVideoEncodeH264ReferenceListsEXTconst *pReferenceFinalLists(); uint32_tnaluSliceEntryCount();VkVideoEncodeH264NaluSliceEXTconst *pNaluSliceEntries();StdVideoEncodeH264PictureInfoconst *pCurrentPictureInfo(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkVideoEncodeH264VclFrameInfoEXT.BufferAn array ofVkVideoEncodeH264VclFrameInfoEXTstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intNALUSLICEENTRYCOUNT
PCURRENTPICTUREINFO
PNALUSLICEENTRIES
PNEXT
PREFERENCEFINALLISTSThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkVideoEncodeH264VclFrameInfoEXT(java.nio.ByteBuffer container)Creates aVkVideoEncodeH264VclFrameInfoEXTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkVideoEncodeH264VclFrameInfoEXTcalloc()Returns a newVkVideoEncodeH264VclFrameInfoEXTinstance allocated withmemCalloc.static VkVideoEncodeH264VclFrameInfoEXT.Buffercalloc(int capacity)Returns a newVkVideoEncodeH264VclFrameInfoEXT.Bufferinstance allocated withmemCalloc.static VkVideoEncodeH264VclFrameInfoEXT.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkVideoEncodeH264VclFrameInfoEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkVideoEncodeH264VclFrameInfoEXTcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkVideoEncodeH264VclFrameInfoEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkVideoEncodeH264VclFrameInfoEXTcreate()Returns a newVkVideoEncodeH264VclFrameInfoEXTinstance allocated withBufferUtils.static VkVideoEncodeH264VclFrameInfoEXT.Buffercreate(int capacity)Returns a newVkVideoEncodeH264VclFrameInfoEXT.Bufferinstance allocated withBufferUtils.static VkVideoEncodeH264VclFrameInfoEXTcreate(long address)Returns a newVkVideoEncodeH264VclFrameInfoEXTinstance for the specified memory address.static VkVideoEncodeH264VclFrameInfoEXT.Buffercreate(long address, int capacity)Create aVkVideoEncodeH264VclFrameInfoEXT.Bufferinstance at the specified memory.static VkVideoEncodeH264VclFrameInfoEXTcreateSafe(long address)static VkVideoEncodeH264VclFrameInfoEXT.BuffercreateSafe(long address, int capacity)static VkVideoEncodeH264VclFrameInfoEXTmalloc()Returns a newVkVideoEncodeH264VclFrameInfoEXTinstance allocated withmemAlloc.static VkVideoEncodeH264VclFrameInfoEXT.Buffermalloc(int capacity)Returns a newVkVideoEncodeH264VclFrameInfoEXT.Bufferinstance allocated withmemAlloc.static VkVideoEncodeH264VclFrameInfoEXT.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkVideoEncodeH264VclFrameInfoEXT.Bufferinstance allocated on the specifiedMemoryStack.static VkVideoEncodeH264VclFrameInfoEXTmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkVideoEncodeH264VclFrameInfoEXTinstance allocated on the specifiedMemoryStack.intnaluSliceEntryCount()the number of slice NALUs in the frame.static intnnaluSliceEntryCount(long struct)Unsafe version ofnaluSliceEntryCount().static voidnnaluSliceEntryCount(long struct, int value)Sets the specified value to thenaluSliceEntryCountfield of the specifiedstruct.static StdVideoEncodeH264PictureInfonpCurrentPictureInfo(long struct)Unsafe version ofpCurrentPictureInfo().static voidnpCurrentPictureInfo(long struct, StdVideoEncodeH264PictureInfo value)Unsafe version ofpCurrentPictureInfo.static VkVideoEncodeH264NaluSliceEXT.BuffernpNaluSliceEntries(long struct)Unsafe version ofpNaluSliceEntries().static voidnpNaluSliceEntries(long struct, VkVideoEncodeH264NaluSliceEXT.Buffer value)Unsafe version ofpNaluSliceEntries.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static VkVideoEncodeH264ReferenceListsEXTnpReferenceFinalLists(long struct)Unsafe version ofpReferenceFinalLists().static voidnpReferenceFinalLists(long struct, VkVideoEncodeH264ReferenceListsEXT value)Unsafe version ofpReferenceFinalLists.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.StdVideoEncodeH264PictureInfopCurrentPictureInfo()a pointer to aStdVideoEncodeH264PictureInfostructure specifying the syntax and other codec-specific information from the H.264 specification associated with this picture.VkVideoEncodeH264VclFrameInfoEXTpCurrentPictureInfo(StdVideoEncodeH264PictureInfo value)Sets the address of the specifiedStdVideoEncodeH264PictureInfoto thepCurrentPictureInfo()field.VkVideoEncodeH264NaluSliceEXT.BufferpNaluSliceEntries()a pointer to an array ofnaluSliceEntryCountVkVideoEncodeH264NaluSliceEXTstructures specifying the division of the current picture into slices and the properties of these slices.VkVideoEncodeH264VclFrameInfoEXTpNaluSliceEntries(VkVideoEncodeH264NaluSliceEXT.Buffer value)Sets the address of the specifiedVkVideoEncodeH264NaluSliceEXT.Bufferto thepNaluSliceEntries()field.longpNext()NULLor a pointer to a structure extending this structure.VkVideoEncodeH264VclFrameInfoEXTpNext(long value)Sets the specified value to thepNext()field.VkVideoEncodeH264ReferenceListsEXTpReferenceFinalLists()NULLor a pointer to aVkVideoEncodeH264ReferenceListsEXTstructure specifying the reference lists to be used for the current picture.VkVideoEncodeH264VclFrameInfoEXTpReferenceFinalLists(VkVideoEncodeH264ReferenceListsEXT value)Sets the address of the specifiedVkVideoEncodeH264ReferenceListsEXTto thepReferenceFinalLists()field.VkVideoEncodeH264VclFrameInfoEXTset(int sType, long pNext, VkVideoEncodeH264ReferenceListsEXT pReferenceFinalLists, VkVideoEncodeH264NaluSliceEXT.Buffer pNaluSliceEntries, StdVideoEncodeH264PictureInfo pCurrentPictureInfo)Initializes this struct with the specified values.VkVideoEncodeH264VclFrameInfoEXTset(VkVideoEncodeH264VclFrameInfoEXT src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkVideoEncodeH264VclFrameInfoEXTsType(int value)Sets the specified value to thesType()field.VkVideoEncodeH264VclFrameInfoEXTsType$Default()Sets theSTRUCTURE_TYPE_VIDEO_ENCODE_H264_VCL_FRAME_INFO_EXTvalue to thesType()field.static voidvalidate(long struct)Validates pointer members that should not beNULL.
-
-
-
Constructor Detail
-
VkVideoEncodeH264VclFrameInfoEXT
public VkVideoEncodeH264VclFrameInfoEXT(java.nio.ByteBuffer container)
Creates aVkVideoEncodeH264VclFrameInfoEXTinstance 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
-
sType
public int sType()
the type of this structure.
-
pNext
public long pNext()
NULLor a pointer to a structure extending this structure.
-
pReferenceFinalLists
@Nullable public VkVideoEncodeH264ReferenceListsEXT pReferenceFinalLists()
NULLor a pointer to aVkVideoEncodeH264ReferenceListsEXTstructure specifying the reference lists to be used for the current picture.
-
naluSliceEntryCount
public int naluSliceEntryCount()
the number of slice NALUs in the frame.
-
pNaluSliceEntries
public VkVideoEncodeH264NaluSliceEXT.Buffer pNaluSliceEntries()
a pointer to an array ofnaluSliceEntryCountVkVideoEncodeH264NaluSliceEXTstructures specifying the division of the current picture into slices and the properties of these slices. This is an ordered sequence; the NALUs are generated consecutively inVkVideoEncodeInfoKHR::dstBitstreamBufferin the same order as in this array.
-
pCurrentPictureInfo
public StdVideoEncodeH264PictureInfo pCurrentPictureInfo()
a pointer to aStdVideoEncodeH264PictureInfostructure specifying the syntax and other codec-specific information from the H.264 specification associated with this picture. The information provided must reflect the decoded picture marking operations that are applicable to this frame.
-
sType
public VkVideoEncodeH264VclFrameInfoEXT sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkVideoEncodeH264VclFrameInfoEXT sType$Default()
Sets theSTRUCTURE_TYPE_VIDEO_ENCODE_H264_VCL_FRAME_INFO_EXTvalue to thesType()field.
-
pNext
public VkVideoEncodeH264VclFrameInfoEXT pNext(long value)
Sets the specified value to thepNext()field.
-
pReferenceFinalLists
public VkVideoEncodeH264VclFrameInfoEXT pReferenceFinalLists(@Nullable VkVideoEncodeH264ReferenceListsEXT value)
Sets the address of the specifiedVkVideoEncodeH264ReferenceListsEXTto thepReferenceFinalLists()field.
-
pNaluSliceEntries
public VkVideoEncodeH264VclFrameInfoEXT pNaluSliceEntries(VkVideoEncodeH264NaluSliceEXT.Buffer value)
Sets the address of the specifiedVkVideoEncodeH264NaluSliceEXT.Bufferto thepNaluSliceEntries()field.
-
pCurrentPictureInfo
public VkVideoEncodeH264VclFrameInfoEXT pCurrentPictureInfo(StdVideoEncodeH264PictureInfo value)
Sets the address of the specifiedStdVideoEncodeH264PictureInfoto thepCurrentPictureInfo()field.
-
set
public VkVideoEncodeH264VclFrameInfoEXT set(int sType, long pNext, @Nullable VkVideoEncodeH264ReferenceListsEXT pReferenceFinalLists, VkVideoEncodeH264NaluSliceEXT.Buffer pNaluSliceEntries, StdVideoEncodeH264PictureInfo pCurrentPictureInfo)
Initializes this struct with the specified values.
-
set
public VkVideoEncodeH264VclFrameInfoEXT set(VkVideoEncodeH264VclFrameInfoEXT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkVideoEncodeH264VclFrameInfoEXT malloc()
Returns a newVkVideoEncodeH264VclFrameInfoEXTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkVideoEncodeH264VclFrameInfoEXT calloc()
Returns a newVkVideoEncodeH264VclFrameInfoEXTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkVideoEncodeH264VclFrameInfoEXT create()
Returns a newVkVideoEncodeH264VclFrameInfoEXTinstance allocated withBufferUtils.
-
create
public static VkVideoEncodeH264VclFrameInfoEXT create(long address)
Returns a newVkVideoEncodeH264VclFrameInfoEXTinstance for the specified memory address.
-
createSafe
@Nullable public static VkVideoEncodeH264VclFrameInfoEXT createSafe(long address)
-
malloc
public static VkVideoEncodeH264VclFrameInfoEXT.Buffer malloc(int capacity)
Returns a newVkVideoEncodeH264VclFrameInfoEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkVideoEncodeH264VclFrameInfoEXT.Buffer calloc(int capacity)
Returns a newVkVideoEncodeH264VclFrameInfoEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkVideoEncodeH264VclFrameInfoEXT.Buffer create(int capacity)
Returns a newVkVideoEncodeH264VclFrameInfoEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkVideoEncodeH264VclFrameInfoEXT.Buffer create(long address, int capacity)
Create aVkVideoEncodeH264VclFrameInfoEXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkVideoEncodeH264VclFrameInfoEXT.Buffer createSafe(long address, int capacity)
-
malloc
public static VkVideoEncodeH264VclFrameInfoEXT malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkVideoEncodeH264VclFrameInfoEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkVideoEncodeH264VclFrameInfoEXT calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkVideoEncodeH264VclFrameInfoEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkVideoEncodeH264VclFrameInfoEXT.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkVideoEncodeH264VclFrameInfoEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkVideoEncodeH264VclFrameInfoEXT.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkVideoEncodeH264VclFrameInfoEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nsType
public static int nsType(long struct)
Unsafe version ofsType().
-
npNext
public static long npNext(long struct)
Unsafe version ofpNext().
-
npReferenceFinalLists
@Nullable public static VkVideoEncodeH264ReferenceListsEXT npReferenceFinalLists(long struct)
Unsafe version ofpReferenceFinalLists().
-
nnaluSliceEntryCount
public static int nnaluSliceEntryCount(long struct)
Unsafe version ofnaluSliceEntryCount().
-
npNaluSliceEntries
public static VkVideoEncodeH264NaluSliceEXT.Buffer npNaluSliceEntries(long struct)
Unsafe version ofpNaluSliceEntries().
-
npCurrentPictureInfo
public static StdVideoEncodeH264PictureInfo npCurrentPictureInfo(long struct)
Unsafe version ofpCurrentPictureInfo().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
npReferenceFinalLists
public static void npReferenceFinalLists(long struct, @Nullable VkVideoEncodeH264ReferenceListsEXT value)Unsafe version ofpReferenceFinalLists.
-
nnaluSliceEntryCount
public static void nnaluSliceEntryCount(long struct, int value)Sets the specified value to thenaluSliceEntryCountfield of the specifiedstruct.
-
npNaluSliceEntries
public static void npNaluSliceEntries(long struct, VkVideoEncodeH264NaluSliceEXT.Buffer value)Unsafe version ofpNaluSliceEntries.
-
npCurrentPictureInfo
public static void npCurrentPictureInfo(long struct, StdVideoEncodeH264PictureInfo value)Unsafe version ofpCurrentPictureInfo.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
-