Class VkVideoEncodeH265RateControlInfoKHR

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

public class VkVideoEncodeH265RateControlInfoKHR extends org.lwjgl.system.Struct<VkVideoEncodeH265RateControlInfoKHR> implements org.lwjgl.system.NativeResource
Structure describing H.265 stream rate control parameters.
Description

When an instance of this structure is included in the pNext chain of the VkVideoCodingControlInfoKHR structure passed to the CmdControlVideoCodingKHR command, and VkVideoCodingControlInfoKHR::flags includes VIDEO_CODING_CONTROL_ENCODE_RATE_CONTROL_BIT_KHR, the parameters in this structure are used as guidance for the implementation’s rate control algorithm (see Video Coding Control).

If flags includes VIDEO_ENCODE_H265_RATE_CONTROL_ATTEMPT_HRD_COMPLIANCE_BIT_KHR, then the rate control state is reset to an initial state to meet HRD compliance requirements. Otherwise the new rate control state may be applied without a reset depending on the implementation and the specified rate control parameters.

Note

It would be possible to infer the picture type to be used when encoding a frame, on the basis of the values provided for consecutiveBFrameCount, idrPeriod, and gopFrameCount, but this inferred picture type will not be used by implementations to override the picture type provided to the video encode operation.

Valid Usage
Valid Usage (Implicit)

Layout


 struct VkVideoEncodeH265RateControlInfoKHR {
     VkStructureType sType();
     void const * pNext();
     VkVideoEncodeH265RateControlFlagsKHR flags();
     uint32_t gopFrameCount();
     uint32_t idrPeriod();
     uint32_t consecutiveBFrameCount();
     uint32_t subLayerCount();
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • STYPE

      public static final int STYPE
      The struct member offsets.
    • PNEXT

      public static final int PNEXT
      The struct member offsets.
    • FLAGS

      public static final int FLAGS
      The struct member offsets.
    • GOPFRAMECOUNT

      public static final int GOPFRAMECOUNT
      The struct member offsets.
    • IDRPERIOD

      public static final int IDRPERIOD
      The struct member offsets.
    • CONSECUTIVEBFRAMECOUNT

      public static final int CONSECUTIVEBFRAMECOUNT
      The struct member offsets.
    • SUBLAYERCOUNT

      public static final int SUBLAYERCOUNT
      The struct member offsets.
  • Constructor Details

    • VkVideoEncodeH265RateControlInfoKHR

      public VkVideoEncodeH265RateControlInfoKHR(ByteBuffer container)
      Creates a VkVideoEncodeH265RateControlInfoKHR instance at the current position of the specified ByteBuffer container. 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 Details