Top Description Inners Fields Constructors Methods
org.lwjgl.vulkan

public Class VkVideoEncodeH264RateControlLayerInfoEXT

extends Struct<VkVideoEncodeH264RateControlLayerInfoEXT>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable
Imports
javax.annotation.*, java.nio.*, org.lwjgl.*, org.lwjgl.system.*

Structure describing H.264 per-layer rate control parameters.
Description

H.264-specific per-layer rate control parameters must be specified by adding a VkVideoEncodeH264RateControlLayerInfoEXT structure to the pNext chain of each VkVideoEncodeRateControlLayerInfoKHR structure in a call to CmdControlVideoCodingKHR command, when the command buffer context has an active video encode H.264 session.

Valid Usage (Implicit)
See Also

VkVideoEncodeH264FrameSizeEXT, VkVideoEncodeH264QpEXT

Layout


struct VkVideoEncodeH264RateControlLayerInfoEXT {
    VkStructureType sType;
    void const * pNext;
    VkBool32 useMinQp;
    VkVideoEncodeH264QpEXT minQp;
    VkBool32 useMaxQp;
    VkVideoEncodeH264QpEXT maxQp;
    VkBool32 useMaxFrameSize;
    VkVideoEncodeH264FrameSizeEXT maxFrameSize;
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
MAXFRAMESIZE

The struct member offsets.

public static final int
MAXQP

The struct member offsets.

public static final int
MINQP

The struct member offsets.

public static final int
PNEXT

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
STYPE

The struct member offsets.

public static final int
USEMAXFRAMESIZE

The struct member offsets.

public static final int
USEMAXQP

The struct member offsets.

public static final int
USEMINQP

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

AccessConstructor and Description
protected
public
VkVideoEncodeH264RateControlLayerInfoEXT(ByteBuffer container)

Creates a VkVideoEncodeH264RateControlLayerInfoEXT instance at the current position of the specified ByteBuffer container.

Method Summary

Modifier and TypeMethod and Description
public static VkVideoEncodeH264RateControlLayerInfoEXT
calloc()

Returns a new VkVideoEncodeH264RateControlLayerInfoEXT instance allocated with memCalloc.

public static VkVideoEncodeH264RateControlLayerInfoEXT.Buffer
calloc(int
the buffer capacity
capacity
)

Returns a new VkVideoEncodeH264RateControlLayerInfoEXT.Buffer instance allocated with memCalloc.

public static VkVideoEncodeH264RateControlLayerInfoEXT
calloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new VkVideoEncodeH264RateControlLayerInfoEXT instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static VkVideoEncodeH264RateControlLayerInfoEXT.Buffer
calloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new VkVideoEncodeH264RateControlLayerInfoEXT.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

protected VkVideoEncodeH264RateControlLayerInfoEXT
create(long
the struct memory address
address
,
ByteBuffer
an optional container buffer, to be referenced strongly by the struct instance.
container
)

Implements abstract org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.
public static VkVideoEncodeH264RateControlLayerInfoEXT
create()

Returns a new VkVideoEncodeH264RateControlLayerInfoEXT instance allocated with BufferUtils.

public static VkVideoEncodeH264RateControlLayerInfoEXT
create(long address)

Returns a new VkVideoEncodeH264RateControlLayerInfoEXT instance for the specified memory address.

public static VkVideoEncodeH264RateControlLayerInfoEXT.Buffer
create(int
the buffer capacity
capacity
)

Returns a new VkVideoEncodeH264RateControlLayerInfoEXT.Buffer instance allocated with BufferUtils.

public static VkVideoEncodeH264RateControlLayerInfoEXT.Buffer
create(long
the memory address
address
,
int
the buffer capacity
capacity
)

Create a VkVideoEncodeH264RateControlLayerInfoEXT.Buffer instance at the specified memory.

public static VkVideoEncodeH264RateControlLayerInfoEXT
createSafe(long address)

Like create, but returns null if address is NULL.

public static VkVideoEncodeH264RateControlLayerInfoEXT.Buffer
createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

public static VkVideoEncodeH264RateControlLayerInfoEXT
malloc()

Returns a new VkVideoEncodeH264RateControlLayerInfoEXT instance allocated with memAlloc.

public static VkVideoEncodeH264RateControlLayerInfoEXT.Buffer
malloc(int
the buffer capacity
capacity
)

Returns a new VkVideoEncodeH264RateControlLayerInfoEXT.Buffer instance allocated with memAlloc.

public static VkVideoEncodeH264RateControlLayerInfoEXT
malloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new VkVideoEncodeH264RateControlLayerInfoEXT instance allocated on the specified MemoryStack.

public static VkVideoEncodeH264RateControlLayerInfoEXT.Buffer
malloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new VkVideoEncodeH264RateControlLayerInfoEXT.Buffer instance allocated on the specified MemoryStack.

public VkVideoEncodeH264FrameSizeEXT
maxFrameSize()

provides the upper bound on the encoded frame size for each picture type.

public VkVideoEncodeH264RateControlLayerInfoEXT
public VkVideoEncodeH264RateControlLayerInfoEXT
maxFrameSize(Consumer<VkVideoEncodeH264FrameSizeEXT> consumer)

Passes the maxFrameSize field to the specified Consumer.

public VkVideoEncodeH264QpEXT
maxQp()

provides the upper bound on the QP values for each picture type, to be used in rate control calculations.

public VkVideoEncodeH264RateControlLayerInfoEXT
maxQp(VkVideoEncodeH264QpEXT value)

Copies the specified VkVideoEncodeH264QpEXT to the maxQp field.

public VkVideoEncodeH264RateControlLayerInfoEXT
maxQp(Consumer<VkVideoEncodeH264QpEXT> consumer)

Passes the maxQp field to the specified Consumer.

public VkVideoEncodeH264QpEXT
minQp()

provides the lower bound on the QP values for each picture type, to be used in rate control calculations.

public VkVideoEncodeH264RateControlLayerInfoEXT
minQp(VkVideoEncodeH264QpEXT value)

Copies the specified VkVideoEncodeH264QpEXT to the minQp field.

public VkVideoEncodeH264RateControlLayerInfoEXT
minQp(Consumer<VkVideoEncodeH264QpEXT> consumer)

Passes the minQp field to the specified Consumer.

public static VkVideoEncodeH264FrameSizeEXT
nmaxFrameSize(long struct)

Unsafe version of maxFrameSize.

public static void
nmaxFrameSize(long struct, VkVideoEncodeH264FrameSizeEXT value)

Unsafe version of maxFrameSize.

public static VkVideoEncodeH264QpEXT
nmaxQp(long struct)

Unsafe version of maxQp.

public static void
nmaxQp(long struct, VkVideoEncodeH264QpEXT value)

Unsafe version of maxQp.

public static VkVideoEncodeH264QpEXT
nminQp(long struct)

Unsafe version of minQp.

public static void
nminQp(long struct, VkVideoEncodeH264QpEXT value)

Unsafe version of minQp.

public static long
npNext(long struct)

Unsafe version of pNext.

public static void
npNext(long struct, long value)

Unsafe version of pNext.

public static int
nsType(long struct)

Unsafe version of sType.

public static void
nsType(long struct, int value)

Unsafe version of sType.

public static int
nuseMaxFrameSize(long struct)

Unsafe version of useMaxFrameSize.

public static void
nuseMaxFrameSize(long struct, int value)

Unsafe version of useMaxFrameSize.

public static int
nuseMaxQp(long struct)

Unsafe version of useMaxQp.

public static void
nuseMaxQp(long struct, int value)

Unsafe version of useMaxQp.

public static int
nuseMinQp(long struct)

Unsafe version of useMinQp.

public static void
nuseMinQp(long struct, int value)

Unsafe version of useMinQp.

public long
pNext()

NULL or a pointer to a structure extending this structure.

public VkVideoEncodeH264RateControlLayerInfoEXT
pNext(long value)

Sets the specified value to the pNext field.

public VkVideoEncodeH264RateControlLayerInfoEXT
set(int sType, long pNext, boolean useMinQp, VkVideoEncodeH264QpEXT minQp, boolean useMaxQp, VkVideoEncodeH264QpEXT maxQp, boolean useMaxFrameSize, VkVideoEncodeH264FrameSizeEXT maxFrameSize)

Initializes this struct with the specified values.

public VkVideoEncodeH264RateControlLayerInfoEXT

Returns:

this struct
set
(VkVideoEncodeH264RateControlLayerInfoEXT
the source struct
src
)

Copies the specified struct data to this struct.

public int
sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).
public int
sType()

a VkStructureType value identifying this structure.

public VkVideoEncodeH264RateControlLayerInfoEXT
sType(int value)

Sets the specified value to the sType field.

public VkVideoEncodeH264RateControlLayerInfoEXT
public boolean
useMaxFrameSize()

indicates whether the values within maxFrameSize should be used by the implementation.

public VkVideoEncodeH264RateControlLayerInfoEXT
useMaxFrameSize(boolean value)

Sets the specified value to the useMaxFrameSize field.

public boolean
useMaxQp()

indicates whether the values within maxQp should be used by the implementation.

public VkVideoEncodeH264RateControlLayerInfoEXT
useMaxQp(boolean value)

Sets the specified value to the useMaxQp field.

public boolean
useMinQp()

indicates whether the values within minQp should be used by the implementation.

public VkVideoEncodeH264RateControlLayerInfoEXT
useMinQp(boolean value)

Sets the specified value to the useMinQp field.

Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate