Package org.lwjgl.vulkan
Class VkVideoDecodeH264ProfileEXT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkVideoDecodeH264ProfileEXT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkVideoDecodeH264ProfileEXT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying H.264 decode profile.Description
Note
When passing
VkVideoDecodeH264ProfileEXTtoCreateVideoSessionKHRin thepNextchain ofVkVideoSessionCreateInfoKHR, requests for apictureLayoutnot supported by the implementation will result in failure of the command.Valid Usage
- If the
VkVideoDecodeH264ProfileEXTstructure is included in thepNextchain of theVkVideoCapabilitiesKHRstructure passed toGetPhysicalDeviceVideoCapabilitiesKHR, the value inpictureLayoutis treated as a bitmask of requested picture layouts. It is always valid to use the valueVIDEO_DECODE_H264_PICTURE_LAYOUT_PROGRESSIVE_EXTas the implementation is guaranteed to support decoding of progressive content. - If the
VkVideoDecodeH264ProfileEXTstructure is included in thepNextchain of theVkVideoSessionCreateInfoKHRstructure passed toCreateVideoSessionKHR, the value inpictureLayoutmust be exactly one ofVIDEO_DECODE_H264_PICTURE_LAYOUT_PROGRESSIVE_EXT,VIDEO_DECODE_H264_PICTURE_LAYOUT_INTERLACED_INTERLEAVED_LINES_BIT_EXTorVIDEO_DECODE_H264_PICTURE_LAYOUT_INTERLACED_SEPARATE_PLANES_BIT_EXT.
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_VIDEO_DECODE_H264_PROFILE_EXT
Layout
struct VkVideoDecodeH264ProfileEXT { VkStructureTypesType(); void const *pNext(); StdVideoH264ProfileIdcstdProfileIdc(); VkVideoDecodeH264PictureLayoutFlagsEXTpictureLayout(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkVideoDecodeH264ProfileEXT.BufferAn array ofVkVideoDecodeH264ProfileEXTstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intPICTURELAYOUT
PNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTDPROFILEIDC
STYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkVideoDecodeH264ProfileEXT(java.nio.ByteBuffer container)Creates aVkVideoDecodeH264ProfileEXTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkVideoDecodeH264ProfileEXTcalloc()Returns a newVkVideoDecodeH264ProfileEXTinstance allocated withmemCalloc.static VkVideoDecodeH264ProfileEXT.Buffercalloc(int capacity)Returns a newVkVideoDecodeH264ProfileEXT.Bufferinstance allocated withmemCalloc.static VkVideoDecodeH264ProfileEXT.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkVideoDecodeH264ProfileEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkVideoDecodeH264ProfileEXTcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkVideoDecodeH264ProfileEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkVideoDecodeH264ProfileEXTcreate()Returns a newVkVideoDecodeH264ProfileEXTinstance allocated withBufferUtils.static VkVideoDecodeH264ProfileEXT.Buffercreate(int capacity)Returns a newVkVideoDecodeH264ProfileEXT.Bufferinstance allocated withBufferUtils.static VkVideoDecodeH264ProfileEXTcreate(long address)Returns a newVkVideoDecodeH264ProfileEXTinstance for the specified memory address.static VkVideoDecodeH264ProfileEXT.Buffercreate(long address, int capacity)Create aVkVideoDecodeH264ProfileEXT.Bufferinstance at the specified memory.static VkVideoDecodeH264ProfileEXTcreateSafe(long address)static VkVideoDecodeH264ProfileEXT.BuffercreateSafe(long address, int capacity)static VkVideoDecodeH264ProfileEXTmalloc()Returns a newVkVideoDecodeH264ProfileEXTinstance allocated withmemAlloc.static VkVideoDecodeH264ProfileEXT.Buffermalloc(int capacity)Returns a newVkVideoDecodeH264ProfileEXT.Bufferinstance allocated withmemAlloc.static VkVideoDecodeH264ProfileEXT.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkVideoDecodeH264ProfileEXT.Bufferinstance allocated on the specifiedMemoryStack.static VkVideoDecodeH264ProfileEXTmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkVideoDecodeH264ProfileEXTinstance allocated on the specifiedMemoryStack.static intnpictureLayout(long struct)Unsafe version ofpictureLayout().static voidnpictureLayout(long struct, int value)Unsafe version ofpictureLayout.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static intnstdProfileIdc(long struct)Unsafe version ofstdProfileIdc().static voidnstdProfileIdc(long struct, int value)Unsafe version ofstdProfileIdc.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.intpictureLayout()a bitmask ofVkVideoDecodeH264PictureLayoutFlagBitsEXTspecifying the layout of the decoded picture’s contents depending on the nature (progressive vs.VkVideoDecodeH264ProfileEXTpictureLayout(int value)Sets the specified value to thepictureLayout()field.longpNext()NULLor a pointer to a structure extending this structure.VkVideoDecodeH264ProfileEXTpNext(long value)Sets the specified value to thepNext()field.VkVideoDecodeH264ProfileEXTset(int sType, long pNext, int stdProfileIdc, int pictureLayout)Initializes this struct with the specified values.VkVideoDecodeH264ProfileEXTset(VkVideoDecodeH264ProfileEXT src)Copies the specified struct data to this struct.intsizeof()intstdProfileIdc()aStdVideoH264ProfileIdcvalue specifying the H.264 codec profile IDCVkVideoDecodeH264ProfileEXTstdProfileIdc(int value)Sets the specified value to thestdProfileIdc()field.intsType()the type of this structure.VkVideoDecodeH264ProfileEXTsType(int value)Sets the specified value to thesType()field.VkVideoDecodeH264ProfileEXTsType$Default()Sets theSTRUCTURE_TYPE_VIDEO_DECODE_H264_PROFILE_EXTvalue to thesType()field.
-
-
-
Constructor Detail
-
VkVideoDecodeH264ProfileEXT
public VkVideoDecodeH264ProfileEXT(java.nio.ByteBuffer container)
Creates aVkVideoDecodeH264ProfileEXTinstance 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.
-
stdProfileIdc
public int stdProfileIdc()
aStdVideoH264ProfileIdcvalue specifying the H.264 codec profile IDC
-
pictureLayout
public int pictureLayout()
a bitmask ofVkVideoDecodeH264PictureLayoutFlagBitsEXTspecifying the layout of the decoded picture’s contents depending on the nature (progressive vs. interlaced) of the input content.
-
sType
public VkVideoDecodeH264ProfileEXT sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkVideoDecodeH264ProfileEXT sType$Default()
Sets theSTRUCTURE_TYPE_VIDEO_DECODE_H264_PROFILE_EXTvalue to thesType()field.
-
pNext
public VkVideoDecodeH264ProfileEXT pNext(long value)
Sets the specified value to thepNext()field.
-
stdProfileIdc
public VkVideoDecodeH264ProfileEXT stdProfileIdc(int value)
Sets the specified value to thestdProfileIdc()field.
-
pictureLayout
public VkVideoDecodeH264ProfileEXT pictureLayout(int value)
Sets the specified value to thepictureLayout()field.
-
set
public VkVideoDecodeH264ProfileEXT set(int sType, long pNext, int stdProfileIdc, int pictureLayout)
Initializes this struct with the specified values.
-
set
public VkVideoDecodeH264ProfileEXT set(VkVideoDecodeH264ProfileEXT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkVideoDecodeH264ProfileEXT malloc()
Returns a newVkVideoDecodeH264ProfileEXTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkVideoDecodeH264ProfileEXT calloc()
Returns a newVkVideoDecodeH264ProfileEXTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkVideoDecodeH264ProfileEXT create()
Returns a newVkVideoDecodeH264ProfileEXTinstance allocated withBufferUtils.
-
create
public static VkVideoDecodeH264ProfileEXT create(long address)
Returns a newVkVideoDecodeH264ProfileEXTinstance for the specified memory address.
-
createSafe
@Nullable public static VkVideoDecodeH264ProfileEXT createSafe(long address)
-
malloc
public static VkVideoDecodeH264ProfileEXT.Buffer malloc(int capacity)
Returns a newVkVideoDecodeH264ProfileEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkVideoDecodeH264ProfileEXT.Buffer calloc(int capacity)
Returns a newVkVideoDecodeH264ProfileEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkVideoDecodeH264ProfileEXT.Buffer create(int capacity)
Returns a newVkVideoDecodeH264ProfileEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkVideoDecodeH264ProfileEXT.Buffer create(long address, int capacity)
Create aVkVideoDecodeH264ProfileEXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkVideoDecodeH264ProfileEXT.Buffer createSafe(long address, int capacity)
-
malloc
public static VkVideoDecodeH264ProfileEXT malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkVideoDecodeH264ProfileEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkVideoDecodeH264ProfileEXT calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkVideoDecodeH264ProfileEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkVideoDecodeH264ProfileEXT.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkVideoDecodeH264ProfileEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkVideoDecodeH264ProfileEXT.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkVideoDecodeH264ProfileEXT.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().
-
nstdProfileIdc
public static int nstdProfileIdc(long struct)
Unsafe version ofstdProfileIdc().
-
npictureLayout
public static int npictureLayout(long struct)
Unsafe version ofpictureLayout().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nstdProfileIdc
public static void nstdProfileIdc(long struct, int value)Unsafe version ofstdProfileIdc.
-
npictureLayout
public static void npictureLayout(long struct, int value)Unsafe version ofpictureLayout.
-
-