Package org.lwjgl.vulkan
Class VkVideoSessionParametersCreateInfoKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkVideoSessionParametersCreateInfoKHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkVideoSessionParametersCreateInfoKHR extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure to set video session parameters.Valid Usage
- If
videoSessionParametersTemplaterepresents a valid handle, it must have been created againstvideoSession
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_VIDEO_SESSION_PARAMETERS_CREATE_INFO_KHR- Each
pNextmember of any structure (including this one) in thepNextchain must be eitherNULLor a pointer to a valid instance ofVkVideoDecodeH264SessionParametersCreateInfoEXT,VkVideoDecodeH265SessionParametersCreateInfoEXT,VkVideoEncodeH264SessionParametersCreateInfoEXT, orVkVideoEncodeH265SessionParametersCreateInfoEXT - The
sTypevalue of each struct in thepNextchain must be unique - If
videoSessionParametersTemplateis notNULL_HANDLE,videoSessionParametersTemplatemust be a validVkVideoSessionParametersKHRhandle videoSessionmust be a validVkVideoSessionKHRhandle- If
videoSessionParametersTemplateis a valid handle, it must have been created, allocated, or retrieved fromvideoSession - Both of
videoSession, andvideoSessionParametersTemplatethat are valid handles of non-ignored parameters must have been created, allocated, or retrieved from the sameVkDevice
See Also
CreateVideoSessionParametersKHRLayout
struct VkVideoSessionParametersCreateInfoKHR { VkStructureTypesType(); void const *pNext(); VkVideoSessionParametersKHRvideoSessionParametersTemplate(); VkVideoSessionKHRvideoSession(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkVideoSessionParametersCreateInfoKHR.BufferAn array ofVkVideoSessionParametersCreateInfoKHRstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intPNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPE
VIDEOSESSION
VIDEOSESSIONPARAMETERSTEMPLATEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkVideoSessionParametersCreateInfoKHR(java.nio.ByteBuffer container)Creates aVkVideoSessionParametersCreateInfoKHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkVideoSessionParametersCreateInfoKHRcalloc()Returns a newVkVideoSessionParametersCreateInfoKHRinstance allocated withmemCalloc.static VkVideoSessionParametersCreateInfoKHR.Buffercalloc(int capacity)Returns a newVkVideoSessionParametersCreateInfoKHR.Bufferinstance allocated withmemCalloc.static VkVideoSessionParametersCreateInfoKHR.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkVideoSessionParametersCreateInfoKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkVideoSessionParametersCreateInfoKHRcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkVideoSessionParametersCreateInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkVideoSessionParametersCreateInfoKHRcreate()Returns a newVkVideoSessionParametersCreateInfoKHRinstance allocated withBufferUtils.static VkVideoSessionParametersCreateInfoKHR.Buffercreate(int capacity)Returns a newVkVideoSessionParametersCreateInfoKHR.Bufferinstance allocated withBufferUtils.static VkVideoSessionParametersCreateInfoKHRcreate(long address)Returns a newVkVideoSessionParametersCreateInfoKHRinstance for the specified memory address.static VkVideoSessionParametersCreateInfoKHR.Buffercreate(long address, int capacity)Create aVkVideoSessionParametersCreateInfoKHR.Bufferinstance at the specified memory.static VkVideoSessionParametersCreateInfoKHRcreateSafe(long address)static VkVideoSessionParametersCreateInfoKHR.BuffercreateSafe(long address, int capacity)static VkVideoSessionParametersCreateInfoKHRmalloc()Returns a newVkVideoSessionParametersCreateInfoKHRinstance allocated withmemAlloc.static VkVideoSessionParametersCreateInfoKHR.Buffermalloc(int capacity)Returns a newVkVideoSessionParametersCreateInfoKHR.Bufferinstance allocated withmemAlloc.static VkVideoSessionParametersCreateInfoKHR.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkVideoSessionParametersCreateInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkVideoSessionParametersCreateInfoKHRmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkVideoSessionParametersCreateInfoKHRinstance allocated on the specifiedMemoryStack.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.static longnvideoSession(long struct)Unsafe version ofvideoSession().static voidnvideoSession(long struct, long value)Unsafe version ofvideoSession.static longnvideoSessionParametersTemplate(long struct)Unsafe version ofvideoSessionParametersTemplate().static voidnvideoSessionParametersTemplate(long struct, long value)Unsafe version ofvideoSessionParametersTemplate.longpNext()NULLor a pointer to a structure extending this structure.VkVideoSessionParametersCreateInfoKHRpNext(long value)Sets the specified value to thepNext()field.VkVideoSessionParametersCreateInfoKHRpNext(VkVideoDecodeH264SessionParametersCreateInfoEXT value)Prepends the specifiedVkVideoDecodeH264SessionParametersCreateInfoEXTvalue to thepNextchain.VkVideoSessionParametersCreateInfoKHRpNext(VkVideoDecodeH265SessionParametersCreateInfoEXT value)Prepends the specifiedVkVideoDecodeH265SessionParametersCreateInfoEXTvalue to thepNextchain.VkVideoSessionParametersCreateInfoKHRpNext(VkVideoEncodeH264SessionParametersCreateInfoEXT value)Prepends the specifiedVkVideoEncodeH264SessionParametersCreateInfoEXTvalue to thepNextchain.VkVideoSessionParametersCreateInfoKHRpNext(VkVideoEncodeH265SessionParametersCreateInfoEXT value)Prepends the specifiedVkVideoEncodeH265SessionParametersCreateInfoEXTvalue to thepNextchain.VkVideoSessionParametersCreateInfoKHRset(int sType, long pNext, long videoSessionParametersTemplate, long videoSession)Initializes this struct with the specified values.VkVideoSessionParametersCreateInfoKHRset(VkVideoSessionParametersCreateInfoKHR src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkVideoSessionParametersCreateInfoKHRsType(int value)Sets the specified value to thesType()field.VkVideoSessionParametersCreateInfoKHRsType$Default()Sets theSTRUCTURE_TYPE_VIDEO_SESSION_PARAMETERS_CREATE_INFO_KHRvalue to thesType()field.longvideoSession()the video session object against which the video session parameters object is going to be created.VkVideoSessionParametersCreateInfoKHRvideoSession(long value)Sets the specified value to thevideoSession()field.longvideoSessionParametersTemplate()NULL_HANDLEor a valid handle to aVkVideoSessionParametersKHRobject.VkVideoSessionParametersCreateInfoKHRvideoSessionParametersTemplate(long value)Sets the specified value to thevideoSessionParametersTemplate()field.
-
-
-
Constructor Detail
-
VkVideoSessionParametersCreateInfoKHR
public VkVideoSessionParametersCreateInfoKHR(java.nio.ByteBuffer container)
Creates aVkVideoSessionParametersCreateInfoKHRinstance 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.
-
videoSessionParametersTemplate
public long videoSessionParametersTemplate()
NULL_HANDLEor a valid handle to aVkVideoSessionParametersKHRobject. If this parameter represents a valid handle, then the underlying Video Session Parameters object will be used as a template for constructing the new video session parameters object. All of the template object’s current parameters will be inherited by the new object in such a case. Optionally, some of the template’s parameters can be updated or new parameters added to the newly constructed object via the extension-specific parameters.
-
videoSession
public long videoSession()
the video session object against which the video session parameters object is going to be created.
-
sType
public VkVideoSessionParametersCreateInfoKHR sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkVideoSessionParametersCreateInfoKHR sType$Default()
Sets theSTRUCTURE_TYPE_VIDEO_SESSION_PARAMETERS_CREATE_INFO_KHRvalue to thesType()field.
-
pNext
public VkVideoSessionParametersCreateInfoKHR pNext(long value)
Sets the specified value to thepNext()field.
-
pNext
public VkVideoSessionParametersCreateInfoKHR pNext(VkVideoDecodeH264SessionParametersCreateInfoEXT value)
Prepends the specifiedVkVideoDecodeH264SessionParametersCreateInfoEXTvalue to thepNextchain.
-
pNext
public VkVideoSessionParametersCreateInfoKHR pNext(VkVideoDecodeH265SessionParametersCreateInfoEXT value)
Prepends the specifiedVkVideoDecodeH265SessionParametersCreateInfoEXTvalue to thepNextchain.
-
pNext
public VkVideoSessionParametersCreateInfoKHR pNext(VkVideoEncodeH264SessionParametersCreateInfoEXT value)
Prepends the specifiedVkVideoEncodeH264SessionParametersCreateInfoEXTvalue to thepNextchain.
-
pNext
public VkVideoSessionParametersCreateInfoKHR pNext(VkVideoEncodeH265SessionParametersCreateInfoEXT value)
Prepends the specifiedVkVideoEncodeH265SessionParametersCreateInfoEXTvalue to thepNextchain.
-
videoSessionParametersTemplate
public VkVideoSessionParametersCreateInfoKHR videoSessionParametersTemplate(long value)
Sets the specified value to thevideoSessionParametersTemplate()field.
-
videoSession
public VkVideoSessionParametersCreateInfoKHR videoSession(long value)
Sets the specified value to thevideoSession()field.
-
set
public VkVideoSessionParametersCreateInfoKHR set(int sType, long pNext, long videoSessionParametersTemplate, long videoSession)
Initializes this struct with the specified values.
-
set
public VkVideoSessionParametersCreateInfoKHR set(VkVideoSessionParametersCreateInfoKHR src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkVideoSessionParametersCreateInfoKHR malloc()
Returns a newVkVideoSessionParametersCreateInfoKHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkVideoSessionParametersCreateInfoKHR calloc()
Returns a newVkVideoSessionParametersCreateInfoKHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkVideoSessionParametersCreateInfoKHR create()
Returns a newVkVideoSessionParametersCreateInfoKHRinstance allocated withBufferUtils.
-
create
public static VkVideoSessionParametersCreateInfoKHR create(long address)
Returns a newVkVideoSessionParametersCreateInfoKHRinstance for the specified memory address.
-
createSafe
@Nullable public static VkVideoSessionParametersCreateInfoKHR createSafe(long address)
-
malloc
public static VkVideoSessionParametersCreateInfoKHR.Buffer malloc(int capacity)
Returns a newVkVideoSessionParametersCreateInfoKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkVideoSessionParametersCreateInfoKHR.Buffer calloc(int capacity)
Returns a newVkVideoSessionParametersCreateInfoKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkVideoSessionParametersCreateInfoKHR.Buffer create(int capacity)
Returns a newVkVideoSessionParametersCreateInfoKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkVideoSessionParametersCreateInfoKHR.Buffer create(long address, int capacity)
Create aVkVideoSessionParametersCreateInfoKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkVideoSessionParametersCreateInfoKHR.Buffer createSafe(long address, int capacity)
-
malloc
public static VkVideoSessionParametersCreateInfoKHR malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkVideoSessionParametersCreateInfoKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkVideoSessionParametersCreateInfoKHR calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkVideoSessionParametersCreateInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkVideoSessionParametersCreateInfoKHR.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkVideoSessionParametersCreateInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkVideoSessionParametersCreateInfoKHR.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkVideoSessionParametersCreateInfoKHR.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().
-
nvideoSessionParametersTemplate
public static long nvideoSessionParametersTemplate(long struct)
Unsafe version ofvideoSessionParametersTemplate().
-
nvideoSession
public static long nvideoSession(long struct)
Unsafe version ofvideoSession().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nvideoSessionParametersTemplate
public static void nvideoSessionParametersTemplate(long struct, long value)Unsafe version ofvideoSessionParametersTemplate.
-
nvideoSession
public static void nvideoSession(long struct, long value)Unsafe version ofvideoSession.
-
-