public VideoMotionEstimatorInput
        (
            ID3D12Resource *pInputTexture2D     = null,
            uint?inputSubresourceIndex          = null,
            ID3D12Resource *pReferenceTexture2D = null,
            uint?referenceSubresourceIndex      = null,
            ID3D12VideoMotionVectorHeap *pHintMotionVectorHeap = null
        ) : this()
        {
            if (pInputTexture2D is not null)
            {
                PInputTexture2D = pInputTexture2D;
            }

            if (inputSubresourceIndex is not null)
            {
                InputSubresourceIndex = inputSubresourceIndex.Value;
            }

            if (pReferenceTexture2D is not null)
            {
                PReferenceTexture2D = pReferenceTexture2D;
            }

            if (referenceSubresourceIndex is not null)
            {
                ReferenceSubresourceIndex = referenceSubresourceIndex.Value;
            }

            if (pHintMotionVectorHeap is not null)
            {
                PHintMotionVectorHeap = pHintMotionVectorHeap;
            }
        }
Exemplo n.º 2
0
 public VideoMotionEstimatorOutput
 (
     ID3D12VideoMotionVectorHeap *pMotionVectorHeap = null
 ) : this()
 {
     if (pMotionVectorHeap is not null)
     {
         PMotionVectorHeap = pMotionVectorHeap;
     }
 }
Exemplo n.º 3
0
        public ResolveVideoMotionVectorHeapInput
        (
            ID3D12VideoMotionVectorHeap *pMotionVectorHeap = null,
            uint?pixelWidth  = null,
            uint?pixelHeight = null
        ) : this()
        {
            if (pMotionVectorHeap is not null)
            {
                PMotionVectorHeap = pMotionVectorHeap;
            }

            if (pixelWidth is not null)
            {
                PixelWidth = pixelWidth.Value;
            }

            if (pixelHeight is not null)
            {
                PixelHeight = pixelHeight.Value;
            }
        }