Class VkVideoBeginCodingInfoKHR

  • All Implemented Interfaces:
    java.lang.AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

    public class VkVideoBeginCodingInfoKHR
    extends org.lwjgl.system.Struct
    implements org.lwjgl.system.NativeResource
    Structure specifying parameters of decode starts.
    Valid Usage
    • VkVideoBeginCodingInfoKHR::referenceSlotCount must not exceed the value specified in VkVideoSessionCreateInfoKHR::maxReferencePicturesSlotsCount when creating the video session object that is being provided in videoSession
    • If videoSessionParameters is not NULL_HANDLE, it must have been created using videoSession as a parent object
    Valid Usage (Implicit)
    • sType must be STRUCTURE_TYPE_VIDEO_BEGIN_CODING_INFO_KHR
    • pNext must be NULL
    • flags must be 0
    • codecQualityPreset must be a valid combination of VkVideoCodingQualityPresetFlagBitsKHR values
    • codecQualityPreset must not be 0
    • videoSession must be a valid VkVideoSessionKHR handle
    • If videoSessionParameters is not NULL_HANDLE, videoSessionParameters must be a valid VkVideoSessionParametersKHR handle
    • If referenceSlotCount is not 0, pReferenceSlots must be a valid pointer to an array of referenceSlotCount valid VkVideoReferenceSlotKHR structures
    • If videoSessionParameters is a valid handle, it must have been created, allocated, or retrieved from videoSession
    • Both of videoSession, and videoSessionParameters that are valid handles of non-ignored parameters must have been created, allocated, or retrieved from the same VkDevice
    See Also

    VkVideoReferenceSlotKHR, CmdBeginVideoCodingKHR

    Layout

    
     struct VkVideoBeginCodingInfoKHR {
         VkStructureType sType();
         void const * pNext();
         VkVideoBeginCodingFlagsKHR flags();
         VkVideoCodingQualityPresetFlagsKHR codecQualityPreset();
         VkVideoSessionKHR videoSession();
         VkVideoSessionParametersKHR videoSessionParameters();
         uint32_t referenceSlotCount();
         VkVideoReferenceSlotKHR const * pReferenceSlots();
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • STYPE, PNEXT, FLAGS, CODECQUALITYPRESET, VIDEOSESSION, VIDEOSESSIONPARAMETERS, REFERENCESLOTCOUNT, PREFERENCESLOTS

        The struct member offsets.
    • Constructor Detail

      • VkVideoBeginCodingInfoKHR

        public VkVideoBeginCodingInfoKHR​(java.nio.ByteBuffer container)
        Creates a VkVideoBeginCodingInfoKHR 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 Detail

      • sizeof

        public int sizeof()
        Specified by:
        sizeof in class org.lwjgl.system.Struct
      • sType

        public int sType()
        the type of this structure.
      • pNext

        public long pNext()
        NULL or a pointer to a structure extending this structure.
      • flags

        public int flags()
        reserved for future use.
      • codecQualityPreset

        public int codecQualityPreset()
        a bitmask of VkVideoCodingQualityPresetFlagBitsKHR specifying the Video Decode or Encode quality preset.
      • videoSession

        public long videoSession()
        the video session object to be bound for the processing of the video commands.
      • videoSessionParameters

        public long videoSessionParameters()
        NULL_HANDLE or a handle of a VkVideoSessionParametersKHR object to be used for the processing of the video commands. If NULL_HANDLE, then no video session parameters apply to this command buffer context.
      • referenceSlotCount

        public int referenceSlotCount()
        the number of reference slot entries provided in pReferenceSlots.
      • malloc

        public static VkVideoBeginCodingInfoKHR malloc()
        Returns a new VkVideoBeginCodingInfoKHR instance allocated with memAlloc. The instance must be explicitly freed.
      • calloc

        public static VkVideoBeginCodingInfoKHR calloc()
        Returns a new VkVideoBeginCodingInfoKHR instance allocated with memCalloc. The instance must be explicitly freed.
      • create

        public static VkVideoBeginCodingInfoKHR create()
        Returns a new VkVideoBeginCodingInfoKHR instance allocated with BufferUtils.
      • create

        public static VkVideoBeginCodingInfoKHR create​(long address)
        Returns a new VkVideoBeginCodingInfoKHR instance for the specified memory address.
      • malloc

        public static VkVideoBeginCodingInfoKHR malloc​(org.lwjgl.system.MemoryStack stack)
        Returns a new VkVideoBeginCodingInfoKHR instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
      • calloc

        public static VkVideoBeginCodingInfoKHR calloc​(org.lwjgl.system.MemoryStack stack)
        Returns a new VkVideoBeginCodingInfoKHR instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
      • calloc

        public static VkVideoBeginCodingInfoKHR.Buffer calloc​(int capacity,
                                                              org.lwjgl.system.MemoryStack stack)
        Returns a new VkVideoBeginCodingInfoKHR.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • nsType

        public static int nsType​(long struct)
        Unsafe version of sType().
      • npNext

        public static long npNext​(long struct)
        Unsafe version of pNext().
      • nflags

        public static int nflags​(long struct)
        Unsafe version of flags().
      • ncodecQualityPreset

        public static int ncodecQualityPreset​(long struct)
        Unsafe version of codecQualityPreset().
      • nvideoSession

        public static long nvideoSession​(long struct)
        Unsafe version of videoSession().
      • nvideoSessionParameters

        public static long nvideoSessionParameters​(long struct)
        Unsafe version of videoSessionParameters().
      • nreferenceSlotCount

        public static int nreferenceSlotCount​(long struct)
        Unsafe version of referenceSlotCount().
      • nsType

        public static void nsType​(long struct,
                                  int value)
        Unsafe version of sType.
      • npNext

        public static void npNext​(long struct,
                                  long value)
        Unsafe version of pNext.
      • nflags

        public static void nflags​(long struct,
                                  int value)
        Unsafe version of flags.
      • ncodecQualityPreset

        public static void ncodecQualityPreset​(long struct,
                                               int value)
        Unsafe version of codecQualityPreset.
      • nvideoSession

        public static void nvideoSession​(long struct,
                                         long value)
        Unsafe version of videoSession.
      • nvideoSessionParameters

        public static void nvideoSessionParameters​(long struct,
                                                   long value)
        Unsafe version of videoSessionParameters.
      • nreferenceSlotCount

        public static void nreferenceSlotCount​(long struct,
                                               int value)
        Sets the specified value to the referenceSlotCount field of the specified struct.
      • validate

        public static void validate​(long struct)
        Validates pointer members that should not be NULL.
        Parameters:
        struct - the struct to validate