public VideoBeginCodingInfoKHR
        (
            StructureType? sType = StructureType.VideoBeginCodingInfoKhr,
            void* pNext = null,
            uint? flags = null,
            VideoCodingQualityPresetFlagsKHR? codecQualityPreset = null,
            VideoSessionKHR? videoSession = null,
            VideoSessionParametersKHR? videoSessionParameters = null,
            uint? referenceSlotCount = null,
            VideoReferenceSlotKHR* pReferenceSlots = null
        ) : this()
        {
            if (sType is not null)
            {
                SType = sType.Value;
            }

            if (pNext is not null)
            {
                PNext = pNext;
            }

            if (flags is not null)
            {
                Flags = flags.Value;
            }

            if (codecQualityPreset is not null)
            {
                CodecQualityPreset = codecQualityPreset.Value;
            }

            if (videoSession is not null)
            {
                VideoSession = videoSession.Value;
            }

            if (videoSessionParameters is not null)
            {
                VideoSessionParameters = videoSessionParameters.Value;
            }

            if (referenceSlotCount is not null)
            {
                ReferenceSlotCount = referenceSlotCount.Value;
            }

            if (pReferenceSlots is not null)
            {
                PReferenceSlots = pReferenceSlots;
            }
        }
        public VideoEncodeInfoKHR
        (
            StructureType?sType                        = StructureType.VideoEncodeInfoKhr,
            void *pNext                                = null,
            VideoEncodeFlagsKHR?flags                  = null,
            uint?qualityLevel                          = null,
            Extent2D?codedExtent                       = null,
            Buffer?dstBitstreamBuffer                  = null,
            ulong?dstBitstreamBufferOffset             = null,
            ulong?dstBitstreamBufferMaxRange           = null,
            VideoPictureResourceKHR?srcPictureResource = null,
            VideoReferenceSlotKHR *pSetupReferenceSlot = null,
            uint?referenceSlotCount                    = null,
            VideoReferenceSlotKHR *pReferenceSlots     = null,
            uint?precedingExternallyEncodedBytes       = null
        ) : this()
        {
            if (sType is not null)
            {
                SType = sType.Value;
            }

            if (pNext is not null)
            {
                PNext = pNext;
            }

            if (flags is not null)
            {
                Flags = flags.Value;
            }

            if (qualityLevel is not null)
            {
                QualityLevel = qualityLevel.Value;
            }

            if (codedExtent is not null)
            {
                CodedExtent = codedExtent.Value;
            }

            if (dstBitstreamBuffer is not null)
            {
                DstBitstreamBuffer = dstBitstreamBuffer.Value;
            }

            if (dstBitstreamBufferOffset is not null)
            {
                DstBitstreamBufferOffset = dstBitstreamBufferOffset.Value;
            }

            if (dstBitstreamBufferMaxRange is not null)
            {
                DstBitstreamBufferMaxRange = dstBitstreamBufferMaxRange.Value;
            }

            if (srcPictureResource is not null)
            {
                SrcPictureResource = srcPictureResource.Value;
            }

            if (pSetupReferenceSlot is not null)
            {
                PSetupReferenceSlot = pSetupReferenceSlot;
            }

            if (referenceSlotCount is not null)
            {
                ReferenceSlotCount = referenceSlotCount.Value;
            }

            if (pReferenceSlots is not null)
            {
                PReferenceSlots = pReferenceSlots;
            }

            if (precedingExternallyEncodedBytes is not null)
            {
                PrecedingExternallyEncodedBytes = precedingExternallyEncodedBytes.Value;
            }
        }
Example #3
0
        public VideoDecodeInfoKHR
        (
            StructureType?sType       = StructureType.VideoDecodeInfoKhr,
            void *pNext               = null,
            VideoDecodeFlagsKHR?flags = null,
            Offset2D?codedOffset      = null,
            Extent2D?codedExtent      = null,
            Buffer?srcBuffer          = null,
            ulong?srcBufferOffset     = null,
            ulong?srcBufferRange      = null,
            VideoPictureResourceKHR?dstPictureResource = null,
            VideoReferenceSlotKHR *pSetupReferenceSlot = null,
            uint?referenceSlotCount = null,
            VideoReferenceSlotKHR *pReferenceSlots = null
        ) : this()
        {
            if (sType is not null)
            {
                SType = sType.Value;
            }

            if (pNext is not null)
            {
                PNext = pNext;
            }

            if (flags is not null)
            {
                Flags = flags.Value;
            }

            if (codedOffset is not null)
            {
                CodedOffset = codedOffset.Value;
            }

            if (codedExtent is not null)
            {
                CodedExtent = codedExtent.Value;
            }

            if (srcBuffer is not null)
            {
                SrcBuffer = srcBuffer.Value;
            }

            if (srcBufferOffset is not null)
            {
                SrcBufferOffset = srcBufferOffset.Value;
            }

            if (srcBufferRange is not null)
            {
                SrcBufferRange = srcBufferRange.Value;
            }

            if (dstPictureResource is not null)
            {
                DstPictureResource = dstPictureResource.Value;
            }

            if (pSetupReferenceSlot is not null)
            {
                PSetupReferenceSlot = pSetupReferenceSlot;
            }

            if (referenceSlotCount is not null)
            {
                ReferenceSlotCount = referenceSlotCount.Value;
            }

            if (pReferenceSlots is not null)
            {
                PReferenceSlots = pReferenceSlots;
            }
        }