Class VkVideoEncodeH264RateControlInfoEXT

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

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

In order to provide H.264-specific stream rate control parameters, add a VkVideoEncodeH264RateControlInfoEXT structure to the pNext chain of the VkVideoEncodeRateControlInfoKHR structure in the pNext chain of the VkVideoCodingControlInfoKHR structure passed to the CmdControlVideoCodingKHR command.

The parameters from this structure act as a guidance for implementations to apply various rate control heuristics.

It is 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 in CmdEncodeVideoKHR. Additionally, it is not required for the video session to be reset if the inferred picture type does not match the actual picture type.

Valid Usage (Implicit)

Layout


 struct VkVideoEncodeH264RateControlInfoEXT {
     VkStructureType sType();
     void const * pNext();
     VkVideoEncodeH264RateControlFlagsEXT flags();
     uint32_t gopFrameCount();
     uint32_t idrPeriod();
     uint32_t consecutiveBFrameCount();
     uint32_t temporalLayerCount();
 }
  • 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.
    • TEMPORALLAYERCOUNT

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

    • VkVideoEncodeH264RateControlInfoEXT

      public VkVideoEncodeH264RateControlInfoEXT(ByteBuffer container)
      Creates a VkVideoEncodeH264RateControlInfoEXT 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