Package org.lwjgl.vulkan
Class VkVideoEncodeH264PictureInfoEXT
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VkVideoEncodeH264PictureInfoEXT>
org.lwjgl.vulkan.VkVideoEncodeH264PictureInfoEXT
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkVideoEncodeH264PictureInfoEXT
extends org.lwjgl.system.Struct<VkVideoEncodeH264PictureInfoEXT>
implements org.lwjgl.system.NativeResource
Structure specifies H.264 encode frame parameters.
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_VIDEO_ENCODE_H264_PICTURE_INFO_EXTpNaluSliceEntriesmust be a valid pointer to an array ofnaluSliceEntryCountvalidVkVideoEncodeH264NaluSliceInfoEXTstructurespStdPictureInfomust be a valid pointer to a validStdVideoEncodeH264PictureInfovaluenaluSliceEntryCountmust be greater than 0
See Also
VkVideoEncodeH264NaluSliceInfoEXT
Layout
struct VkVideoEncodeH264PictureInfoEXT {
VkStructureType sType();
void const * pNext();
uint32_t naluSliceEntryCount();
VkVideoEncodeH264NaluSliceInfoEXT const * pNaluSliceEntries();
StdVideoEncodeH264PictureInfo const * pStdPictureInfo();
VkBool32 generatePrefixNalu();
}-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAn array ofVkVideoEncodeH264PictureInfoEXTstructs.Nested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.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 size in bytes.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionVkVideoEncodeH264PictureInfoEXT(ByteBuffer container) Creates aVkVideoEncodeH264PictureInfoEXTinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptioncalloc()Returns a newVkVideoEncodeH264PictureInfoEXTinstance allocated withmemCalloc.calloc(int capacity) Returns a newVkVideoEncodeH264PictureInfoEXT.Bufferinstance allocated withmemCalloc.calloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVkVideoEncodeH264PictureInfoEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.calloc(org.lwjgl.system.MemoryStack stack) Returns a newVkVideoEncodeH264PictureInfoEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.create()Returns a newVkVideoEncodeH264PictureInfoEXTinstance allocated withBufferUtils.create(int capacity) Returns a newVkVideoEncodeH264PictureInfoEXT.Bufferinstance allocated withBufferUtils.create(long address) Returns a newVkVideoEncodeH264PictureInfoEXTinstance for the specified memory address.create(long address, int capacity) Create aVkVideoEncodeH264PictureInfoEXT.Bufferinstance at the specified memory.createSafe(long address) createSafe(long address, int capacity) booleancontrols whether prefix NALUs are generated before slice NALUs into the target bitstream.generatePrefixNalu(boolean value) Sets the specified value to thegeneratePrefixNalu()field.malloc()Returns a newVkVideoEncodeH264PictureInfoEXTinstance allocated withmemAlloc.malloc(int capacity) Returns a newVkVideoEncodeH264PictureInfoEXT.Bufferinstance allocated withmemAlloc.malloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVkVideoEncodeH264PictureInfoEXT.Bufferinstance allocated on the specifiedMemoryStack.malloc(org.lwjgl.system.MemoryStack stack) Returns a newVkVideoEncodeH264PictureInfoEXTinstance allocated on the specifiedMemoryStack.intthe number of slice NALUs in the frame.static intngeneratePrefixNalu(long struct) Unsafe version ofgeneratePrefixNalu().static voidngeneratePrefixNalu(long struct, int value) Unsafe version ofgeneratePrefixNalu.static intnnaluSliceEntryCount(long struct) Unsafe version ofnaluSliceEntryCount().static voidnnaluSliceEntryCount(long struct, int value) Sets the specified value to thenaluSliceEntryCountfield of the specifiedstruct.npNaluSliceEntries(long struct) Unsafe version ofpNaluSliceEntries().static voidnpNaluSliceEntries(long struct, VkVideoEncodeH264NaluSliceInfoEXT.Buffer value) Unsafe version ofpNaluSliceEntries.static longnpNext(long struct) Unsafe version ofpNext().static voidnpNext(long struct, long value) Unsafe version ofpNext.npStdPictureInfo(long struct) Unsafe version ofpStdPictureInfo().static voidnpStdPictureInfo(long struct, StdVideoEncodeH264PictureInfo value) Unsafe version ofpStdPictureInfo.static intnsType(long struct) Unsafe version ofsType().static voidnsType(long struct, int value) Unsafe version ofsType.a pointer to an array ofnaluSliceEntryCountVkVideoEncodeH264NaluSliceInfoEXTstructures specifying the division of the current picture into slices and the properties of these slices.Sets the address of the specifiedVkVideoEncodeH264NaluSliceInfoEXT.Bufferto thepNaluSliceEntries()field.longpNext()NULLor a pointer to a structure extending this structure.pNext(long value) Sets the specified value to thepNext()field.a pointer to aStdVideoEncodeH264PictureInfostructure specifying the syntax and other codec-specific information from the H.264 specification associated with this picture.Sets the address of the specifiedStdVideoEncodeH264PictureInfoto thepStdPictureInfo()field.set(int sType, long pNext, VkVideoEncodeH264NaluSliceInfoEXT.Buffer pNaluSliceEntries, StdVideoEncodeH264PictureInfo pStdPictureInfo, boolean generatePrefixNalu) Initializes this struct with the specified values.Copies the specified struct data to this struct.intsizeof()intsType()aVkStructureTypevalue identifying this structure.sType(int value) Sets the specified value to thesType()field.Sets theSTRUCTURE_TYPE_VIDEO_ENCODE_H264_PICTURE_INFO_EXTvalue to thesType()field.static voidvalidate(long struct) Validates pointer members that should not beNULL.Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validateMethods 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. -
STYPE
public static final int STYPEThe struct member offsets. -
PNEXT
public static final int PNEXTThe struct member offsets. -
NALUSLICEENTRYCOUNT
public static final int NALUSLICEENTRYCOUNTThe struct member offsets. -
PNALUSLICEENTRIES
public static final int PNALUSLICEENTRIESThe struct member offsets. -
PSTDPICTUREINFO
public static final int PSTDPICTUREINFOThe struct member offsets. -
GENERATEPREFIXNALU
public static final int GENERATEPREFIXNALUThe struct member offsets.
-
-
Constructor Details
-
VkVideoEncodeH264PictureInfoEXT
Creates aVkVideoEncodeH264PictureInfoEXTinstance 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()- Specified by:
sizeofin classorg.lwjgl.system.Struct<VkVideoEncodeH264PictureInfoEXT>
-
sType
public int sType()aVkStructureTypevalue identifying this structure. -
pNext
public long pNext()NULLor a pointer to a structure extending this structure. -
naluSliceEntryCount
public int naluSliceEntryCount()the number of slice NALUs in the frame. -
pNaluSliceEntries
a pointer to an array ofnaluSliceEntryCountVkVideoEncodeH264NaluSliceInfoEXTstructures 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::dstBufferin the same order as in this array. -
pStdPictureInfo
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. -
generatePrefixNalu
public boolean generatePrefixNalu()controls whether prefix NALUs are generated before slice NALUs into the target bitstream. -
sType
Sets the specified value to thesType()field. -
sType$Default
Sets theSTRUCTURE_TYPE_VIDEO_ENCODE_H264_PICTURE_INFO_EXTvalue to thesType()field. -
pNext
Sets the specified value to thepNext()field. -
pNaluSliceEntries
public VkVideoEncodeH264PictureInfoEXT pNaluSliceEntries(VkVideoEncodeH264NaluSliceInfoEXT.Buffer value) Sets the address of the specifiedVkVideoEncodeH264NaluSliceInfoEXT.Bufferto thepNaluSliceEntries()field. -
pStdPictureInfo
Sets the address of the specifiedStdVideoEncodeH264PictureInfoto thepStdPictureInfo()field. -
generatePrefixNalu
Sets the specified value to thegeneratePrefixNalu()field. -
set
public VkVideoEncodeH264PictureInfoEXT set(int sType, long pNext, VkVideoEncodeH264NaluSliceInfoEXT.Buffer pNaluSliceEntries, StdVideoEncodeH264PictureInfo pStdPictureInfo, boolean generatePrefixNalu) 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 newVkVideoEncodeH264PictureInfoEXTinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkVideoEncodeH264PictureInfoEXTinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkVideoEncodeH264PictureInfoEXTinstance allocated withBufferUtils. -
create
Returns a newVkVideoEncodeH264PictureInfoEXTinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkVideoEncodeH264PictureInfoEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkVideoEncodeH264PictureInfoEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkVideoEncodeH264PictureInfoEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVkVideoEncodeH264PictureInfoEXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkVideoEncodeH264PictureInfoEXT.Buffer createSafe(long address, int capacity) -
malloc
Returns a newVkVideoEncodeH264PictureInfoEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkVideoEncodeH264PictureInfoEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkVideoEncodeH264PictureInfoEXT.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVkVideoEncodeH264PictureInfoEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
public static VkVideoEncodeH264PictureInfoEXT.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVkVideoEncodeH264PictureInfoEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nsType
public static int nsType(long struct) Unsafe version ofsType(). -
npNext
public static long npNext(long struct) Unsafe version ofpNext(). -
nnaluSliceEntryCount
public static int nnaluSliceEntryCount(long struct) Unsafe version ofnaluSliceEntryCount(). -
npNaluSliceEntries
Unsafe version ofpNaluSliceEntries(). -
npStdPictureInfo
Unsafe version ofpStdPictureInfo(). -
ngeneratePrefixNalu
public static int ngeneratePrefixNalu(long struct) Unsafe version ofgeneratePrefixNalu(). -
nsType
public static void nsType(long struct, int value) Unsafe version ofsType. -
npNext
public static void npNext(long struct, long value) Unsafe version ofpNext. -
nnaluSliceEntryCount
public static void nnaluSliceEntryCount(long struct, int value) Sets the specified value to thenaluSliceEntryCountfield of the specifiedstruct. -
npNaluSliceEntries
Unsafe version ofpNaluSliceEntries. -
npStdPictureInfo
Unsafe version ofpStdPictureInfo. -
ngeneratePrefixNalu
public static void ngeneratePrefixNalu(long struct, int value) Unsafe version ofgeneratePrefixNalu. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-