Package org.lwjgl.vulkan
Class VkVideoEncodeH264SessionParametersAddInfoEXT
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VkVideoEncodeH264SessionParametersAddInfoEXT>
org.lwjgl.vulkan.VkVideoEncodeH264SessionParametersAddInfoEXT
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkVideoEncodeH264SessionParametersAddInfoEXT
extends org.lwjgl.system.Struct<VkVideoEncodeH264SessionParametersAddInfoEXT>
implements org.lwjgl.system.NativeResource
Structure specifies H.264 encoder parameter set information.
Valid Usage
- The values of
stdSPSCountandstdPPSCountmust be less than or equal to the values ofmaxStdSPSCountandmaxStdPPSCount, respectively - When the
maxStdSPSCountnumber of parameters of type StdVideoH264SequenceParameterSet in the Video Session Parameters object is reached, no additional parameters of that type can be added to the object.ERROR_TOO_MANY_OBJECTSwill be returned if an attempt is made to add additional data to this object at this point - When the
maxStdPPSCountnumber of parameters of type StdVideoH264PictureParameterSet in the Video Session Parameters object is reached, no additional parameters of that type can be added to the object.ERROR_TOO_MANY_OBJECTSwill be returned if an attempt is made to add additional data to this object at this point - Each entry to be added must have a unique, to the rest of the parameter array entries and the existing parameters in the Video Session Parameters Object that is being updated, SPS-PPS IDs
- Parameter entries that already exist in Video Session Parameters object with a particular SPS-PPS IDs cannot be replaced nor updated
- When creating a new object using a Video Session Parameters as a template, the array’s parameters with the same SPS-PPS IDs as the ones from the template take precedence
- SPS/PPS parameters must comply with the limits specified in
VkVideoSessionCreateInfoKHRduring Video Session creation
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_VIDEO_ENCODE_H264_SESSION_PARAMETERS_ADD_INFO_EXT- If
stdSPSCountis not 0, andpStdSPSsis notNULL,pStdSPSsmust be a valid pointer to an array ofstdSPSCountStdVideoH264SequenceParameterSetvalues - If
stdPPSCountis not 0, andpStdPPSsis notNULL,pStdPPSsmust be a valid pointer to an array ofstdPPSCountStdVideoH264PictureParameterSetvalues
See Also
VkVideoEncodeH264SessionParametersCreateInfoEXT
Layout
struct VkVideoEncodeH264SessionParametersAddInfoEXT {
VkStructureType sType();
void const * pNext();
uint32_t stdSPSCount();
StdVideoH264SequenceParameterSet const * pStdSPSs();
uint32_t stdPPSCount();
StdVideoH264PictureParameterSet const * pStdPPSs();
}-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAn array ofVkVideoEncodeH264SessionParametersAddInfoEXTstructs.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 size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.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
ConstructorsConstructorDescriptionCreates aVkVideoEncodeH264SessionParametersAddInfoEXTinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptioncalloc()Returns a newVkVideoEncodeH264SessionParametersAddInfoEXTinstance allocated withmemCalloc.calloc(int capacity) Returns a newVkVideoEncodeH264SessionParametersAddInfoEXT.Bufferinstance allocated withmemCalloc.calloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVkVideoEncodeH264SessionParametersAddInfoEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.calloc(org.lwjgl.system.MemoryStack stack) Returns a newVkVideoEncodeH264SessionParametersAddInfoEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.create()Returns a newVkVideoEncodeH264SessionParametersAddInfoEXTinstance allocated withBufferUtils.create(int capacity) Returns a newVkVideoEncodeH264SessionParametersAddInfoEXT.Bufferinstance allocated withBufferUtils.create(long address) Returns a newVkVideoEncodeH264SessionParametersAddInfoEXTinstance for the specified memory address.create(long address, int capacity) Create aVkVideoEncodeH264SessionParametersAddInfoEXT.Bufferinstance at the specified memory.createSafe(long address) createSafe(long address, int capacity) malloc()Returns a newVkVideoEncodeH264SessionParametersAddInfoEXTinstance allocated withmemAlloc.malloc(int capacity) Returns a newVkVideoEncodeH264SessionParametersAddInfoEXT.Bufferinstance allocated withmemAlloc.malloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVkVideoEncodeH264SessionParametersAddInfoEXT.Bufferinstance allocated on the specifiedMemoryStack.malloc(org.lwjgl.system.MemoryStack stack) Returns a newVkVideoEncodeH264SessionParametersAddInfoEXTinstance allocated on the specifiedMemoryStack.static longnpNext(long struct) Unsafe version ofpNext().static voidnpNext(long struct, long value) Unsafe version ofpNext.npStdPPSs(long struct) Unsafe version ofpStdPPSs().static voidnpStdPPSs(long struct, StdVideoH264PictureParameterSet.Buffer value) Unsafe version ofpStdPPSs.npStdSPSs(long struct) Unsafe version ofpStdSPSs().static voidnpStdSPSs(long struct, StdVideoH264SequenceParameterSet.Buffer value) Unsafe version ofpStdSPSs.static intnstdPPSCount(long struct) Unsafe version ofstdPPSCount().static voidnstdPPSCount(long struct, int value) Sets the specified value to thestdPPSCountfield of the specifiedstruct.static intnstdSPSCount(long struct) Unsafe version ofstdSPSCount().static voidnstdSPSCount(long struct, int value) Sets the specified value to thestdSPSCountfield of the specifiedstruct.static intnsType(long struct) Unsafe version ofsType().static voidnsType(long struct, int value) Unsafe version ofsType.longpNext()NULLor a pointer to a structure extending this structure.pNext(long value) Sets the specified value to thepNext()field.pStdPPSs()a pointer to an array ofStdVideoH264PictureParameterSetstructures representing H.264 picture parameter sets.Sets the address of the specifiedStdVideoH264PictureParameterSet.Bufferto thepStdPPSs()field.pStdSPSs()a pointer to an array ofStdVideoH264SequenceParameterSetstructures representing H.264 sequence parameter sets.Sets the address of the specifiedStdVideoH264SequenceParameterSet.Bufferto thepStdSPSs()field.set(int sType, long pNext, int stdSPSCount, StdVideoH264SequenceParameterSet.Buffer pStdSPSs, int stdPPSCount, StdVideoH264PictureParameterSet.Buffer pStdPPSs) Initializes this struct with the specified values.Copies the specified struct data to this struct.intsizeof()intthe number of PPS provided inpStdPPSs.stdPPSCount(int value) Sets the specified value to thestdPPSCount()field.intthe number of SPS elements in thepStdSPSs.stdSPSCount(int value) Sets the specified value to thestdSPSCount()field.intsType()aVkStructureTypevalue identifying this structure.sType(int value) Sets the specified value to thesType()field.Sets theSTRUCTURE_TYPE_VIDEO_ENCODE_H264_SESSION_PARAMETERS_ADD_INFO_EXTvalue to thesType()field.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. -
STDSPSCOUNT
public static final int STDSPSCOUNTThe struct member offsets. -
PSTDSPSS
public static final int PSTDSPSSThe struct member offsets. -
STDPPSCOUNT
public static final int STDPPSCOUNTThe struct member offsets. -
PSTDPPSS
public static final int PSTDPPSSThe struct member offsets.
-
-
Constructor Details
-
VkVideoEncodeH264SessionParametersAddInfoEXT
Creates aVkVideoEncodeH264SessionParametersAddInfoEXTinstance 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<VkVideoEncodeH264SessionParametersAddInfoEXT>
-
sType
public int sType()aVkStructureTypevalue identifying this structure. -
pNext
public long pNext()NULLor a pointer to a structure extending this structure. -
stdSPSCount
public int stdSPSCount()the number of SPS elements in thepStdSPSs. Its value must be less than or equal to the value ofmaxStdSPSCount. -
pStdSPSs
a pointer to an array ofStdVideoH264SequenceParameterSetstructures representing H.264 sequence parameter sets. Each element of the array must have a unique H.264 SPS ID. -
stdPPSCount
public int stdPPSCount()the number of PPS provided inpStdPPSs. Its value must be less than or equal to the value ofmaxStdPPSCount. -
pStdPPSs
a pointer to an array ofStdVideoH264PictureParameterSetstructures representing H.264 picture parameter sets. Each element of the array must have a unique H.264 SPS-PPS ID pair. -
sType
Sets the specified value to thesType()field. -
sType$Default
Sets theSTRUCTURE_TYPE_VIDEO_ENCODE_H264_SESSION_PARAMETERS_ADD_INFO_EXTvalue to thesType()field. -
pNext
Sets the specified value to thepNext()field. -
stdSPSCount
Sets the specified value to thestdSPSCount()field. -
pStdSPSs
public VkVideoEncodeH264SessionParametersAddInfoEXT pStdSPSs(@Nullable StdVideoH264SequenceParameterSet.Buffer value) Sets the address of the specifiedStdVideoH264SequenceParameterSet.Bufferto thepStdSPSs()field. -
stdPPSCount
Sets the specified value to thestdPPSCount()field. -
pStdPPSs
public VkVideoEncodeH264SessionParametersAddInfoEXT pStdPPSs(@Nullable StdVideoH264PictureParameterSet.Buffer value) Sets the address of the specifiedStdVideoH264PictureParameterSet.Bufferto thepStdPPSs()field. -
set
public VkVideoEncodeH264SessionParametersAddInfoEXT set(int sType, long pNext, int stdSPSCount, @Nullable StdVideoH264SequenceParameterSet.Buffer pStdSPSs, int stdPPSCount, @Nullable StdVideoH264PictureParameterSet.Buffer pStdPPSs) Initializes this struct with the specified values. -
set
public VkVideoEncodeH264SessionParametersAddInfoEXT set(VkVideoEncodeH264SessionParametersAddInfoEXT src) Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newVkVideoEncodeH264SessionParametersAddInfoEXTinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkVideoEncodeH264SessionParametersAddInfoEXTinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkVideoEncodeH264SessionParametersAddInfoEXTinstance allocated withBufferUtils. -
create
Returns a newVkVideoEncodeH264SessionParametersAddInfoEXTinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkVideoEncodeH264SessionParametersAddInfoEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkVideoEncodeH264SessionParametersAddInfoEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkVideoEncodeH264SessionParametersAddInfoEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkVideoEncodeH264SessionParametersAddInfoEXT.Buffer create(long address, int capacity) Create aVkVideoEncodeH264SessionParametersAddInfoEXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkVideoEncodeH264SessionParametersAddInfoEXT.Buffer createSafe(long address, int capacity) -
malloc
public static VkVideoEncodeH264SessionParametersAddInfoEXT malloc(org.lwjgl.system.MemoryStack stack) Returns a newVkVideoEncodeH264SessionParametersAddInfoEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkVideoEncodeH264SessionParametersAddInfoEXT calloc(org.lwjgl.system.MemoryStack stack) Returns a newVkVideoEncodeH264SessionParametersAddInfoEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkVideoEncodeH264SessionParametersAddInfoEXT.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVkVideoEncodeH264SessionParametersAddInfoEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
public static VkVideoEncodeH264SessionParametersAddInfoEXT.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVkVideoEncodeH264SessionParametersAddInfoEXT.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(). -
nstdSPSCount
public static int nstdSPSCount(long struct) Unsafe version ofstdSPSCount(). -
npStdSPSs
Unsafe version ofpStdSPSs(). -
nstdPPSCount
public static int nstdPPSCount(long struct) Unsafe version ofstdPPSCount(). -
npStdPPSs
Unsafe version ofpStdPPSs(). -
nsType
public static void nsType(long struct, int value) Unsafe version ofsType. -
npNext
public static void npNext(long struct, long value) Unsafe version ofpNext. -
nstdSPSCount
public static void nstdSPSCount(long struct, int value) Sets the specified value to thestdSPSCountfield of the specifiedstruct. -
npStdSPSs
Unsafe version ofpStdSPSs. -
nstdPPSCount
public static void nstdPPSCount(long struct, int value) Sets the specified value to thestdPPSCountfield of the specifiedstruct. -
npStdPPSs
Unsafe version ofpStdPPSs.
-