Package org.lwjgl.vulkan
Class VkVideoEncodeH264SessionParametersCreateInfoEXT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkVideoEncodeH264SessionParametersCreateInfoEXT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkVideoEncodeH264SessionParametersCreateInfoEXT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifies H.264 encoder parameter set information.Description
A
VkVideoEncodeH264SessionParametersCreateInfoEXTstructure holding one H.264 SPS and at least one H.264 PPS paramater set must be chained toVkVideoSessionParametersCreateInfoKHRwhen callingCreateVideoSessionParametersKHRto store these parameter set(s) with the encoder parameter set object for later reference. The provided H.264 SPS/PPS parameters must be within the limits specified during encoder creation for the encoder specified inVkVideoSessionParametersCreateInfoKHR.Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_VIDEO_ENCODE_H264_SESSION_PARAMETERS_CREATE_INFO_EXT- If
pParametersAddInfois notNULL,pParametersAddInfomust be a valid pointer to a validVkVideoEncodeH264SessionParametersAddInfoEXTstructure
See Also
VkVideoEncodeH264SessionParametersAddInfoEXTLayout
struct VkVideoEncodeH264SessionParametersCreateInfoEXT { VkStructureTypesType(); void const *pNext(); uint32_tmaxSpsStdCount(); uint32_tmaxPpsStdCount();VkVideoEncodeH264SessionParametersAddInfoEXTconst *pParametersAddInfo(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkVideoEncodeH264SessionParametersCreateInfoEXT.BufferAn array ofVkVideoEncodeH264SessionParametersCreateInfoEXTstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intMAXPPSSTDCOUNT
MAXSPSSTDCOUNT
PNEXT
PPARAMETERSADDINFOThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkVideoEncodeH264SessionParametersCreateInfoEXT(java.nio.ByteBuffer container)Creates aVkVideoEncodeH264SessionParametersCreateInfoEXTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkVideoEncodeH264SessionParametersCreateInfoEXTcalloc()Returns a newVkVideoEncodeH264SessionParametersCreateInfoEXTinstance allocated withmemCalloc.static VkVideoEncodeH264SessionParametersCreateInfoEXT.Buffercalloc(int capacity)Returns a newVkVideoEncodeH264SessionParametersCreateInfoEXT.Bufferinstance allocated withmemCalloc.static VkVideoEncodeH264SessionParametersCreateInfoEXT.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkVideoEncodeH264SessionParametersCreateInfoEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkVideoEncodeH264SessionParametersCreateInfoEXTcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkVideoEncodeH264SessionParametersCreateInfoEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkVideoEncodeH264SessionParametersCreateInfoEXTcreate()Returns a newVkVideoEncodeH264SessionParametersCreateInfoEXTinstance allocated withBufferUtils.static VkVideoEncodeH264SessionParametersCreateInfoEXT.Buffercreate(int capacity)Returns a newVkVideoEncodeH264SessionParametersCreateInfoEXT.Bufferinstance allocated withBufferUtils.static VkVideoEncodeH264SessionParametersCreateInfoEXTcreate(long address)Returns a newVkVideoEncodeH264SessionParametersCreateInfoEXTinstance for the specified memory address.static VkVideoEncodeH264SessionParametersCreateInfoEXT.Buffercreate(long address, int capacity)Create aVkVideoEncodeH264SessionParametersCreateInfoEXT.Bufferinstance at the specified memory.static VkVideoEncodeH264SessionParametersCreateInfoEXTcreateSafe(long address)static VkVideoEncodeH264SessionParametersCreateInfoEXT.BuffercreateSafe(long address, int capacity)static VkVideoEncodeH264SessionParametersCreateInfoEXTmalloc()Returns a newVkVideoEncodeH264SessionParametersCreateInfoEXTinstance allocated withmemAlloc.static VkVideoEncodeH264SessionParametersCreateInfoEXT.Buffermalloc(int capacity)Returns a newVkVideoEncodeH264SessionParametersCreateInfoEXT.Bufferinstance allocated withmemAlloc.static VkVideoEncodeH264SessionParametersCreateInfoEXT.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkVideoEncodeH264SessionParametersCreateInfoEXT.Bufferinstance allocated on the specifiedMemoryStack.static VkVideoEncodeH264SessionParametersCreateInfoEXTmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkVideoEncodeH264SessionParametersCreateInfoEXTinstance allocated on the specifiedMemoryStack.intmaxPpsStdCount()the maximum number of PPS parameters that theVkVideoSessionParametersKHRcan contain.VkVideoEncodeH264SessionParametersCreateInfoEXTmaxPpsStdCount(int value)Sets the specified value to themaxPpsStdCount()field.intmaxSpsStdCount()the maximum number of SPS parameters that theVkVideoSessionParametersKHRcan contain.VkVideoEncodeH264SessionParametersCreateInfoEXTmaxSpsStdCount(int value)Sets the specified value to themaxSpsStdCount()field.static intnmaxPpsStdCount(long struct)Unsafe version ofmaxPpsStdCount().static voidnmaxPpsStdCount(long struct, int value)Unsafe version ofmaxPpsStdCount.static intnmaxSpsStdCount(long struct)Unsafe version ofmaxSpsStdCount().static voidnmaxSpsStdCount(long struct, int value)Unsafe version ofmaxSpsStdCount.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static VkVideoEncodeH264SessionParametersAddInfoEXTnpParametersAddInfo(long struct)Unsafe version ofpParametersAddInfo().static voidnpParametersAddInfo(long struct, VkVideoEncodeH264SessionParametersAddInfoEXT value)Unsafe version ofpParametersAddInfo.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.VkVideoEncodeH264SessionParametersCreateInfoEXTpNext(long value)Sets the specified value to thepNext()field.VkVideoEncodeH264SessionParametersAddInfoEXTpParametersAddInfo()NULLor a pointer to aVkVideoEncodeH264SessionParametersAddInfoEXTstructure specifying H.264 parameters to add upon object creation.VkVideoEncodeH264SessionParametersCreateInfoEXTpParametersAddInfo(VkVideoEncodeH264SessionParametersAddInfoEXT value)Sets the address of the specifiedVkVideoEncodeH264SessionParametersAddInfoEXTto thepParametersAddInfo()field.VkVideoEncodeH264SessionParametersCreateInfoEXTset(int sType, long pNext, int maxSpsStdCount, int maxPpsStdCount, VkVideoEncodeH264SessionParametersAddInfoEXT pParametersAddInfo)Initializes this struct with the specified values.VkVideoEncodeH264SessionParametersCreateInfoEXTset(VkVideoEncodeH264SessionParametersCreateInfoEXT src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkVideoEncodeH264SessionParametersCreateInfoEXTsType(int value)Sets the specified value to thesType()field.VkVideoEncodeH264SessionParametersCreateInfoEXTsType$Default()Sets theSTRUCTURE_TYPE_VIDEO_ENCODE_H264_SESSION_PARAMETERS_CREATE_INFO_EXTvalue to thesType()field.
-
-
-
Constructor Detail
-
VkVideoEncodeH264SessionParametersCreateInfoEXT
public VkVideoEncodeH264SessionParametersCreateInfoEXT(java.nio.ByteBuffer container)
Creates aVkVideoEncodeH264SessionParametersCreateInfoEXTinstance 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.
-
maxSpsStdCount
public int maxSpsStdCount()
the maximum number of SPS parameters that theVkVideoSessionParametersKHRcan contain.
-
maxPpsStdCount
public int maxPpsStdCount()
the maximum number of PPS parameters that theVkVideoSessionParametersKHRcan contain.
-
pParametersAddInfo
@Nullable public VkVideoEncodeH264SessionParametersAddInfoEXT pParametersAddInfo()
NULLor a pointer to aVkVideoEncodeH264SessionParametersAddInfoEXTstructure specifying H.264 parameters to add upon object creation.
-
sType
public VkVideoEncodeH264SessionParametersCreateInfoEXT sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkVideoEncodeH264SessionParametersCreateInfoEXT sType$Default()
Sets theSTRUCTURE_TYPE_VIDEO_ENCODE_H264_SESSION_PARAMETERS_CREATE_INFO_EXTvalue to thesType()field.
-
pNext
public VkVideoEncodeH264SessionParametersCreateInfoEXT pNext(long value)
Sets the specified value to thepNext()field.
-
maxSpsStdCount
public VkVideoEncodeH264SessionParametersCreateInfoEXT maxSpsStdCount(int value)
Sets the specified value to themaxSpsStdCount()field.
-
maxPpsStdCount
public VkVideoEncodeH264SessionParametersCreateInfoEXT maxPpsStdCount(int value)
Sets the specified value to themaxPpsStdCount()field.
-
pParametersAddInfo
public VkVideoEncodeH264SessionParametersCreateInfoEXT pParametersAddInfo(@Nullable VkVideoEncodeH264SessionParametersAddInfoEXT value)
Sets the address of the specifiedVkVideoEncodeH264SessionParametersAddInfoEXTto thepParametersAddInfo()field.
-
set
public VkVideoEncodeH264SessionParametersCreateInfoEXT set(int sType, long pNext, int maxSpsStdCount, int maxPpsStdCount, @Nullable VkVideoEncodeH264SessionParametersAddInfoEXT pParametersAddInfo)
Initializes this struct with the specified values.
-
set
public VkVideoEncodeH264SessionParametersCreateInfoEXT set(VkVideoEncodeH264SessionParametersCreateInfoEXT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkVideoEncodeH264SessionParametersCreateInfoEXT malloc()
Returns a newVkVideoEncodeH264SessionParametersCreateInfoEXTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkVideoEncodeH264SessionParametersCreateInfoEXT calloc()
Returns a newVkVideoEncodeH264SessionParametersCreateInfoEXTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkVideoEncodeH264SessionParametersCreateInfoEXT create()
Returns a newVkVideoEncodeH264SessionParametersCreateInfoEXTinstance allocated withBufferUtils.
-
create
public static VkVideoEncodeH264SessionParametersCreateInfoEXT create(long address)
Returns a newVkVideoEncodeH264SessionParametersCreateInfoEXTinstance for the specified memory address.
-
createSafe
@Nullable public static VkVideoEncodeH264SessionParametersCreateInfoEXT createSafe(long address)
-
malloc
public static VkVideoEncodeH264SessionParametersCreateInfoEXT.Buffer malloc(int capacity)
Returns a newVkVideoEncodeH264SessionParametersCreateInfoEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkVideoEncodeH264SessionParametersCreateInfoEXT.Buffer calloc(int capacity)
Returns a newVkVideoEncodeH264SessionParametersCreateInfoEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkVideoEncodeH264SessionParametersCreateInfoEXT.Buffer create(int capacity)
Returns a newVkVideoEncodeH264SessionParametersCreateInfoEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkVideoEncodeH264SessionParametersCreateInfoEXT.Buffer create(long address, int capacity)
Create aVkVideoEncodeH264SessionParametersCreateInfoEXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkVideoEncodeH264SessionParametersCreateInfoEXT.Buffer createSafe(long address, int capacity)
-
malloc
public static VkVideoEncodeH264SessionParametersCreateInfoEXT malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkVideoEncodeH264SessionParametersCreateInfoEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkVideoEncodeH264SessionParametersCreateInfoEXT calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkVideoEncodeH264SessionParametersCreateInfoEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkVideoEncodeH264SessionParametersCreateInfoEXT.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkVideoEncodeH264SessionParametersCreateInfoEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkVideoEncodeH264SessionParametersCreateInfoEXT.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkVideoEncodeH264SessionParametersCreateInfoEXT.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().
-
nmaxSpsStdCount
public static int nmaxSpsStdCount(long struct)
Unsafe version ofmaxSpsStdCount().
-
nmaxPpsStdCount
public static int nmaxPpsStdCount(long struct)
Unsafe version ofmaxPpsStdCount().
-
npParametersAddInfo
@Nullable public static VkVideoEncodeH264SessionParametersAddInfoEXT npParametersAddInfo(long struct)
Unsafe version ofpParametersAddInfo().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nmaxSpsStdCount
public static void nmaxSpsStdCount(long struct, int value)Unsafe version ofmaxSpsStdCount.
-
nmaxPpsStdCount
public static void nmaxPpsStdCount(long struct, int value)Unsafe version ofmaxPpsStdCount.
-
npParametersAddInfo
public static void npParametersAddInfo(long struct, @Nullable VkVideoEncodeH264SessionParametersAddInfoEXT value)Unsafe version ofpParametersAddInfo.
-
-