Class VkVideoEncodeH264RateControlLayerInfoKHR

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VkVideoEncodeH264RateControlLayerInfoKHR>
org.lwjgl.vulkan.VkVideoEncodeH264RateControlLayerInfoKHR
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

public class VkVideoEncodeH264RateControlLayerInfoKHR extends org.lwjgl.system.Struct<VkVideoEncodeH264RateControlLayerInfoKHR> implements org.lwjgl.system.NativeResource
Structure describing H.264 per-layer rate control parameters.
Description

When used, the values in minQp and maxQp guarantee that the effective QP values used by the implementation will respect those lower and upper bounds, respectively. However, limiting the range of QP values that the implementation is able to use will also limit the capabilities of the implementation’s rate control algorithm to comply to other constraints. In particular, the implementation may not be able to comply to the following:

Note

In general, applications need to configure rate control parameters appropriately in order to be able to get the desired rate control behavior, as described in the Video Encode Rate Control section.

When an instance of this structure is included in the pNext chain of a VkVideoEncodeRateControlLayerInfoKHR structure specified in one of the elements of the pLayers array member of the VkVideoEncodeRateControlInfoKHR structure passed to the CmdControlVideoCodingKHR command, VkVideoCodingControlInfoKHR::flags includes VIDEO_CODING_CONTROL_ENCODE_RATE_CONTROL_BIT_KHR, and the bound video session was created with the video codec operation VIDEO_CODEC_OPERATION_ENCODE_H264_BIT_KHR, it specifies the H.264-specific rate control parameters of the rate control layer corresponding to that element of pLayers.

Valid Usage
Valid Usage (Implicit)
See Also

VkVideoEncodeH264FrameSizeKHR, VkVideoEncodeH264QpKHR

Layout


 struct VkVideoEncodeH264RateControlLayerInfoKHR {
     VkStructureType sType();
     void const * pNext();
     VkBool32 useMinQp();
     VkVideoEncodeH264QpKHR minQp();
     VkBool32 useMaxQp();
     VkVideoEncodeH264QpKHR maxQp();
     VkBool32 useMaxFrameSize();
     VkVideoEncodeH264FrameSizeKHR maxFrameSize();
 }