Class VkVideoProfileKHR

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

    public class VkVideoProfileKHR
    extends org.lwjgl.system.Struct
    implements org.lwjgl.system.NativeResource
    Structure specifying the codec video profile.
    Valid Usage (Implicit)
    • sType must be STRUCTURE_TYPE_VIDEO_PROFILE_KHR
    • videoCodecOperation must be a valid VkVideoCodecOperationFlagBitsKHR value
    • chromaSubsampling must be a valid combination of VkVideoChromaSubsamplingFlagBitsKHR values
    • chromaSubsampling must not be 0
    • lumaBitDepth must be a valid combination of VkVideoComponentBitDepthFlagBitsKHR values
    • lumaBitDepth must not be 0
    • chromaBitDepth must be a valid combination of VkVideoComponentBitDepthFlagBitsKHR values
    • chromaBitDepth must not be 0
    See Also

    VkVideoProfilesKHR, VkVideoSessionCreateInfoKHR, GetPhysicalDeviceVideoCapabilitiesKHR

    Layout

    
     struct VkVideoProfileKHR {
         VkStructureType sType();
         void * pNext();
         VkVideoCodecOperationFlagBitsKHR videoCodecOperation();
         VkVideoChromaSubsamplingFlagsKHR chromaSubsampling();
         VkVideoComponentBitDepthFlagsKHR lumaBitDepth();
         VkVideoComponentBitDepthFlagsKHR chromaBitDepth();
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • STYPE, PNEXT, VIDEOCODECOPERATION, CHROMASUBSAMPLING, LUMABITDEPTH, CHROMABITDEPTH

        The struct member offsets.
    • Constructor Detail

      • VkVideoProfileKHR

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

        public int videoCodecOperation()
        a VkVideoCodecOperationFlagBitsKHR value specifying a video codec operation.
      • chromaSubsampling

        public int chromaSubsampling()
        a bitmask of VkVideoChromaSubsamplingFlagBitsKHR specifying video chroma subsampling information.
      • lumaBitDepth

        public int lumaBitDepth()
        a bitmask of VkVideoComponentBitDepthFlagBitsKHR specifying video luma bit depth information.
      • chromaBitDepth

        public int chromaBitDepth()
        a bitmask of VkVideoComponentBitDepthFlagBitsKHR specifying video chroma bit depth information.
      • set

        public VkVideoProfileKHR set​(int sType,
                                     long pNext,
                                     int videoCodecOperation,
                                     int chromaSubsampling,
                                     int lumaBitDepth,
                                     int chromaBitDepth)
        Initializes this struct with the specified values.
      • malloc

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

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

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

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

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

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

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

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

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

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

        public static int nvideoCodecOperation​(long struct)
        Unsafe version of videoCodecOperation().
      • nchromaSubsampling

        public static int nchromaSubsampling​(long struct)
        Unsafe version of chromaSubsampling().
      • nlumaBitDepth

        public static int nlumaBitDepth​(long struct)
        Unsafe version of lumaBitDepth().
      • nchromaBitDepth

        public static int nchromaBitDepth​(long struct)
        Unsafe version of chromaBitDepth().
      • 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.
      • nvideoCodecOperation

        public static void nvideoCodecOperation​(long struct,
                                                int value)
        Unsafe version of videoCodecOperation.
      • nchromaSubsampling

        public static void nchromaSubsampling​(long struct,
                                              int value)
        Unsafe version of chromaSubsampling.
      • nlumaBitDepth

        public static void nlumaBitDepth​(long struct,
                                         int value)
        Unsafe version of lumaBitDepth.
      • nchromaBitDepth

        public static void nchromaBitDepth​(long struct,
                                           int value)
        Unsafe version of chromaBitDepth.