Class VkVideoEncodeH264QpEXT

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

    public class VkVideoEncodeH264QpEXT
    extends org.lwjgl.system.Struct
    implements org.lwjgl.system.NativeResource
    Structure describing H.264 QP values per picture type.
    See Also

    VkVideoEncodeH264RateControlLayerInfoEXT

    Layout

    
     struct VkVideoEncodeH264QpEXT {
         int32_t qpI();
         int32_t qpP();
         int32_t qpB();
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • QPI, QPP, QPB

        The struct member offsets.
    • Constructor Detail

      • VkVideoEncodeH264QpEXT

        public VkVideoEncodeH264QpEXT​(java.nio.ByteBuffer container)
        Creates a VkVideoEncodeH264QpEXT 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
      • qpI

        public int qpI()
        the QP to be used for I-frames.
      • qpP

        public int qpP()
        the QP to be used for P-frames.
      • qpB

        public int qpB()
        the QP to be used for B-frames.
      • set

        public VkVideoEncodeH264QpEXT set​(int qpI,
                                          int qpP,
                                          int qpB)
        Initializes this struct with the specified values.
      • malloc

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

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

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

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

        @Nullable
        public static VkVideoEncodeH264QpEXT createSafe​(long address)
        Like create, but returns null if address is NULL.
      • malloc

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

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

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

        public static VkVideoEncodeH264QpEXT.Buffer calloc​(int capacity,
                                                           org.lwjgl.system.MemoryStack stack)
        Returns a new VkVideoEncodeH264QpEXT.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
      • nqpI

        public static int nqpI​(long struct)
        Unsafe version of qpI().
      • nqpP

        public static int nqpP​(long struct)
        Unsafe version of qpP().
      • nqpB

        public static int nqpB​(long struct)
        Unsafe version of qpB().
      • nqpI

        public static void nqpI​(long struct,
                                int value)
        Unsafe version of qpI.
      • nqpP

        public static void nqpP​(long struct,
                                int value)
        Unsafe version of qpP.
      • nqpB

        public static void nqpB​(long struct,
                                int value)
        Unsafe version of qpB.