Esempio n. 1
0
 public int CreateVideoProcessorInputView([NativeTypeName("ID3D11Resource *")] ID3D11Resource *pResource, [NativeTypeName("ID3D11VideoProcessorEnumerator *")] ID3D11VideoProcessorEnumerator *pEnum, [NativeTypeName("const D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC *")] D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC *pDesc, [NativeTypeName("ID3D11VideoProcessorInputView **")] ID3D11VideoProcessorInputView **ppVPIView)
 {
     return(((delegate * unmanaged <ID3D11VideoDevice *, ID3D11Resource *, ID3D11VideoProcessorEnumerator *, D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC *, ID3D11VideoProcessorInputView **, int>)(lpVtbl[8]))((ID3D11VideoDevice *)Unsafe.AsPointer(ref this), pResource, pEnum, pDesc, ppVPIView));
 }
        public VideoProcessorStream
        (
            int?enable             = null,
            uint?outputIndex       = null,
            uint?inputFrameOrField = null,
            uint?pastFrames        = null,
            uint?futureFrames      = null,
            ID3D11VideoProcessorInputView **ppPastSurfaces        = null,
            ID3D11VideoProcessorInputView *pInputSurface          = null,
            ID3D11VideoProcessorInputView **ppFutureSurfaces      = null,
            ID3D11VideoProcessorInputView **ppPastSurfacesRight   = null,
            ID3D11VideoProcessorInputView *pInputSurfaceRight     = null,
            ID3D11VideoProcessorInputView **ppFutureSurfacesRight = null
        ) : this()
        {
            if (enable is not null)
            {
                Enable = enable.Value;
            }

            if (outputIndex is not null)
            {
                OutputIndex = outputIndex.Value;
            }

            if (inputFrameOrField is not null)
            {
                InputFrameOrField = inputFrameOrField.Value;
            }

            if (pastFrames is not null)
            {
                PastFrames = pastFrames.Value;
            }

            if (futureFrames is not null)
            {
                FutureFrames = futureFrames.Value;
            }

            if (ppPastSurfaces is not null)
            {
                PpPastSurfaces = ppPastSurfaces;
            }

            if (pInputSurface is not null)
            {
                PInputSurface = pInputSurface;
            }

            if (ppFutureSurfaces is not null)
            {
                PpFutureSurfaces = ppFutureSurfaces;
            }

            if (ppPastSurfacesRight is not null)
            {
                PpPastSurfacesRight = ppPastSurfacesRight;
            }

            if (pInputSurfaceRight is not null)
            {
                PInputSurfaceRight = pInputSurfaceRight;
            }

            if (ppFutureSurfacesRight is not null)
            {
                PpFutureSurfacesRight = ppFutureSurfacesRight;
            }
        }