Package org.lwjgl.vulkan
Class VkVideoEncodeH265SessionParametersAddInfoEXT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkVideoEncodeH265SessionParametersAddInfoEXT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkVideoEncodeH265SessionParametersAddInfoEXT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifies H.265 encoder parameter set info.Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_VIDEO_ENCODE_H265_SESSION_PARAMETERS_ADD_INFO_EXT- If
pVpsStdis notNULL,pVpsStdmust be a valid pointer to an array ofvpsStdCountStdVideoH265VideoParameterSetvalues - If
pSpsStdis notNULL,pSpsStdmust be a valid pointer to an array ofspsStdCountStdVideoH265SequenceParameterSetvalues - If
pPpsStdis notNULL,pPpsStdmust be a valid pointer to an array ofppsStdCountStdVideoH265PictureParameterSetvalues vpsStdCountmust be greater than 0spsStdCountmust be greater than 0ppsStdCountmust be greater than 0
Valid Usage
- The values of
vpsStdCount,spsStdCountandppsStdCountmust be less than or equal to the values ofVkVideoEncodeH265SessionParametersCreateInfoEXT::maxVpsStdCount,VkVideoEncodeH265SessionParametersCreateInfoEXT:maxSpsStdCount, andVkVideoEncodeH265SessionParametersCreateInfoEXT:maxPpsStdCount, respectively - Each
StdVideoH265VideoParameterSetentry inpVpsStdmust have a unique H.265 VPS ID - Each
StdVideoH265SequenceParameterSetentry inpSpsStdmust have a unique H.265 VPS-SPS ID pair - Each
StdVideoH265PictureParameterSetentry inpPpsStdmust have a unique H.265 VPS-SPS-PPS ID tuple - 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, VPS-SPS-PPS IDs
- Parameter entries that already exist in Video Session Parameters object with a particular VPS-SPS-PPS IDs must not be replaced nor updated
- When creating a new object using a Video Session Parameters as a template, the array’s parameters with the same VPS-SPS-PPS IDs as the ones from the template take precedence
- VPS/SPS/PPS parameters must comply with the limits specified in
VkVideoSessionCreateInfoKHRduring Video Session creation
See Also
VkVideoEncodeH265SessionParametersCreateInfoEXTLayout
struct VkVideoEncodeH265SessionParametersAddInfoEXT { VkStructureTypesType(); void const *pNext(); uint32_tvpsStdCount();StdVideoH265VideoParameterSetconst *pVpsStd(); uint32_tspsStdCount();StdVideoH265SequenceParameterSetconst *pSpsStd(); uint32_tppsStdCount();StdVideoH265PictureParameterSetconst *pPpsStd(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkVideoEncodeH265SessionParametersAddInfoEXT.BufferAn array ofVkVideoEncodeH265SessionParametersAddInfoEXTstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intPNEXT
PPPSSTD
PPSSTDCOUNT
PSPSSTD
PVPSSTDThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSPSSTDCOUNT
STYPE
VPSSTDCOUNTThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkVideoEncodeH265SessionParametersAddInfoEXT(java.nio.ByteBuffer container)Creates aVkVideoEncodeH265SessionParametersAddInfoEXTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkVideoEncodeH265SessionParametersAddInfoEXTcalloc()Returns a newVkVideoEncodeH265SessionParametersAddInfoEXTinstance allocated withmemCalloc.static VkVideoEncodeH265SessionParametersAddInfoEXT.Buffercalloc(int capacity)Returns a newVkVideoEncodeH265SessionParametersAddInfoEXT.Bufferinstance allocated withmemCalloc.static VkVideoEncodeH265SessionParametersAddInfoEXT.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkVideoEncodeH265SessionParametersAddInfoEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkVideoEncodeH265SessionParametersAddInfoEXTcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkVideoEncodeH265SessionParametersAddInfoEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkVideoEncodeH265SessionParametersAddInfoEXTcreate()Returns a newVkVideoEncodeH265SessionParametersAddInfoEXTinstance allocated withBufferUtils.static VkVideoEncodeH265SessionParametersAddInfoEXT.Buffercreate(int capacity)Returns a newVkVideoEncodeH265SessionParametersAddInfoEXT.Bufferinstance allocated withBufferUtils.static VkVideoEncodeH265SessionParametersAddInfoEXTcreate(long address)Returns a newVkVideoEncodeH265SessionParametersAddInfoEXTinstance for the specified memory address.static VkVideoEncodeH265SessionParametersAddInfoEXT.Buffercreate(long address, int capacity)Create aVkVideoEncodeH265SessionParametersAddInfoEXT.Bufferinstance at the specified memory.static VkVideoEncodeH265SessionParametersAddInfoEXTcreateSafe(long address)static VkVideoEncodeH265SessionParametersAddInfoEXT.BuffercreateSafe(long address, int capacity)static VkVideoEncodeH265SessionParametersAddInfoEXTmalloc()Returns a newVkVideoEncodeH265SessionParametersAddInfoEXTinstance allocated withmemAlloc.static VkVideoEncodeH265SessionParametersAddInfoEXT.Buffermalloc(int capacity)Returns a newVkVideoEncodeH265SessionParametersAddInfoEXT.Bufferinstance allocated withmemAlloc.static VkVideoEncodeH265SessionParametersAddInfoEXT.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkVideoEncodeH265SessionParametersAddInfoEXT.Bufferinstance allocated on the specifiedMemoryStack.static VkVideoEncodeH265SessionParametersAddInfoEXTmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkVideoEncodeH265SessionParametersAddInfoEXTinstance allocated on the specifiedMemoryStack.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static StdVideoH265PictureParameterSet.BuffernpPpsStd(long struct)Unsafe version ofpPpsStd().static voidnpPpsStd(long struct, StdVideoH265PictureParameterSet.Buffer value)Unsafe version ofpPpsStd.static intnppsStdCount(long struct)Unsafe version ofppsStdCount().static voidnppsStdCount(long struct, int value)Sets the specified value to theppsStdCountfield of the specifiedstruct.static StdVideoH265SequenceParameterSet.BuffernpSpsStd(long struct)Unsafe version ofpSpsStd().static voidnpSpsStd(long struct, StdVideoH265SequenceParameterSet.Buffer value)Unsafe version ofpSpsStd.static StdVideoH265VideoParameterSet.BuffernpVpsStd(long struct)Unsafe version ofpVpsStd().static voidnpVpsStd(long struct, StdVideoH265VideoParameterSet.Buffer value)Unsafe version ofpVpsStd.static intnspsStdCount(long struct)Unsafe version ofspsStdCount().static voidnspsStdCount(long struct, int value)Sets the specified value to thespsStdCountfield of the specifiedstruct.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.static intnvpsStdCount(long struct)Unsafe version ofvpsStdCount().static voidnvpsStdCount(long struct, int value)Sets the specified value to thevpsStdCountfield of the specifiedstruct.longpNext()NULLor a pointer to a structure extending this structure.VkVideoEncodeH265SessionParametersAddInfoEXTpNext(long value)Sets the specified value to thepNext()field.StdVideoH265PictureParameterSet.BufferpPpsStd()a pointer to an array ofppsStdCountStdVideoH265PictureParameterSetstructures representing H.265 picture parameter sets.VkVideoEncodeH265SessionParametersAddInfoEXTpPpsStd(StdVideoH265PictureParameterSet.Buffer value)Sets the address of the specifiedStdVideoH265PictureParameterSet.Bufferto thepPpsStd()field.intppsStdCount()the number of PPS elements inpPpsStd.VkVideoEncodeH265SessionParametersAddInfoEXTppsStdCount(int value)Sets the specified value to theppsStdCount()field.StdVideoH265SequenceParameterSet.BufferpSpsStd()a pointer to an array ofspsStdCountStdVideoH265SequenceParameterSetstructures representing H.265 sequence parameter sets.VkVideoEncodeH265SessionParametersAddInfoEXTpSpsStd(StdVideoH265SequenceParameterSet.Buffer value)Sets the address of the specifiedStdVideoH265SequenceParameterSet.Bufferto thepSpsStd()field.StdVideoH265VideoParameterSet.BufferpVpsStd()a pointer to an array ofvpsStdCountStdVideoH265VideoParameterSetstructures representing H.265 video parameter sets.VkVideoEncodeH265SessionParametersAddInfoEXTpVpsStd(StdVideoH265VideoParameterSet.Buffer value)Sets the address of the specifiedStdVideoH265VideoParameterSet.Bufferto thepVpsStd()field.VkVideoEncodeH265SessionParametersAddInfoEXTset(int sType, long pNext, int vpsStdCount, StdVideoH265VideoParameterSet.Buffer pVpsStd, int spsStdCount, StdVideoH265SequenceParameterSet.Buffer pSpsStd, int ppsStdCount, StdVideoH265PictureParameterSet.Buffer pPpsStd)Initializes this struct with the specified values.VkVideoEncodeH265SessionParametersAddInfoEXTset(VkVideoEncodeH265SessionParametersAddInfoEXT src)Copies the specified struct data to this struct.intsizeof()intspsStdCount()the number of SPS elements inpSpsStd.VkVideoEncodeH265SessionParametersAddInfoEXTspsStdCount(int value)Sets the specified value to thespsStdCount()field.intsType()the type of this structure.VkVideoEncodeH265SessionParametersAddInfoEXTsType(int value)Sets the specified value to thesType()field.VkVideoEncodeH265SessionParametersAddInfoEXTsType$Default()Sets theSTRUCTURE_TYPE_VIDEO_ENCODE_H265_SESSION_PARAMETERS_ADD_INFO_EXTvalue to thesType()field.intvpsStdCount()the number of VPS elements inpVpsStd.VkVideoEncodeH265SessionParametersAddInfoEXTvpsStdCount(int value)Sets the specified value to thevpsStdCount()field.
-
-
-
Constructor Detail
-
VkVideoEncodeH265SessionParametersAddInfoEXT
public VkVideoEncodeH265SessionParametersAddInfoEXT(java.nio.ByteBuffer container)
Creates aVkVideoEncodeH265SessionParametersAddInfoEXTinstance 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.
-
vpsStdCount
public int vpsStdCount()
the number of VPS elements inpVpsStd.
-
pVpsStd
@Nullable public StdVideoH265VideoParameterSet.Buffer pVpsStd()
a pointer to an array ofvpsStdCountStdVideoH265VideoParameterSetstructures representing H.265 video parameter sets.
-
spsStdCount
public int spsStdCount()
the number of SPS elements inpSpsStd.
-
pSpsStd
@Nullable public StdVideoH265SequenceParameterSet.Buffer pSpsStd()
a pointer to an array ofspsStdCountStdVideoH265SequenceParameterSetstructures representing H.265 sequence parameter sets.
-
ppsStdCount
public int ppsStdCount()
the number of PPS elements inpPpsStd.
-
pPpsStd
@Nullable public StdVideoH265PictureParameterSet.Buffer pPpsStd()
a pointer to an array ofppsStdCountStdVideoH265PictureParameterSetstructures representing H.265 picture parameter sets.
-
sType
public VkVideoEncodeH265SessionParametersAddInfoEXT sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkVideoEncodeH265SessionParametersAddInfoEXT sType$Default()
Sets theSTRUCTURE_TYPE_VIDEO_ENCODE_H265_SESSION_PARAMETERS_ADD_INFO_EXTvalue to thesType()field.
-
pNext
public VkVideoEncodeH265SessionParametersAddInfoEXT pNext(long value)
Sets the specified value to thepNext()field.
-
vpsStdCount
public VkVideoEncodeH265SessionParametersAddInfoEXT vpsStdCount(int value)
Sets the specified value to thevpsStdCount()field.
-
pVpsStd
public VkVideoEncodeH265SessionParametersAddInfoEXT pVpsStd(@Nullable StdVideoH265VideoParameterSet.Buffer value)
Sets the address of the specifiedStdVideoH265VideoParameterSet.Bufferto thepVpsStd()field.
-
spsStdCount
public VkVideoEncodeH265SessionParametersAddInfoEXT spsStdCount(int value)
Sets the specified value to thespsStdCount()field.
-
pSpsStd
public VkVideoEncodeH265SessionParametersAddInfoEXT pSpsStd(@Nullable StdVideoH265SequenceParameterSet.Buffer value)
Sets the address of the specifiedStdVideoH265SequenceParameterSet.Bufferto thepSpsStd()field.
-
ppsStdCount
public VkVideoEncodeH265SessionParametersAddInfoEXT ppsStdCount(int value)
Sets the specified value to theppsStdCount()field.
-
pPpsStd
public VkVideoEncodeH265SessionParametersAddInfoEXT pPpsStd(@Nullable StdVideoH265PictureParameterSet.Buffer value)
Sets the address of the specifiedStdVideoH265PictureParameterSet.Bufferto thepPpsStd()field.
-
set
public VkVideoEncodeH265SessionParametersAddInfoEXT set(int sType, long pNext, int vpsStdCount, @Nullable StdVideoH265VideoParameterSet.Buffer pVpsStd, int spsStdCount, @Nullable StdVideoH265SequenceParameterSet.Buffer pSpsStd, int ppsStdCount, @Nullable StdVideoH265PictureParameterSet.Buffer pPpsStd)
Initializes this struct with the specified values.
-
set
public VkVideoEncodeH265SessionParametersAddInfoEXT set(VkVideoEncodeH265SessionParametersAddInfoEXT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkVideoEncodeH265SessionParametersAddInfoEXT malloc()
Returns a newVkVideoEncodeH265SessionParametersAddInfoEXTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkVideoEncodeH265SessionParametersAddInfoEXT calloc()
Returns a newVkVideoEncodeH265SessionParametersAddInfoEXTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkVideoEncodeH265SessionParametersAddInfoEXT create()
Returns a newVkVideoEncodeH265SessionParametersAddInfoEXTinstance allocated withBufferUtils.
-
create
public static VkVideoEncodeH265SessionParametersAddInfoEXT create(long address)
Returns a newVkVideoEncodeH265SessionParametersAddInfoEXTinstance for the specified memory address.
-
createSafe
@Nullable public static VkVideoEncodeH265SessionParametersAddInfoEXT createSafe(long address)
-
malloc
public static VkVideoEncodeH265SessionParametersAddInfoEXT.Buffer malloc(int capacity)
Returns a newVkVideoEncodeH265SessionParametersAddInfoEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkVideoEncodeH265SessionParametersAddInfoEXT.Buffer calloc(int capacity)
Returns a newVkVideoEncodeH265SessionParametersAddInfoEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkVideoEncodeH265SessionParametersAddInfoEXT.Buffer create(int capacity)
Returns a newVkVideoEncodeH265SessionParametersAddInfoEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkVideoEncodeH265SessionParametersAddInfoEXT.Buffer create(long address, int capacity)
Create aVkVideoEncodeH265SessionParametersAddInfoEXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkVideoEncodeH265SessionParametersAddInfoEXT.Buffer createSafe(long address, int capacity)
-
malloc
public static VkVideoEncodeH265SessionParametersAddInfoEXT malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkVideoEncodeH265SessionParametersAddInfoEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkVideoEncodeH265SessionParametersAddInfoEXT calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkVideoEncodeH265SessionParametersAddInfoEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkVideoEncodeH265SessionParametersAddInfoEXT.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkVideoEncodeH265SessionParametersAddInfoEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkVideoEncodeH265SessionParametersAddInfoEXT.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkVideoEncodeH265SessionParametersAddInfoEXT.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().
-
nvpsStdCount
public static int nvpsStdCount(long struct)
Unsafe version ofvpsStdCount().
-
npVpsStd
@Nullable public static StdVideoH265VideoParameterSet.Buffer npVpsStd(long struct)
Unsafe version ofpVpsStd().
-
nspsStdCount
public static int nspsStdCount(long struct)
Unsafe version ofspsStdCount().
-
npSpsStd
@Nullable public static StdVideoH265SequenceParameterSet.Buffer npSpsStd(long struct)
Unsafe version ofpSpsStd().
-
nppsStdCount
public static int nppsStdCount(long struct)
Unsafe version ofppsStdCount().
-
npPpsStd
@Nullable public static StdVideoH265PictureParameterSet.Buffer npPpsStd(long struct)
Unsafe version ofpPpsStd().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nvpsStdCount
public static void nvpsStdCount(long struct, int value)Sets the specified value to thevpsStdCountfield of the specifiedstruct.
-
npVpsStd
public static void npVpsStd(long struct, @Nullable StdVideoH265VideoParameterSet.Buffer value)Unsafe version ofpVpsStd.
-
nspsStdCount
public static void nspsStdCount(long struct, int value)Sets the specified value to thespsStdCountfield of the specifiedstruct.
-
npSpsStd
public static void npSpsStd(long struct, @Nullable StdVideoH265SequenceParameterSet.Buffer value)Unsafe version ofpSpsStd.
-
nppsStdCount
public static void nppsStdCount(long struct, int value)Sets the specified value to theppsStdCountfield of the specifiedstruct.
-
npPpsStd
public static void npPpsStd(long struct, @Nullable StdVideoH265PictureParameterSet.Buffer value)Unsafe version ofpPpsStd.
-
-