Package org.lwjgl.vulkan
Class VkVideoEncodeH264SessionCreateInfoEXT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkVideoEncodeH264SessionCreateInfoEXT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkVideoEncodeH264SessionCreateInfoEXT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifies H.264 encoder creation parameters.Description
A
VkVideoEncodeH264SessionCreateInfoEXTstructure must be chained toVkVideoSessionCreateInfoKHRwhen the functionCreateVideoSessionKHRis called withvideoCodecOperationinVkVideoSessionCreateInfoKHRset toVIDEO_CODEC_OPERATION_ENCODE_H264_BIT_EXT.Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_VIDEO_ENCODE_H264_SESSION_CREATE_INFO_EXTflagsmust be a valid combination ofVkVideoEncodeH264CreateFlagBitsEXTvaluesflagsmust not be 0pStdExtensionVersionmust be a valid pointer to a validVkExtensionPropertiesstructure
See Also
VkExtensionProperties,VkExtent2DLayout
struct VkVideoEncodeH264SessionCreateInfoEXT { VkStructureTypesType(); void const *pNext(); VkVideoEncodeH264CreateFlagsEXTflags();VkExtent2DmaxPictureSizeInMbs();VkExtensionPropertiesconst *pStdExtensionVersion(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkVideoEncodeH264SessionCreateInfoEXT.BufferAn array ofVkVideoEncodeH264SessionCreateInfoEXTstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intFLAGS
MAXPICTURESIZEINMBS
PNEXT
PSTDEXTENSIONVERSIONThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkVideoEncodeH264SessionCreateInfoEXT(java.nio.ByteBuffer container)Creates aVkVideoEncodeH264SessionCreateInfoEXTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkVideoEncodeH264SessionCreateInfoEXTcalloc()Returns a newVkVideoEncodeH264SessionCreateInfoEXTinstance allocated withmemCalloc.static VkVideoEncodeH264SessionCreateInfoEXT.Buffercalloc(int capacity)Returns a newVkVideoEncodeH264SessionCreateInfoEXT.Bufferinstance allocated withmemCalloc.static VkVideoEncodeH264SessionCreateInfoEXT.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkVideoEncodeH264SessionCreateInfoEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkVideoEncodeH264SessionCreateInfoEXTcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkVideoEncodeH264SessionCreateInfoEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkVideoEncodeH264SessionCreateInfoEXTcreate()Returns a newVkVideoEncodeH264SessionCreateInfoEXTinstance allocated withBufferUtils.static VkVideoEncodeH264SessionCreateInfoEXT.Buffercreate(int capacity)Returns a newVkVideoEncodeH264SessionCreateInfoEXT.Bufferinstance allocated withBufferUtils.static VkVideoEncodeH264SessionCreateInfoEXTcreate(long address)Returns a newVkVideoEncodeH264SessionCreateInfoEXTinstance for the specified memory address.static VkVideoEncodeH264SessionCreateInfoEXT.Buffercreate(long address, int capacity)Create aVkVideoEncodeH264SessionCreateInfoEXT.Bufferinstance at the specified memory.static VkVideoEncodeH264SessionCreateInfoEXTcreateSafe(long address)static VkVideoEncodeH264SessionCreateInfoEXT.BuffercreateSafe(long address, int capacity)intflags()a bitmask ofVkVideoEncodeH264CreateFlagsEXTspecifying H.264 encoder creation flags.VkVideoEncodeH264SessionCreateInfoEXTflags(int value)Sets the specified value to theflags()field.static VkVideoEncodeH264SessionCreateInfoEXTmalloc()Returns a newVkVideoEncodeH264SessionCreateInfoEXTinstance allocated withmemAlloc.static VkVideoEncodeH264SessionCreateInfoEXT.Buffermalloc(int capacity)Returns a newVkVideoEncodeH264SessionCreateInfoEXT.Bufferinstance allocated withmemAlloc.static VkVideoEncodeH264SessionCreateInfoEXT.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkVideoEncodeH264SessionCreateInfoEXT.Bufferinstance allocated on the specifiedMemoryStack.static VkVideoEncodeH264SessionCreateInfoEXTmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkVideoEncodeH264SessionCreateInfoEXTinstance allocated on the specifiedMemoryStack.VkExtent2DmaxPictureSizeInMbs()specifies the syntax element pic_width_in_mbs_minus1 + 1 and the syntax element pic_height_in_map_units_minus1 + 1.VkVideoEncodeH264SessionCreateInfoEXTmaxPictureSizeInMbs(java.util.function.Consumer<VkExtent2D> consumer)Passes themaxPictureSizeInMbs()field to the specifiedConsumer.VkVideoEncodeH264SessionCreateInfoEXTmaxPictureSizeInMbs(VkExtent2D value)Copies the specifiedVkExtent2Dto themaxPictureSizeInMbs()field.static intnflags(long struct)Unsafe version offlags().static voidnflags(long struct, int value)Unsafe version offlags.static VkExtent2DnmaxPictureSizeInMbs(long struct)Unsafe version ofmaxPictureSizeInMbs().static voidnmaxPictureSizeInMbs(long struct, VkExtent2D value)Unsafe version ofmaxPictureSizeInMbs.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static VkExtensionPropertiesnpStdExtensionVersion(long struct)Unsafe version ofpStdExtensionVersion().static voidnpStdExtensionVersion(long struct, VkExtensionProperties value)Unsafe version ofpStdExtensionVersion.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.VkVideoEncodeH264SessionCreateInfoEXTpNext(long value)Sets the specified value to thepNext()field.VkExtensionPropertiespStdExtensionVersion()a pointer to aVkExtensionPropertiesstructure specifying H.264 codec extensions.VkVideoEncodeH264SessionCreateInfoEXTpStdExtensionVersion(VkExtensionProperties value)Sets the address of the specifiedVkExtensionPropertiesto thepStdExtensionVersion()field.VkVideoEncodeH264SessionCreateInfoEXTset(int sType, long pNext, int flags, VkExtent2D maxPictureSizeInMbs, VkExtensionProperties pStdExtensionVersion)Initializes this struct with the specified values.VkVideoEncodeH264SessionCreateInfoEXTset(VkVideoEncodeH264SessionCreateInfoEXT src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkVideoEncodeH264SessionCreateInfoEXTsType(int value)Sets the specified value to thesType()field.VkVideoEncodeH264SessionCreateInfoEXTsType$Default()Sets theSTRUCTURE_TYPE_VIDEO_ENCODE_H264_SESSION_CREATE_INFO_EXTvalue to thesType()field.static voidvalidate(long struct)Validates pointer members that should not beNULL.
-
-
-
Constructor Detail
-
VkVideoEncodeH264SessionCreateInfoEXT
public VkVideoEncodeH264SessionCreateInfoEXT(java.nio.ByteBuffer container)
Creates aVkVideoEncodeH264SessionCreateInfoEXTinstance 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.
-
flags
public int flags()
a bitmask ofVkVideoEncodeH264CreateFlagsEXTspecifying H.264 encoder creation flags.
-
maxPictureSizeInMbs
public VkExtent2D maxPictureSizeInMbs()
specifies the syntax element pic_width_in_mbs_minus1 + 1 and the syntax element pic_height_in_map_units_minus1 + 1.
-
pStdExtensionVersion
public VkExtensionProperties pStdExtensionVersion()
a pointer to aVkExtensionPropertiesstructure specifying H.264 codec extensions.
-
sType
public VkVideoEncodeH264SessionCreateInfoEXT sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkVideoEncodeH264SessionCreateInfoEXT sType$Default()
Sets theSTRUCTURE_TYPE_VIDEO_ENCODE_H264_SESSION_CREATE_INFO_EXTvalue to thesType()field.
-
pNext
public VkVideoEncodeH264SessionCreateInfoEXT pNext(long value)
Sets the specified value to thepNext()field.
-
flags
public VkVideoEncodeH264SessionCreateInfoEXT flags(int value)
Sets the specified value to theflags()field.
-
maxPictureSizeInMbs
public VkVideoEncodeH264SessionCreateInfoEXT maxPictureSizeInMbs(VkExtent2D value)
Copies the specifiedVkExtent2Dto themaxPictureSizeInMbs()field.
-
maxPictureSizeInMbs
public VkVideoEncodeH264SessionCreateInfoEXT maxPictureSizeInMbs(java.util.function.Consumer<VkExtent2D> consumer)
Passes themaxPictureSizeInMbs()field to the specifiedConsumer.
-
pStdExtensionVersion
public VkVideoEncodeH264SessionCreateInfoEXT pStdExtensionVersion(VkExtensionProperties value)
Sets the address of the specifiedVkExtensionPropertiesto thepStdExtensionVersion()field.
-
set
public VkVideoEncodeH264SessionCreateInfoEXT set(int sType, long pNext, int flags, VkExtent2D maxPictureSizeInMbs, VkExtensionProperties pStdExtensionVersion)
Initializes this struct with the specified values.
-
set
public VkVideoEncodeH264SessionCreateInfoEXT set(VkVideoEncodeH264SessionCreateInfoEXT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkVideoEncodeH264SessionCreateInfoEXT malloc()
Returns a newVkVideoEncodeH264SessionCreateInfoEXTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkVideoEncodeH264SessionCreateInfoEXT calloc()
Returns a newVkVideoEncodeH264SessionCreateInfoEXTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkVideoEncodeH264SessionCreateInfoEXT create()
Returns a newVkVideoEncodeH264SessionCreateInfoEXTinstance allocated withBufferUtils.
-
create
public static VkVideoEncodeH264SessionCreateInfoEXT create(long address)
Returns a newVkVideoEncodeH264SessionCreateInfoEXTinstance for the specified memory address.
-
createSafe
@Nullable public static VkVideoEncodeH264SessionCreateInfoEXT createSafe(long address)
-
malloc
public static VkVideoEncodeH264SessionCreateInfoEXT.Buffer malloc(int capacity)
Returns a newVkVideoEncodeH264SessionCreateInfoEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkVideoEncodeH264SessionCreateInfoEXT.Buffer calloc(int capacity)
Returns a newVkVideoEncodeH264SessionCreateInfoEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkVideoEncodeH264SessionCreateInfoEXT.Buffer create(int capacity)
Returns a newVkVideoEncodeH264SessionCreateInfoEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkVideoEncodeH264SessionCreateInfoEXT.Buffer create(long address, int capacity)
Create aVkVideoEncodeH264SessionCreateInfoEXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkVideoEncodeH264SessionCreateInfoEXT.Buffer createSafe(long address, int capacity)
-
malloc
public static VkVideoEncodeH264SessionCreateInfoEXT malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkVideoEncodeH264SessionCreateInfoEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkVideoEncodeH264SessionCreateInfoEXT calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkVideoEncodeH264SessionCreateInfoEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkVideoEncodeH264SessionCreateInfoEXT.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkVideoEncodeH264SessionCreateInfoEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkVideoEncodeH264SessionCreateInfoEXT.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkVideoEncodeH264SessionCreateInfoEXT.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().
-
nflags
public static int nflags(long struct)
Unsafe version offlags().
-
nmaxPictureSizeInMbs
public static VkExtent2D nmaxPictureSizeInMbs(long struct)
Unsafe version ofmaxPictureSizeInMbs().
-
npStdExtensionVersion
public static VkExtensionProperties npStdExtensionVersion(long struct)
Unsafe version ofpStdExtensionVersion().
-
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.
-
nmaxPictureSizeInMbs
public static void nmaxPictureSizeInMbs(long struct, VkExtent2D value)Unsafe version ofmaxPictureSizeInMbs.
-
npStdExtensionVersion
public static void npStdExtensionVersion(long struct, VkExtensionProperties value)Unsafe version ofpStdExtensionVersion.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
-