Class VkVideoEncodeInfoKHR

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

public class VkVideoEncodeInfoKHR extends org.lwjgl.system.Struct<VkVideoEncodeInfoKHR> implements org.lwjgl.system.NativeResource
Structure to chain codec-specific structures to.
Description

The coded size of the encode operation is specified in codedExtent of srcPictureResource.

Multiple CmdEncodeVideoKHR commands may be recorded within a Vulkan Video Encode Context. The execution of each CmdEncodeVideoKHR command will result in generating codec-specific bitstream units. These bitstream units are generated consecutively into the bitstream buffer specified in dstBuffer of a VkVideoEncodeInfoKHR structure within the CmdBeginVideoCodingKHR command. The produced bitstream is the sum of all these bitstream units, including any padding between the bitstream units. Any bitstream padding must be filled with data compliant to the codec standard so as not to cause any syntax errors during decoding of the bitstream units with the padding included. The range of the bitstream buffer written can be queried via video encode feedback queries.

Valid Usage
  • The bound video session must not be in uninitialized state at the time the command is executed on the device
Valid Usage (Implicit)
See Also

VkVideoPictureResourceInfoKHR, VkVideoReferenceSlotInfoKHR, CmdEncodeVideoKHR

Layout


 struct VkVideoEncodeInfoKHR {
     VkStructureType sType();
     void const * pNext();
     VkVideoEncodeFlagsKHR flags();
     VkBuffer dstBuffer();
     VkDeviceSize dstBufferOffset();
     VkDeviceSize dstBufferRange();
     VkVideoPictureResourceInfoKHR srcPictureResource();
     VkVideoReferenceSlotInfoKHR const * pSetupReferenceSlot();
     uint32_t referenceSlotCount();
     VkVideoReferenceSlotInfoKHR const * pReferenceSlots();
     uint32_t precedingExternallyEncodedBytes();
 }
  • 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.
    • DSTBUFFER

      public static final int DSTBUFFER
      The struct member offsets.
    • DSTBUFFEROFFSET

      public static final int DSTBUFFEROFFSET
      The struct member offsets.
    • DSTBUFFERRANGE

      public static final int DSTBUFFERRANGE
      The struct member offsets.
    • SRCPICTURERESOURCE

      public static final int SRCPICTURERESOURCE
      The struct member offsets.
    • PSETUPREFERENCESLOT

      public static final int PSETUPREFERENCESLOT
      The struct member offsets.
    • REFERENCESLOTCOUNT

      public static final int REFERENCESLOTCOUNT
      The struct member offsets.
    • PREFERENCESLOTS

      public static final int PREFERENCESLOTS
      The struct member offsets.
    • PRECEDINGEXTERNALLYENCODEDBYTES

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

    • VkVideoEncodeInfoKHR

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