Package org.lwjgl.vulkan
Class VkVideoEncodeH264NaluSliceEXT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkVideoEncodeH264NaluSliceEXT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkVideoEncodeH264NaluSliceEXT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifies H.264 encode slice NALU parameters.Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_VIDEO_ENCODE_H264_NALU_SLICE_EXTpNextmust beNULL- If
pReferenceFinalListsis notNULL,pReferenceFinalListsmust be a valid pointer to a validVkVideoEncodeH264ReferenceListsEXTstructure pSliceHeaderStdmust be a valid pointer to a validStdVideoEncodeH264SliceHeadervalue
See Also
VkVideoEncodeH264ReferenceListsEXT,VkVideoEncodeH264VclFrameInfoEXTLayout
struct VkVideoEncodeH264NaluSliceEXT { VkStructureTypesType(); void const *pNext(); uint32_tmbCount();VkVideoEncodeH264ReferenceListsEXTconst *pReferenceFinalLists();StdVideoEncodeH264SliceHeaderconst *pSliceHeaderStd(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkVideoEncodeH264NaluSliceEXT.BufferAn array ofVkVideoEncodeH264NaluSliceEXTstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intMBCOUNT
PNEXT
PREFERENCEFINALLISTS
PSLICEHEADERSTDThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkVideoEncodeH264NaluSliceEXT(java.nio.ByteBuffer container)Creates aVkVideoEncodeH264NaluSliceEXTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkVideoEncodeH264NaluSliceEXTcalloc()Returns a newVkVideoEncodeH264NaluSliceEXTinstance allocated withmemCalloc.static VkVideoEncodeH264NaluSliceEXT.Buffercalloc(int capacity)Returns a newVkVideoEncodeH264NaluSliceEXT.Bufferinstance allocated withmemCalloc.static VkVideoEncodeH264NaluSliceEXT.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkVideoEncodeH264NaluSliceEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkVideoEncodeH264NaluSliceEXTcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkVideoEncodeH264NaluSliceEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkVideoEncodeH264NaluSliceEXTcreate()Returns a newVkVideoEncodeH264NaluSliceEXTinstance allocated withBufferUtils.static VkVideoEncodeH264NaluSliceEXT.Buffercreate(int capacity)Returns a newVkVideoEncodeH264NaluSliceEXT.Bufferinstance allocated withBufferUtils.static VkVideoEncodeH264NaluSliceEXTcreate(long address)Returns a newVkVideoEncodeH264NaluSliceEXTinstance for the specified memory address.static VkVideoEncodeH264NaluSliceEXT.Buffercreate(long address, int capacity)Create aVkVideoEncodeH264NaluSliceEXT.Bufferinstance at the specified memory.static VkVideoEncodeH264NaluSliceEXTcreateSafe(long address)static VkVideoEncodeH264NaluSliceEXT.BuffercreateSafe(long address, int capacity)static VkVideoEncodeH264NaluSliceEXTmalloc()Returns a newVkVideoEncodeH264NaluSliceEXTinstance allocated withmemAlloc.static VkVideoEncodeH264NaluSliceEXT.Buffermalloc(int capacity)Returns a newVkVideoEncodeH264NaluSliceEXT.Bufferinstance allocated withmemAlloc.static VkVideoEncodeH264NaluSliceEXT.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkVideoEncodeH264NaluSliceEXT.Bufferinstance allocated on the specifiedMemoryStack.static VkVideoEncodeH264NaluSliceEXTmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkVideoEncodeH264NaluSliceEXTinstance allocated on the specifiedMemoryStack.intmbCount()the number of macroblocks in this slice.VkVideoEncodeH264NaluSliceEXTmbCount(int value)Sets the specified value to thembCount()field.static intnmbCount(long struct)Unsafe version ofmbCount().static voidnmbCount(long struct, int value)Unsafe version ofmbCount.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static VkVideoEncodeH264ReferenceListsEXTnpReferenceFinalLists(long struct)Unsafe version ofpReferenceFinalLists().static voidnpReferenceFinalLists(long struct, VkVideoEncodeH264ReferenceListsEXT value)Unsafe version ofpReferenceFinalLists.static StdVideoEncodeH264SliceHeadernpSliceHeaderStd(long struct)Unsafe version ofpSliceHeaderStd().static voidnpSliceHeaderStd(long struct, StdVideoEncodeH264SliceHeader value)Unsafe version ofpSliceHeaderStd.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.VkVideoEncodeH264NaluSliceEXTpNext(long value)Sets the specified value to thepNext()field.VkVideoEncodeH264ReferenceListsEXTpReferenceFinalLists()NULLor a pointer to aVkVideoEncodeH264ReferenceListsEXTstructure specifying the reference lists to be used for the current slice.VkVideoEncodeH264NaluSliceEXTpReferenceFinalLists(VkVideoEncodeH264ReferenceListsEXT value)Sets the address of the specifiedVkVideoEncodeH264ReferenceListsEXTto thepReferenceFinalLists()field.StdVideoEncodeH264SliceHeaderpSliceHeaderStd()a pointer to aStdVideoEncodeH264SliceHeaderstructure specifying the slice header for the current slice.VkVideoEncodeH264NaluSliceEXTpSliceHeaderStd(StdVideoEncodeH264SliceHeader value)Sets the address of the specifiedStdVideoEncodeH264SliceHeaderto thepSliceHeaderStd()field.VkVideoEncodeH264NaluSliceEXTset(int sType, long pNext, int mbCount, VkVideoEncodeH264ReferenceListsEXT pReferenceFinalLists, StdVideoEncodeH264SliceHeader pSliceHeaderStd)Initializes this struct with the specified values.VkVideoEncodeH264NaluSliceEXTset(VkVideoEncodeH264NaluSliceEXT src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkVideoEncodeH264NaluSliceEXTsType(int value)Sets the specified value to thesType()field.VkVideoEncodeH264NaluSliceEXTsType$Default()Sets theSTRUCTURE_TYPE_VIDEO_ENCODE_H264_NALU_SLICE_EXTvalue to thesType()field.static voidvalidate(long struct)Validates pointer members that should not beNULL.
-
-
-
Constructor Detail
-
VkVideoEncodeH264NaluSliceEXT
public VkVideoEncodeH264NaluSliceEXT(java.nio.ByteBuffer container)
Creates aVkVideoEncodeH264NaluSliceEXTinstance 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.
-
mbCount
public int mbCount()
the number of macroblocks in this slice.
-
pReferenceFinalLists
@Nullable public VkVideoEncodeH264ReferenceListsEXT pReferenceFinalLists()
NULLor a pointer to aVkVideoEncodeH264ReferenceListsEXTstructure specifying the reference lists to be used for the current slice. IfpReferenceFinalListsis notNULL, these reference lists override the reference lists provided inVkVideoEncodeH264VclFrameInfoEXT::pReferenceFinalLists.
-
pSliceHeaderStd
public StdVideoEncodeH264SliceHeader pSliceHeaderStd()
a pointer to aStdVideoEncodeH264SliceHeaderstructure specifying the slice header for the current slice.
-
sType
public VkVideoEncodeH264NaluSliceEXT sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkVideoEncodeH264NaluSliceEXT sType$Default()
Sets theSTRUCTURE_TYPE_VIDEO_ENCODE_H264_NALU_SLICE_EXTvalue to thesType()field.
-
pNext
public VkVideoEncodeH264NaluSliceEXT pNext(long value)
Sets the specified value to thepNext()field.
-
mbCount
public VkVideoEncodeH264NaluSliceEXT mbCount(int value)
Sets the specified value to thembCount()field.
-
pReferenceFinalLists
public VkVideoEncodeH264NaluSliceEXT pReferenceFinalLists(@Nullable VkVideoEncodeH264ReferenceListsEXT value)
Sets the address of the specifiedVkVideoEncodeH264ReferenceListsEXTto thepReferenceFinalLists()field.
-
pSliceHeaderStd
public VkVideoEncodeH264NaluSliceEXT pSliceHeaderStd(StdVideoEncodeH264SliceHeader value)
Sets the address of the specifiedStdVideoEncodeH264SliceHeaderto thepSliceHeaderStd()field.
-
set
public VkVideoEncodeH264NaluSliceEXT set(int sType, long pNext, int mbCount, @Nullable VkVideoEncodeH264ReferenceListsEXT pReferenceFinalLists, StdVideoEncodeH264SliceHeader pSliceHeaderStd)
Initializes this struct with the specified values.
-
set
public VkVideoEncodeH264NaluSliceEXT set(VkVideoEncodeH264NaluSliceEXT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkVideoEncodeH264NaluSliceEXT malloc()
Returns a newVkVideoEncodeH264NaluSliceEXTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkVideoEncodeH264NaluSliceEXT calloc()
Returns a newVkVideoEncodeH264NaluSliceEXTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkVideoEncodeH264NaluSliceEXT create()
Returns a newVkVideoEncodeH264NaluSliceEXTinstance allocated withBufferUtils.
-
create
public static VkVideoEncodeH264NaluSliceEXT create(long address)
Returns a newVkVideoEncodeH264NaluSliceEXTinstance for the specified memory address.
-
createSafe
@Nullable public static VkVideoEncodeH264NaluSliceEXT createSafe(long address)
-
malloc
public static VkVideoEncodeH264NaluSliceEXT.Buffer malloc(int capacity)
Returns a newVkVideoEncodeH264NaluSliceEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkVideoEncodeH264NaluSliceEXT.Buffer calloc(int capacity)
Returns a newVkVideoEncodeH264NaluSliceEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkVideoEncodeH264NaluSliceEXT.Buffer create(int capacity)
Returns a newVkVideoEncodeH264NaluSliceEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkVideoEncodeH264NaluSliceEXT.Buffer create(long address, int capacity)
Create aVkVideoEncodeH264NaluSliceEXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkVideoEncodeH264NaluSliceEXT.Buffer createSafe(long address, int capacity)
-
malloc
public static VkVideoEncodeH264NaluSliceEXT malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkVideoEncodeH264NaluSliceEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkVideoEncodeH264NaluSliceEXT calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkVideoEncodeH264NaluSliceEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkVideoEncodeH264NaluSliceEXT.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkVideoEncodeH264NaluSliceEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkVideoEncodeH264NaluSliceEXT.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkVideoEncodeH264NaluSliceEXT.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().
-
nmbCount
public static int nmbCount(long struct)
Unsafe version ofmbCount().
-
npReferenceFinalLists
@Nullable public static VkVideoEncodeH264ReferenceListsEXT npReferenceFinalLists(long struct)
Unsafe version ofpReferenceFinalLists().
-
npSliceHeaderStd
public static StdVideoEncodeH264SliceHeader npSliceHeaderStd(long struct)
Unsafe version ofpSliceHeaderStd().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nmbCount
public static void nmbCount(long struct, int value)Unsafe version ofmbCount.
-
npReferenceFinalLists
public static void npReferenceFinalLists(long struct, @Nullable VkVideoEncodeH264ReferenceListsEXT value)Unsafe version ofpReferenceFinalLists.
-
npSliceHeaderStd
public static void npSliceHeaderStd(long struct, StdVideoEncodeH264SliceHeader value)Unsafe version ofpSliceHeaderStd.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
-