namespace Brutal.VulkanApi { /// /// VkVideoEncodeAV1PictureInfoKHR - Structure specifies AV1 encode frame parameters /// /// /// /// The VkVideoEncodeAV1PictureInfoKHR structure is defined as: /// /// /// // Provided by VK_KHR_video_encode_av1 /// typedef struct VkVideoEncodeAV1PictureInfoKHR { /// VkStructureType sType; /// const void* pNext; /// VkVideoEncodeAV1PredictionModeKHR predictionMode; /// VkVideoEncodeAV1RateControlGroupKHR rateControlGroup; /// uint32_t constantQIndex; /// const StdVideoEncodeAV1PictureInfo* pStdPictureInfo; /// int32_t referenceNameSlotIndices[VK_MAX_VIDEO_AV1_REFERENCES_PER_FRAME_KHR]; /// VkBool32 primaryReferenceCdfOnly; /// VkBool32 generateObuExtensionHeader; /// } VkVideoEncodeAV1PictureInfoKHR; /// /// [StructLayout(LayoutKind.Explicit, Size = 80)] public unsafe partial struct VkVideoEncodeAV1PictureInfoKHR() { /// /// sType is a VkStructureType value identifying this structure. /// [FieldOffset(0)] internal readonly VkStructureType sType = VkStructureType.VideoEncodeAV1PictureInfoKHR; /// /// Next is `NULL` or a pointer to a structure extending this structure. /// [FieldOffset(8)] public void* Next; /// /// PredictionMode specifies the AV1 prediction mode^ to use for the encoded frame. /// [FieldOffset(16)] public VkVideoEncodeAV1PredictionModeKHR PredictionMode; /// /// RateControlGroup specifies the AV1 rate control group^ to use for the encoded frame when the current rate control mode^ is not VK_VIDEO_ENCODE_RATE_CONTROL_MODE_DISABLED_BIT_KHR. Otherwise it is ignored. /// [FieldOffset(20)] public VkVideoEncodeAV1RateControlGroupKHR RateControlGroup; /// /// ConstantQIndex is the quantizer index to use for the encoded frame if the current rate control mode^ configured for the video session is VK_VIDEO_ENCODE_RATE_CONTROL_MODE_DISABLED_BIT_KHR. /// [FieldOffset(24)] public int ConstantQIndex; /// /// StdPictureInfo is a pointer to a StdVideoEncodeAV1PictureInfo structure specifying AV1 picture information^. /// [FieldOffset(32)] public StdVideoEncodeAV1PictureInfo* StdPictureInfo; /// [FieldOffset(40)] public fixed int ReferenceNameSlotIndices[7]; /// /// PrimaryReferenceCdfOnly controls whether the primary reference frame indicated by the value of pStdPictureInfo->primary_ref_frame is used only for CDF data reference, as defined in sections 6.8.2 of the AV1 Specification^. If set to VK_TRUE, then the primary reference frame's picture data will not be used for sample prediction. /// [FieldOffset(68)] public Brutal.Bool32 PrimaryReferenceCdfOnly; /// /// GenerateObuExtensionHeader controls whether OBU extension headers are generated into the target bitstream, as defined in sections 5.3.1, 5.3.2, and 5.3.3 of the AV1 Specification^. /// [FieldOffset(72)] public Brutal.Bool32 GenerateObuExtensionHeader; } }