Package org.lwjgl.vulkan
Class VkVideoEncodeH264EmitPictureParametersEXT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkVideoEncodeH264EmitPictureParametersEXT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkVideoEncodeH264EmitPictureParametersEXT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifies H.264 encode SPS NALU insertion parameters.Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_VIDEO_ENCODE_H264_EMIT_PICTURE_PARAMETERS_EXTppsIdEntriesmust be a valid pointer to an array ofppsIdEntryCountuint8_tvaluesppsIdEntryCountmust be greater than 0
Layout
struct VkVideoEncodeH264EmitPictureParametersEXT { VkStructureTypesType(); void const *pNext(); uint8_tspsId(); VkBool32emitSpsEnable(); uint32_tppsIdEntryCount(); uint8_t const *ppsIdEntries(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkVideoEncodeH264EmitPictureParametersEXT.BufferAn array ofVkVideoEncodeH264EmitPictureParametersEXTstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intEMITSPSENABLE
PNEXT
PPSIDENTRIES
PPSIDENTRYCOUNTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSPSID
STYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkVideoEncodeH264EmitPictureParametersEXT(java.nio.ByteBuffer container)Creates aVkVideoEncodeH264EmitPictureParametersEXTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkVideoEncodeH264EmitPictureParametersEXTcalloc()Returns a newVkVideoEncodeH264EmitPictureParametersEXTinstance allocated withmemCalloc.static VkVideoEncodeH264EmitPictureParametersEXT.Buffercalloc(int capacity)Returns a newVkVideoEncodeH264EmitPictureParametersEXT.Bufferinstance allocated withmemCalloc.static VkVideoEncodeH264EmitPictureParametersEXT.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkVideoEncodeH264EmitPictureParametersEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkVideoEncodeH264EmitPictureParametersEXTcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkVideoEncodeH264EmitPictureParametersEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkVideoEncodeH264EmitPictureParametersEXTcreate()Returns a newVkVideoEncodeH264EmitPictureParametersEXTinstance allocated withBufferUtils.static VkVideoEncodeH264EmitPictureParametersEXT.Buffercreate(int capacity)Returns a newVkVideoEncodeH264EmitPictureParametersEXT.Bufferinstance allocated withBufferUtils.static VkVideoEncodeH264EmitPictureParametersEXTcreate(long address)Returns a newVkVideoEncodeH264EmitPictureParametersEXTinstance for the specified memory address.static VkVideoEncodeH264EmitPictureParametersEXT.Buffercreate(long address, int capacity)Create aVkVideoEncodeH264EmitPictureParametersEXT.Bufferinstance at the specified memory.static VkVideoEncodeH264EmitPictureParametersEXTcreateSafe(long address)static VkVideoEncodeH264EmitPictureParametersEXT.BuffercreateSafe(long address, int capacity)booleanemitSpsEnable()enables the emitting of the SPS structure with id ofspsId.VkVideoEncodeH264EmitPictureParametersEXTemitSpsEnable(boolean value)Sets the specified value to theemitSpsEnable()field.static VkVideoEncodeH264EmitPictureParametersEXTmalloc()Returns a newVkVideoEncodeH264EmitPictureParametersEXTinstance allocated withmemAlloc.static VkVideoEncodeH264EmitPictureParametersEXT.Buffermalloc(int capacity)Returns a newVkVideoEncodeH264EmitPictureParametersEXT.Bufferinstance allocated withmemAlloc.static VkVideoEncodeH264EmitPictureParametersEXT.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkVideoEncodeH264EmitPictureParametersEXT.Bufferinstance allocated on the specifiedMemoryStack.static VkVideoEncodeH264EmitPictureParametersEXTmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkVideoEncodeH264EmitPictureParametersEXTinstance allocated on the specifiedMemoryStack.static intnemitSpsEnable(long struct)Unsafe version ofemitSpsEnable().static voidnemitSpsEnable(long struct, int value)Unsafe version ofemitSpsEnable.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static java.nio.ByteBuffernppsIdEntries(long struct)Unsafe version ofppsIdEntries.static voidnppsIdEntries(long struct, java.nio.ByteBuffer value)Unsafe version ofppsIdEntries.static intnppsIdEntryCount(long struct)Unsafe version ofppsIdEntryCount().static voidnppsIdEntryCount(long struct, int value)Sets the specified value to theppsIdEntryCountfield of the specifiedstruct.static bytenspsId(long struct)Unsafe version ofspsId().static voidnspsId(long struct, byte value)Unsafe version ofspsId.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.VkVideoEncodeH264EmitPictureParametersEXTpNext(long value)Sets the specified value to thepNext()field.java.nio.ByteBufferppsIdEntries()a pointer to an array of H.264 PPS IDs for the H.264 PPS to insert in the bitstream.VkVideoEncodeH264EmitPictureParametersEXTppsIdEntries(java.nio.ByteBuffer value)Sets the address of the specifiedByteBufferto theppsIdEntries()field.intppsIdEntryCount()the number of entries in theppsIdEntries.VkVideoEncodeH264EmitPictureParametersEXTset(int sType, long pNext, byte spsId, boolean emitSpsEnable, java.nio.ByteBuffer ppsIdEntries)Initializes this struct with the specified values.VkVideoEncodeH264EmitPictureParametersEXTset(VkVideoEncodeH264EmitPictureParametersEXT src)Copies the specified struct data to this struct.intsizeof()bytespsId()the H.264 SPS ID for the H.264 SPS to insert in the bitstream.VkVideoEncodeH264EmitPictureParametersEXTspsId(byte value)Sets the specified value to thespsId()field.intsType()the type of this structure.VkVideoEncodeH264EmitPictureParametersEXTsType(int value)Sets the specified value to thesType()field.VkVideoEncodeH264EmitPictureParametersEXTsType$Default()Sets theSTRUCTURE_TYPE_VIDEO_ENCODE_H264_EMIT_PICTURE_PARAMETERS_EXTvalue to thesType()field.static voidvalidate(long struct)Validates pointer members that should not beNULL.
-
-
-
Constructor Detail
-
VkVideoEncodeH264EmitPictureParametersEXT
public VkVideoEncodeH264EmitPictureParametersEXT(java.nio.ByteBuffer container)
Creates aVkVideoEncodeH264EmitPictureParametersEXTinstance 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.
-
spsId
public byte spsId()
the H.264 SPS ID for the H.264 SPS to insert in the bitstream. The SPS ID must match the SPS provided inspsStdofVkVideoEncodeH264SessionParametersCreateInfoEXT. This is retrieved from theVkVideoSessionParametersKHRobject provided inVkVideoBeginCodingInfoKHR.
-
emitSpsEnable
public boolean emitSpsEnable()
enables the emitting of the SPS structure with id ofspsId.
-
ppsIdEntryCount
public int ppsIdEntryCount()
the number of entries in theppsIdEntries. If this parameter is 0 then no pps entries are going to be emitted in the bitstream.
-
ppsIdEntries
public java.nio.ByteBuffer ppsIdEntries()
a pointer to an array of H.264 PPS IDs for the H.264 PPS to insert in the bitstream. The PPS IDs must match one of the IDs of the PPS(s) provided inpPpsStdofVkVideoEncodeH264SessionParametersCreateInfoEXTto identify the PPS parameter set to insert in the bitstream. This is retrieved from theVkVideoSessionParametersKHRobject provided inVkVideoBeginCodingInfoKHR.
-
sType
public VkVideoEncodeH264EmitPictureParametersEXT sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkVideoEncodeH264EmitPictureParametersEXT sType$Default()
Sets theSTRUCTURE_TYPE_VIDEO_ENCODE_H264_EMIT_PICTURE_PARAMETERS_EXTvalue to thesType()field.
-
pNext
public VkVideoEncodeH264EmitPictureParametersEXT pNext(long value)
Sets the specified value to thepNext()field.
-
spsId
public VkVideoEncodeH264EmitPictureParametersEXT spsId(byte value)
Sets the specified value to thespsId()field.
-
emitSpsEnable
public VkVideoEncodeH264EmitPictureParametersEXT emitSpsEnable(boolean value)
Sets the specified value to theemitSpsEnable()field.
-
ppsIdEntries
public VkVideoEncodeH264EmitPictureParametersEXT ppsIdEntries(java.nio.ByteBuffer value)
Sets the address of the specifiedByteBufferto theppsIdEntries()field.
-
set
public VkVideoEncodeH264EmitPictureParametersEXT set(int sType, long pNext, byte spsId, boolean emitSpsEnable, java.nio.ByteBuffer ppsIdEntries)
Initializes this struct with the specified values.
-
set
public VkVideoEncodeH264EmitPictureParametersEXT set(VkVideoEncodeH264EmitPictureParametersEXT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkVideoEncodeH264EmitPictureParametersEXT malloc()
Returns a newVkVideoEncodeH264EmitPictureParametersEXTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkVideoEncodeH264EmitPictureParametersEXT calloc()
Returns a newVkVideoEncodeH264EmitPictureParametersEXTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkVideoEncodeH264EmitPictureParametersEXT create()
Returns a newVkVideoEncodeH264EmitPictureParametersEXTinstance allocated withBufferUtils.
-
create
public static VkVideoEncodeH264EmitPictureParametersEXT create(long address)
Returns a newVkVideoEncodeH264EmitPictureParametersEXTinstance for the specified memory address.
-
createSafe
@Nullable public static VkVideoEncodeH264EmitPictureParametersEXT createSafe(long address)
-
malloc
public static VkVideoEncodeH264EmitPictureParametersEXT.Buffer malloc(int capacity)
Returns a newVkVideoEncodeH264EmitPictureParametersEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkVideoEncodeH264EmitPictureParametersEXT.Buffer calloc(int capacity)
Returns a newVkVideoEncodeH264EmitPictureParametersEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkVideoEncodeH264EmitPictureParametersEXT.Buffer create(int capacity)
Returns a newVkVideoEncodeH264EmitPictureParametersEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkVideoEncodeH264EmitPictureParametersEXT.Buffer create(long address, int capacity)
Create aVkVideoEncodeH264EmitPictureParametersEXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkVideoEncodeH264EmitPictureParametersEXT.Buffer createSafe(long address, int capacity)
-
malloc
public static VkVideoEncodeH264EmitPictureParametersEXT malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkVideoEncodeH264EmitPictureParametersEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkVideoEncodeH264EmitPictureParametersEXT calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkVideoEncodeH264EmitPictureParametersEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkVideoEncodeH264EmitPictureParametersEXT.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkVideoEncodeH264EmitPictureParametersEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkVideoEncodeH264EmitPictureParametersEXT.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkVideoEncodeH264EmitPictureParametersEXT.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().
-
nspsId
public static byte nspsId(long struct)
Unsafe version ofspsId().
-
nemitSpsEnable
public static int nemitSpsEnable(long struct)
Unsafe version ofemitSpsEnable().
-
nppsIdEntryCount
public static int nppsIdEntryCount(long struct)
Unsafe version ofppsIdEntryCount().
-
nppsIdEntries
public static java.nio.ByteBuffer nppsIdEntries(long struct)
Unsafe version ofppsIdEntries.
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nspsId
public static void nspsId(long struct, byte value)Unsafe version ofspsId.
-
nemitSpsEnable
public static void nemitSpsEnable(long struct, int value)Unsafe version ofemitSpsEnable.
-
nppsIdEntryCount
public static void nppsIdEntryCount(long struct, int value)Sets the specified value to theppsIdEntryCountfield of the specifiedstruct.
-
nppsIdEntries
public static void nppsIdEntries(long struct, java.nio.ByteBuffer value)Unsafe version ofppsIdEntries.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
-