Example #1
0
        public DXVA2VideoSample
        (
            long?start = null,
            long?end   = null,
            DXVA2ExtendedFormat?sampleFormat = null,
            Silk.NET.Direct3D9.IDirect3DSurface9 *srcSurface = null,
            Silk.NET.Maths.Rectangle <int>?srcRect           = null,
            Silk.NET.Maths.Rectangle <int>?dstRect           = null,
            DXVA2Fixed32?planarAlpha = null,
            uint?sampleData          = null
        ) : this()
        {
            if (start is not null)
            {
                Start = start.Value;
            }

            if (end is not null)
            {
                End = end.Value;
            }

            if (sampleFormat is not null)
            {
                SampleFormat = sampleFormat.Value;
            }

            if (srcSurface is not null)
            {
                SrcSurface = srcSurface;
            }

            if (srcRect is not null)
            {
                SrcRect = srcRect.Value;
            }

            if (dstRect is not null)
            {
                DstRect = dstRect.Value;
            }

            if (planarAlpha is not null)
            {
                PlanarAlpha = planarAlpha.Value;
            }

            if (sampleData is not null)
            {
                SampleData = sampleData.Value;
            }
        }
Example #2
0
        public HDStreamData
        (
            int?enable             = null,
            uint?outputIndex       = null,
            uint?inputFrameOrField = null,
            uint?pastFrames        = null,
            uint?futureFrames      = null,
            Silk.NET.Direct3D9.IDirect3DSurface9 **ppPastSurfaces   = null,
            Silk.NET.Direct3D9.IDirect3DSurface9 *pInputSurface     = null,
            Silk.NET.Direct3D9.IDirect3DSurface9 **ppFutureSurfaces = 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;
            }
        }