Package org.lwjgl.vulkan
Class VkVideoSessionParametersCreateInfoKHR
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VkVideoSessionParametersCreateInfoKHR>
org.lwjgl.vulkan.VkVideoSessionParametersCreateInfoKHR
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkVideoSessionParametersCreateInfoKHR
extends org.lwjgl.system.Struct<VkVideoSessionParametersCreateInfoKHR>
implements org.lwjgl.system.NativeResource
Structure specifying parameters of a newly created video session parameters object.
Description
Limiting values are defined below that are referenced by the relevant valid usage statements of this structure.
- If
videoSessionwas created with the codec operationVIDEO_CODEC_OPERATION_DECODE_H264_BIT_KHR, then letStdVideoH264SequenceParameterSet spsAddList[]be the list of H.264 SPS entries to add to the created video session parameters object, defined as follows:- If the
pParametersAddInfomember of theVkVideoDecodeH264SessionParametersCreateInfoKHRstructure provided in thepNextchain is notNULL, then the set ofStdVideoH264SequenceParameterSetentries specified inpParametersAddInfo→pStdSPSsare added tospsAddList; - If
videoSessionParametersTemplateis notNULL_HANDLE, then eachStdVideoH264SequenceParameterSetentry stored in it withseq_parameter_set_idnot matching any of the entries already inspsAddListis added tospsAddList.
- If the
- If
videoSessionwas created with the codec operationVIDEO_CODEC_OPERATION_DECODE_H264_BIT_KHR, then letStdVideoH264PictureParameterSet ppsAddList[]be the list of H.264 PPS entries to add to the created video session parameters object, defined as follows:- If the
pParametersAddInfomember of theVkVideoDecodeH264SessionParametersCreateInfoKHRstructure provided in thepNextchain is notNULL, then the set ofStdVideoH264PictureParameterSetentries specified inpParametersAddInfo→pStdPPSsare added toppsAddList; - If
videoSessionParametersTemplateis notNULL_HANDLE, then eachStdVideoH264PictureParameterSetentry stored in it withseq_parameter_set_idorpic_parameter_set_idnot matching any of the entries already inppsAddListis added toppsAddList.
- If the
- If
videoSessionwas created with the codec operationVIDEO_CODEC_OPERATION_DECODE_H265_BIT_KHR, then letStdVideoH265VideoParameterSet vpsAddList[]be the list of H.265 VPS entries to add to the created video session parameters object, defined as follows:- If the
pParametersAddInfomember of theVkVideoDecodeH265SessionParametersCreateInfoKHRstructure provided in thepNextchain is notNULL, then the set ofStdVideoH265VideoParameterSetentries specified inpParametersAddInfo→pStdVPSsare added tovpsAddList; - If
videoSessionParametersTemplateis notNULL_HANDLE, then eachStdVideoH265VideoParameterSetentry stored in it withvps_video_parameter_set_idnot matching any of the entries already invpsAddListis added tovpsAddList.
- If the
- If
videoSessionwas created with the codec operationVIDEO_CODEC_OPERATION_DECODE_H265_BIT_KHR, then letStdVideoH265SequenceParameterSet spsAddList[]be the list of H.265 SPS entries to add to the created video session parameters object, defined as follows:- If the
pParametersAddInfomember of theVkVideoDecodeH265SessionParametersCreateInfoKHRstructure provided in thepNextchain is notNULL, then the set ofStdVideoH265SequenceParameterSetentries specified inpParametersAddInfo→pStdSPSsare added tospsAddList; - If
videoSessionParametersTemplateis notNULL_HANDLE, then eachStdVideoH265SequenceParameterSetentry stored in it withsps_video_parameter_set_idorsps_seq_parameter_set_idnot matching any of the entries already inspsAddListis added tospsAddList.
- If the
- If
videoSessionwas created with the codec operationVIDEO_CODEC_OPERATION_DECODE_H265_BIT_KHR, then letStdVideoH265PictureParameterSet ppsAddList[]be the list of H.265 PPS entries to add to the created video session parameters object, defined as follows:- If the
pParametersAddInfomember of theVkVideoDecodeH265SessionParametersCreateInfoKHRstructure provided in thepNextchain is notNULL, then the set ofStdVideoH265PictureParameterSetentries specified inpParametersAddInfo→pStdPPSsare added toppsAddList; - If
videoSessionParametersTemplateis notNULL_HANDLE, then eachStdVideoH265PictureParameterSetentry stored in it withsps_video_parameter_set_id,pps_seq_parameter_set_id, orpps_pic_parameter_set_idnot matching any of the entries already inppsAddListis added toppsAddList.
- If the
- If
videoSessionwas created with an encode operation, then letuint32_t qualityLevelbe the video encode quality level of the created video session parameters object, defined as follows:- If the
pNextchain of this structure includes aVkVideoEncodeQualityLevelInfoKHRstructure, thenqualityLevelis equal toVkVideoEncodeQualityLevelInfoKHR::qualityLevel. - Otherwise
qualityLevelis 0
- If the
- If
videoSessionwas created with the codec operationVIDEO_CODEC_OPERATION_ENCODE_H264_BIT_KHR, then letStdVideoH264SequenceParameterSet spsAddList[]be the list of H.264 SPS entries to add to the created video session parameters object, defined as follows:- If the
pParametersAddInfomember of theVkVideoEncodeH264SessionParametersCreateInfoKHRstructure provided in thepNextchain is notNULL, then the set ofStdVideoH264SequenceParameterSetentries specified inpParametersAddInfo→pStdSPSsare added tospsAddList; - If
videoSessionParametersTemplateis notNULL_HANDLE, then eachStdVideoH264SequenceParameterSetentry stored in it withseq_parameter_set_idnot matching any of the entries already inspsAddListis added tospsAddList.
- If the
- If
videoSessionwas created with the codec operationVIDEO_CODEC_OPERATION_ENCODE_H264_BIT_KHR, then letStdVideoH264PictureParameterSet ppsAddList[]be the list of H.264 PPS entries to add to the created video session parameters object, defined as follows:- If the
pParametersAddInfomember of theVkVideoEncodeH264SessionParametersCreateInfoKHRstructure provided in thepNextchain is notNULL, then the set ofStdVideoH264PictureParameterSetentries specified inpParametersAddInfo→pStdPPSsare added toppsAddList; - If
videoSessionParametersTemplateis notNULL_HANDLE, then eachStdVideoH264PictureParameterSetentry stored in it withseq_parameter_set_idorpic_parameter_set_idnot matching any of the entries already inppsAddListis added toppsAddList.
- If the
- If
videoSessionwas created with the codec operationVIDEO_CODEC_OPERATION_ENCODE_H265_BIT_KHR, then letStdVideoH265VideoParameterSet vpsAddList[]be the list of H.265 VPS entries to add to the created video session parameters object, defined as follows:- If the
pParametersAddInfomember of theVkVideoEncodeH265SessionParametersCreateInfoKHRstructure provided in thepNextchain is notNULL, then the set ofStdVideoH265VideoParameterSetentries specified inpParametersAddInfo→pStdVPSsare added tovpsAddList; - If
videoSessionParametersTemplateis notNULL_HANDLE, then eachStdVideoH265VideoParameterSetentry stored in it withvps_video_parameter_set_idnot matching any of the entries already invpsAddListis added tovpsAddList.
- If the
- If
videoSessionwas created with the codec operationVIDEO_CODEC_OPERATION_ENCODE_H265_BIT_KHR, then letStdVideoH265SequenceParameterSet spsAddList[]be the list of H.265 SPS entries to add to the created video session parameters object, defined as follows:- If the
pParametersAddInfomember of theVkVideoEncodeH265SessionParametersCreateInfoKHRstructure provided in thepNextchain is notNULL, then the set ofStdVideoH265SequenceParameterSetentries specified inpParametersAddInfo→pStdSPSsare added tospsAddList; - If
videoSessionParametersTemplateis notNULL_HANDLE, then eachStdVideoH265SequenceParameterSetentry stored in it withsps_video_parameter_set_idorsps_seq_parameter_set_idnot matching any of the entries already inspsAddListis added tospsAddList.
- If the
- If
videoSessionwas created with the codec operationVIDEO_CODEC_OPERATION_ENCODE_H265_BIT_KHR, then letStdVideoH265PictureParameterSet ppsAddList[]be the list of H.265 PPS entries to add to the created video session parameters object, defined as follows:- If the
pParametersAddInfomember of theVkVideoEncodeH265SessionParametersCreateInfoKHRstructure provided in thepNextchain is notNULL, then the set ofStdVideoH265PictureParameterSetentries specified inpParametersAddInfo→pStdPPSsare added toppsAddList; - If
videoSessionParametersTemplateis notNULL_HANDLE, then eachStdVideoH265PictureParameterSetentry stored in it withsps_video_parameter_set_id,pps_seq_parameter_set_id, orpps_pic_parameter_set_idnot matching any of the entries already inppsAddListis added toppsAddList.
- If the
Valid Usage
- If
videoSessionParametersTemplateis notNULL_HANDLE, it must have been created againstvideoSession - If
videoSessionParametersTemplateis notNULL_HANDLEandvideoSessionwas created with an encode operation, thenqualityLevelmust equal the video encode quality levelvideoSessionParametersTemplatewas created with - If
flagsincludesVIDEO_SESSION_PARAMETERS_CREATE_QUANTIZATION_MAP_COMPATIBLE_BIT_KHR, thenvideoSessionmust have been created withVIDEO_SESSION_CREATE_ALLOW_ENCODE_QUANTIZATION_DELTA_MAP_BIT_KHRorVIDEO_SESSION_CREATE_ALLOW_ENCODE_EMPHASIS_MAP_BIT_KHR - If
flagsincludesVIDEO_SESSION_PARAMETERS_CREATE_QUANTIZATION_MAP_COMPATIBLE_BIT_KHR, then thepNextchain must include aVkVideoEncodeQuantizationMapSessionParametersCreateInfoKHRstructure - If
flagsincludesVIDEO_SESSION_PARAMETERS_CREATE_QUANTIZATION_MAP_COMPATIBLE_BIT_KHRandvideoSessionwas created withVIDEO_SESSION_CREATE_ALLOW_ENCODE_QUANTIZATION_DELTA_MAP_BIT_KHR, then the list of video format properties supported for the image usage flagIMAGE_USAGE_VIDEO_ENCODE_QUANTIZATION_DELTA_MAP_BIT_KHRmust have an element for whichVkVideoFormatQuantizationMapPropertiesKHR::quantizationMapTexelSizeequals thequantizationMapTexelSizemember of theVkVideoEncodeQuantizationMapSessionParametersCreateInfoKHRstructure included in thepNextchain - If
flagsincludesVIDEO_SESSION_PARAMETERS_CREATE_QUANTIZATION_MAP_COMPATIBLE_BIT_KHRandvideoSessionwas created withVIDEO_SESSION_CREATE_ALLOW_ENCODE_EMPHASIS_MAP_BIT_KHR, then the list of video format properties supported for the image usage flagIMAGE_USAGE_VIDEO_ENCODE_EMPHASIS_MAP_BIT_KHRmust have an element for whichVkVideoFormatQuantizationMapPropertiesKHR::quantizationMapTexelSizeequals thequantizationMapTexelSizemember of theVkVideoEncodeQuantizationMapSessionParametersCreateInfoKHRstructure included in thepNextchain - If
videoSessionParametersTemplateis notNULL_HANDLEandflagsincludesVIDEO_SESSION_PARAMETERS_CREATE_QUANTIZATION_MAP_COMPATIBLE_BIT_KHR, thenvideoSessionParametersTemplatemust have been created withVIDEO_SESSION_PARAMETERS_CREATE_QUANTIZATION_MAP_COMPATIBLE_BIT_KHR - If
videoSessionParametersTemplateis notNULL_HANDLEandflagsincludesVIDEO_SESSION_PARAMETERS_CREATE_QUANTIZATION_MAP_COMPATIBLE_BIT_KHR, thenvideoSessionParametersTemplatemust have been created with the same quantization map texel size as the one specified in thequantizationMapTexelSizemember of theVkVideoEncodeQuantizationMapSessionParametersCreateInfoKHRstructure included in thepNextchain - If
videoSessionParametersTemplateis notNULL_HANDLEandflagsdoes not includeVIDEO_SESSION_PARAMETERS_CREATE_QUANTIZATION_MAP_COMPATIBLE_BIT_KHR, thenvideoSessionParametersTemplatemust have been created withoutVIDEO_SESSION_PARAMETERS_CREATE_QUANTIZATION_MAP_COMPATIBLE_BIT_KHR - If
videoSessionwas created with the video codec operationVIDEO_CODEC_OPERATION_DECODE_H264_BIT_KHR, then thepNextchain must include aVkVideoDecodeH264SessionParametersCreateInfoKHRstructure - If
videoSessionwas created with the video codec operationVIDEO_CODEC_OPERATION_DECODE_H264_BIT_KHR, then the number of elements ofspsAddListmust be less than or equal to themaxStdSPSCountspecified in theVkVideoDecodeH264SessionParametersCreateInfoKHRstructure included in thepNextchain - If
videoSessionwas created with the video codec operationVIDEO_CODEC_OPERATION_DECODE_H264_BIT_KHR, then the number of elements ofppsAddListmust be less than or equal to themaxStdPPSCountspecified in theVkVideoDecodeH264SessionParametersCreateInfoKHRstructure included in thepNextchain - If
videoSessionwas created with the video codec operationVIDEO_CODEC_OPERATION_DECODE_H265_BIT_KHR, then thepNextchain must include aVkVideoDecodeH265SessionParametersCreateInfoKHRstructure - If
videoSessionwas created with the video codec operationVIDEO_CODEC_OPERATION_DECODE_H265_BIT_KHR, then the number of elements ofvpsAddListmust be less than or equal to themaxStdVPSCountspecified in theVkVideoDecodeH265SessionParametersCreateInfoKHRstructure included in thepNextchain - If
videoSessionwas created with the video codec operationVIDEO_CODEC_OPERATION_DECODE_H265_BIT_KHR, then the number of elements ofspsAddListmust be less than or equal to themaxStdSPSCountspecified in theVkVideoDecodeH265SessionParametersCreateInfoKHRstructure included in thepNextchain - If
videoSessionwas created with the video codec operationVIDEO_CODEC_OPERATION_DECODE_H265_BIT_KHR, then the number of elements ofppsAddListmust be less than or equal to themaxStdPPSCountspecified in theVkVideoDecodeH265SessionParametersCreateInfoKHRstructure included in thepNextchain - If
videoSessionwas created with the video codec operationVIDEO_CODEC_OPERATION_DECODE_AV1_BIT_KHR, thenvideoSessionParametersTemplatemust beNULL_HANDLE - If
videoSessionwas created with the video codec operationVIDEO_CODEC_OPERATION_DECODE_AV1_BIT_KHR, then thepNextchain must include aVkVideoDecodeAV1SessionParametersCreateInfoKHRstructure - If
videoSessionwas created with the video codec operationVIDEO_CODEC_OPERATION_ENCODE_H264_BIT_KHR, then thepNextchain must include aVkVideoEncodeH264SessionParametersCreateInfoKHRstructure - If
videoSessionwas created with the video codec operationVIDEO_CODEC_OPERATION_ENCODE_H264_BIT_KHR, then the number of elements ofspsAddListmust be less than or equal to themaxStdSPSCountspecified in theVkVideoEncodeH264SessionParametersCreateInfoKHRstructure included in thepNextchain - If
videoSessionwas created with the video codec operationVIDEO_CODEC_OPERATION_ENCODE_H264_BIT_KHR, then the number of elements ofppsAddListmust be less than or equal to themaxStdPPSCountspecified in theVkVideoEncodeH264SessionParametersCreateInfoKHRstructure included in thepNextchain - If
videoSessionwas created with the video codec operationVIDEO_CODEC_OPERATION_ENCODE_H265_BIT_KHR, then thepNextchain must include aVkVideoEncodeH265SessionParametersCreateInfoKHRstructure - If
videoSessionwas created with the video codec operationVIDEO_CODEC_OPERATION_ENCODE_H265_BIT_KHR, then the number of elements ofvpsAddListmust be less than or equal to themaxStdVPSCountspecified in theVkVideoEncodeH265SessionParametersCreateInfoKHRstructure included in thepNextchain - If
videoSessionwas created with the video codec operationVIDEO_CODEC_OPERATION_ENCODE_H265_BIT_KHR, then the number of elements ofspsAddListmust be less than or equal to themaxStdSPSCountspecified in theVkVideoEncodeH265SessionParametersCreateInfoKHRstructure included in thepNextchain - If
videoSessionwas created with the video codec operationVIDEO_CODEC_OPERATION_ENCODE_H265_BIT_KHR, then the number of elements ofppsAddListmust be less than or equal to themaxStdPPSCountspecified in theVkVideoEncodeH265SessionParametersCreateInfoKHRstructure included in thepNextchain - If
videoSessionwas created with the video codec operationVIDEO_CODEC_OPERATION_ENCODE_H265_BIT_KHR, thennum_tile_columns_minus1must be less thanVkVideoEncodeH265CapabilitiesKHR::maxTiles.width, as returned byGetPhysicalDeviceVideoCapabilitiesKHRfor the video profilevideoSessionwas created with, for each element ofppsAddList - If
videoSessionwas created with the video codec operationVIDEO_CODEC_OPERATION_ENCODE_H265_BIT_KHR, thennum_tile_rows_minus1must be less thanVkVideoEncodeH265CapabilitiesKHR::maxTiles.height, as returned byGetPhysicalDeviceVideoCapabilitiesKHRfor the video profilevideoSessionwas created with, for each element ofppsAddList - If
videoSessionwas created with the video codec operationVIDEO_CODEC_OPERATION_ENCODE_AV1_BIT_KHR, thenvideoSessionParametersTemplatemust beNULL_HANDLE - If
videoSessionwas created with the video codec operationVIDEO_CODEC_OPERATION_ENCODE_AV1_BIT_KHR, then thepNextchain must include aVkVideoEncodeAV1SessionParametersCreateInfoKHRstructure - If
videoSessionwas created with the video codec operationVIDEO_CODEC_OPERATION_ENCODE_AV1_BIT_KHR, then thestdOperatingPointCountmember of theVkVideoEncodeAV1SessionParametersCreateInfoKHRstructure included in thepNextchain must be less than or equal toVkVideoEncodeAV1CapabilitiesKHR::maxOperatingPoints, as returned byGetPhysicalDeviceVideoCapabilitiesKHRfor the video profilevideoSessionwas created with
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 ofVkVideoDecodeAV1SessionParametersCreateInfoKHR,VkVideoDecodeH264SessionParametersCreateInfoKHR,VkVideoDecodeH265SessionParametersCreateInfoKHR,VkVideoEncodeAV1SessionParametersCreateInfoKHR,VkVideoEncodeH264SessionParametersCreateInfoKHR,VkVideoEncodeH265SessionParametersCreateInfoKHR,VkVideoEncodeQualityLevelInfoKHR, orVkVideoEncodeQuantizationMapSessionParametersCreateInfoKHR - The
sTypevalue of each struct in thepNextchain must be unique flagsmust be a valid combination ofVkVideoSessionParametersCreateFlagBitsKHRvalues- 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
CreateVideoSessionParametersKHR
Layout
struct VkVideoSessionParametersCreateInfoKHR {
VkStructureType sType();
void const * pNext();
VkVideoSessionParametersCreateFlagsKHR flags();
VkVideoSessionParametersKHR videoSessionParametersTemplate();
VkVideoSessionKHR videoSession();
}-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAn array ofVkVideoSessionParametersCreateInfoKHRstructs.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 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
ConstructorsConstructorDescriptionVkVideoSessionParametersCreateInfoKHR(ByteBuffer container) Creates aVkVideoSessionParametersCreateInfoKHRinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptioncalloc()Returns a newVkVideoSessionParametersCreateInfoKHRinstance allocated withmemCalloc.calloc(int capacity) Returns a newVkVideoSessionParametersCreateInfoKHR.Bufferinstance allocated withmemCalloc.calloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVkVideoSessionParametersCreateInfoKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.calloc(org.lwjgl.system.MemoryStack stack) Returns a newVkVideoSessionParametersCreateInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.create()Returns a newVkVideoSessionParametersCreateInfoKHRinstance allocated withBufferUtils.create(int capacity) Returns a newVkVideoSessionParametersCreateInfoKHR.Bufferinstance allocated withBufferUtils.create(long address) Returns a newVkVideoSessionParametersCreateInfoKHRinstance for the specified memory address.create(long address, int capacity) Create aVkVideoSessionParametersCreateInfoKHR.Bufferinstance at the specified memory.static @Nullable VkVideoSessionParametersCreateInfoKHRcreateSafe(long address) static @Nullable VkVideoSessionParametersCreateInfoKHR.BuffercreateSafe(long address, int capacity) intflags()a bitmask ofVkVideoSessionParametersCreateFlagBitsKHRspecifying create flags.flags(int value) Sets the specified value to theflags()field.malloc()Returns a newVkVideoSessionParametersCreateInfoKHRinstance allocated withmemAlloc.malloc(int capacity) Returns a newVkVideoSessionParametersCreateInfoKHR.Bufferinstance allocated withmemAlloc.malloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVkVideoSessionParametersCreateInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.malloc(org.lwjgl.system.MemoryStack stack) Returns a newVkVideoSessionParametersCreateInfoKHRinstance allocated on the specifiedMemoryStack.static intnflags(long struct) Unsafe version offlags().static voidnflags(long struct, int value) Unsafe version offlags.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.pNext(long value) Sets the specified value to thepNext()field.Prepends the specifiedVkVideoDecodeAV1SessionParametersCreateInfoKHRvalue to thepNextchain.Prepends the specifiedVkVideoDecodeH264SessionParametersCreateInfoKHRvalue to thepNextchain.Prepends the specifiedVkVideoDecodeH265SessionParametersCreateInfoKHRvalue to thepNextchain.Prepends the specifiedVkVideoEncodeAV1SessionParametersCreateInfoKHRvalue to thepNextchain.Prepends the specifiedVkVideoEncodeH264SessionParametersCreateInfoKHRvalue to thepNextchain.Prepends the specifiedVkVideoEncodeH265SessionParametersCreateInfoKHRvalue to thepNextchain.Prepends the specifiedVkVideoEncodeQualityLevelInfoKHRvalue to thepNextchain.Prepends the specifiedVkVideoEncodeQuantizationMapSessionParametersCreateInfoKHRvalue to thepNextchain.set(int sType, long pNext, int flags, long videoSessionParametersTemplate, long videoSession) 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_SESSION_PARAMETERS_CREATE_INFO_KHRvalue to thesType()field.longthe video session object against which the video session parameters object is going to be created.videoSession(long value) Sets the specified value to thevideoSession()field.longNULL_HANDLEor a valid handle to aVkVideoSessionParametersKHRobject used as a template for constructing the new video session parameters object.videoSessionParametersTemplate(long value) Sets the specified value to thevideoSessionParametersTemplate()field.Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate, 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. -
FLAGS
public static final int FLAGSThe struct member offsets. -
VIDEOSESSIONPARAMETERSTEMPLATE
public static final int VIDEOSESSIONPARAMETERSTEMPLATEThe struct member offsets. -
VIDEOSESSION
public static final int VIDEOSESSIONThe struct member offsets.
-
-
Constructor Details
-
VkVideoSessionParametersCreateInfoKHR
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 Details
-
sizeof
public int sizeof()- Specified by:
sizeofin classorg.lwjgl.system.Struct<VkVideoSessionParametersCreateInfoKHR>
-
sType
public int sType()aVkStructureTypevalue identifying this structure. -
pNext
public long pNext()NULLor a pointer to a structure extending this structure. -
flags
public int flags()a bitmask ofVkVideoSessionParametersCreateFlagBitsKHRspecifying create flags. -
videoSessionParametersTemplate
public long videoSessionParametersTemplate()NULL_HANDLEor a valid handle to aVkVideoSessionParametersKHRobject used as a template for constructing the new video session parameters object. -
videoSession
public long videoSession()the video session object against which the video session parameters object is going to be created. -
sType
Sets the specified value to thesType()field. -
sType$Default
Sets theSTRUCTURE_TYPE_VIDEO_SESSION_PARAMETERS_CREATE_INFO_KHRvalue to thesType()field. -
pNext
Sets the specified value to thepNext()field. -
pNext
public VkVideoSessionParametersCreateInfoKHR pNext(VkVideoDecodeAV1SessionParametersCreateInfoKHR value) Prepends the specifiedVkVideoDecodeAV1SessionParametersCreateInfoKHRvalue to thepNextchain. -
pNext
public VkVideoSessionParametersCreateInfoKHR pNext(VkVideoDecodeH264SessionParametersCreateInfoKHR value) Prepends the specifiedVkVideoDecodeH264SessionParametersCreateInfoKHRvalue to thepNextchain. -
pNext
public VkVideoSessionParametersCreateInfoKHR pNext(VkVideoDecodeH265SessionParametersCreateInfoKHR value) Prepends the specifiedVkVideoDecodeH265SessionParametersCreateInfoKHRvalue to thepNextchain. -
pNext
public VkVideoSessionParametersCreateInfoKHR pNext(VkVideoEncodeAV1SessionParametersCreateInfoKHR value) Prepends the specifiedVkVideoEncodeAV1SessionParametersCreateInfoKHRvalue to thepNextchain. -
pNext
public VkVideoSessionParametersCreateInfoKHR pNext(VkVideoEncodeH264SessionParametersCreateInfoKHR value) Prepends the specifiedVkVideoEncodeH264SessionParametersCreateInfoKHRvalue to thepNextchain. -
pNext
public VkVideoSessionParametersCreateInfoKHR pNext(VkVideoEncodeH265SessionParametersCreateInfoKHR value) Prepends the specifiedVkVideoEncodeH265SessionParametersCreateInfoKHRvalue to thepNextchain. -
pNext
Prepends the specifiedVkVideoEncodeQualityLevelInfoKHRvalue to thepNextchain. -
pNext
public VkVideoSessionParametersCreateInfoKHR pNext(VkVideoEncodeQuantizationMapSessionParametersCreateInfoKHR value) Prepends the specifiedVkVideoEncodeQuantizationMapSessionParametersCreateInfoKHRvalue to thepNextchain. -
flags
Sets the specified value to theflags()field. -
videoSessionParametersTemplate
Sets the specified value to thevideoSessionParametersTemplate()field. -
videoSession
Sets the specified value to thevideoSession()field. -
set
public VkVideoSessionParametersCreateInfoKHR set(int sType, long pNext, int flags, long videoSessionParametersTemplate, long videoSession) 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 newVkVideoSessionParametersCreateInfoKHRinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkVideoSessionParametersCreateInfoKHRinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkVideoSessionParametersCreateInfoKHRinstance allocated withBufferUtils. -
create
Returns a newVkVideoSessionParametersCreateInfoKHRinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkVideoSessionParametersCreateInfoKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkVideoSessionParametersCreateInfoKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkVideoSessionParametersCreateInfoKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVkVideoSessionParametersCreateInfoKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
public static @Nullable VkVideoSessionParametersCreateInfoKHR.Buffer createSafe(long address, int capacity) -
malloc
Returns a newVkVideoSessionParametersCreateInfoKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
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:
capacity- the buffer capacitystack- the stack from which to allocate
-
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:
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(). -
nflags
public static int nflags(long struct) Unsafe version offlags(). -
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. -
nflags
public static void nflags(long struct, int value) Unsafe version offlags. -
nvideoSessionParametersTemplate
public static void nvideoSessionParametersTemplate(long struct, long value) Unsafe version ofvideoSessionParametersTemplate. -
nvideoSession
public static void nvideoSession(long struct, long value) Unsafe version ofvideoSession.
-