Class VkVideoProfileInfoKHR

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

public class VkVideoProfileInfoKHR extends org.lwjgl.system.Struct<VkVideoProfileInfoKHR> implements org.lwjgl.system.NativeResource
Structure specifying a video profile.
Description

Video profiles are provided as input to video capability queries such as GetPhysicalDeviceVideoCapabilitiesKHR or GetPhysicalDeviceVideoFormatPropertiesKHR, as well as when creating resources to be used by video coding operations such as images, buffers, query pools, and video sessions.

The full description of a video profile is specified by an instance of this structure, and the codec-specific and auxiliary structures provided in its pNext chain.

When this structure is specified as an input parameter to GetPhysicalDeviceVideoCapabilitiesKHR, or through the pProfiles member of a VkVideoProfileListInfoKHR structure in the pNext chain of the input parameter of a query command such as GetPhysicalDeviceVideoFormatPropertiesKHR or GetPhysicalDeviceImageFormatProperties2, the following error codes indicate specific causes of the failure of the query operation:

Valid Usage
Valid Usage (Implicit)
  • sType must be STRUCTURE_TYPE_VIDEO_PROFILE_INFO_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
See Also

VkPhysicalDeviceVideoEncodeQualityLevelInfoKHR, VkVideoProfileListInfoKHR, VkVideoSessionCreateInfoKHR, GetPhysicalDeviceVideoCapabilitiesKHR

Layout


 struct VkVideoProfileInfoKHR {
     VkStructureType sType();
     void const * pNext();
     VkVideoCodecOperationFlagBitsKHR videoCodecOperation();
     VkVideoChromaSubsamplingFlagsKHR chromaSubsampling();
     VkVideoComponentBitDepthFlagsKHR lumaBitDepth();
     VkVideoComponentBitDepthFlagsKHR chromaBitDepth();
 }
  • 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.
    • VIDEOCODECOPERATION

      public static final int VIDEOCODECOPERATION
      The struct member offsets.
    • CHROMASUBSAMPLING

      public static final int CHROMASUBSAMPLING
      The struct member offsets.
    • LUMABITDEPTH

      public static final int LUMABITDEPTH
      The struct member offsets.
    • CHROMABITDEPTH

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

    • VkVideoProfileInfoKHR

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