namespace Brutal.VulkanApi { /// /// VkVideoEncodeAV1QualityLevelPropertiesKHR - Structure describing the AV1 encode quality level properties /// /// /// /// When calling vkGetPhysicalDeviceVideoEncodeQualityLevelPropertiesKHR /// with pVideoProfile->videoCodecOperation specified as /// VK_VIDEO_CODEC_OPERATION_ENCODE_AV1_BIT_KHR, the /// VkVideoEncodeAV1QualityLevelPropertiesKHR structure must be included /// in the pNext chain of the VkVideoEncodeQualityLevelPropertiesKHR /// structure to retrieve additional video encode quality level properties /// specific to AV1 encoding. /// /// /// The VkVideoEncodeAV1QualityLevelPropertiesKHR structure is defined as: /// /// /// // Provided by VK_KHR_video_encode_av1 /// typedef struct VkVideoEncodeAV1QualityLevelPropertiesKHR { /// VkStructureType sType; /// void* pNext; /// VkVideoEncodeAV1RateControlFlagsKHR preferredRateControlFlags; /// uint32_t preferredGopFrameCount; /// uint32_t preferredKeyFramePeriod; /// uint32_t preferredConsecutiveBipredictiveFrameCount; /// uint32_t preferredTemporalLayerCount; /// VkVideoEncodeAV1QIndexKHR preferredConstantQIndex; /// uint32_t preferredMaxSingleReferenceCount; /// uint32_t preferredSingleReferenceNameMask; /// uint32_t preferredMaxUnidirectionalCompoundReferenceCount; /// uint32_t preferredMaxUnidirectionalCompoundGroup1ReferenceCount; /// uint32_t preferredUnidirectionalCompoundReferenceNameMask; /// uint32_t preferredMaxBidirectionalCompoundReferenceCount; /// uint32_t preferredMaxBidirectionalCompoundGroup1ReferenceCount; /// uint32_t preferredMaxBidirectionalCompoundGroup2ReferenceCount; /// uint32_t preferredBidirectionalCompoundReferenceNameMask; /// } VkVideoEncodeAV1QualityLevelPropertiesKHR; /// /// [StructLayout(LayoutKind.Explicit, Size = 88)] public unsafe partial struct VkVideoEncodeAV1QualityLevelPropertiesKHR() { /// /// sType is a VkStructureType value identifying this structure. /// [FieldOffset(0)] internal readonly VkStructureType sType = VkStructureType.VideoEncodeAV1QualityLevelPropertiesKHR; /// /// Next is `NULL` or a pointer to a structure extending this structure. /// [FieldOffset(8)] public void* Next; /// /// PreferredRateControlFlags is a bitmask of VkVideoEncodeAV1RateControlFlagsKHR values indicating the preferred flags to use for VkVideoEncodeAV1RateControlInfoKHR::flags. /// [FieldOffset(16)] public VkVideoEncodeAV1RateControlFlagsKHR PreferredRateControlFlags; /// /// PreferredGopFrameCount indicates the preferred value to use for VkVideoEncodeAV1RateControlInfoKHR::gopFrameCount. /// [FieldOffset(20)] public int PreferredGopFrameCount; /// /// PreferredKeyFramePeriod indicates the preferred value to use for VkVideoEncodeAV1RateControlInfoKHR::keyFramePeriod. /// [FieldOffset(24)] public int PreferredKeyFramePeriod; /// /// PreferredConsecutiveBipredictiveFrameCount indicates the preferred value to use for VkVideoEncodeAV1RateControlInfoKHR::consecutiveBipredictiveFrameCount. /// [FieldOffset(28)] public int PreferredConsecutiveBipredictiveFrameCount; /// /// PreferredTemporalLayerCount indicates the preferred value to use for VkVideoEncodeAV1RateControlInfoKHR::temporalLayerCount. /// [FieldOffset(32)] public int PreferredTemporalLayerCount; /// /// PreferredConstantQIndex indicates the preferred value to use for VkVideoEncodeAV1PictureInfoKHR::constantQIndex when using rate control mode^ VK_VIDEO_ENCODE_RATE_CONTROL_MODE_DISABLED_BIT_KHR. /// [FieldOffset(36)] public VkVideoEncodeAV1QIndexKHR PreferredConstantQIndex; /// /// PreferredMaxSingleReferenceCount indicates the preferred maximum number of reference pictures to use with single reference prediction mode^. /// [FieldOffset(48)] public int PreferredMaxSingleReferenceCount; /// /// PreferredSingleReferenceNameMask is a bitmask of preferred AV1 reference names^ when using single reference prediction mode^. /// [FieldOffset(52)] public int PreferredSingleReferenceNameMask; /// /// PreferredMaxUnidirectionalCompoundReferenceCount indicates the preferred maximum number of reference pictures to use with unidirectional compound prediction mode^. /// [FieldOffset(56)] public int PreferredMaxUnidirectionalCompoundReferenceCount; /// /// PreferredMaxUnidirectionalCompoundGroup1ReferenceCount indicates the preferred maximum number of reference pictures to use with unidirectional compound prediction mode^ from reference frame group 1, as defined in section 6.10.24 of the AV1 Specification^. /// [FieldOffset(60)] public int PreferredMaxUnidirectionalCompoundGroup1ReferenceCount; /// /// PreferredUnidirectionalCompoundReferenceNameMask is a bitmask of preferred AV1 reference names^ when using unidirectional compound prediction mode^. /// [FieldOffset(64)] public int PreferredUnidirectionalCompoundReferenceNameMask; /// /// PreferredMaxBidirectionalCompoundReferenceCount indicates the preferred maximum number of reference pictures to use with bidirectional compound prediction mode^. /// [FieldOffset(68)] public int PreferredMaxBidirectionalCompoundReferenceCount; /// /// PreferredMaxBidirectionalCompoundGroup1ReferenceCount indicates the preferred maximum number of reference pictures to use with bidirectional compound prediction mode^ from reference frame group 1, as defined in section 6.10.24 of the AV1 Specification^. /// [FieldOffset(72)] public int PreferredMaxBidirectionalCompoundGroup1ReferenceCount; /// /// PreferredMaxBidirectionalCompoundGroup2ReferenceCount indicates the preferred maximum number of reference pictures to use with bidirectional compound prediction mode^ from reference frame group 2, as defined in section 6.10.24 of the AV1 Specification^. /// [FieldOffset(76)] public int PreferredMaxBidirectionalCompoundGroup2ReferenceCount; /// /// PreferredBidirectionalCompoundReferenceNameMask is a bitmask of preferred AV1 reference names^ when using bidirectional compound prediction mode^. /// [FieldOffset(80)] public int PreferredBidirectionalCompoundReferenceNameMask; } }