コード例 #1
0
 public void Unref()
 {
     DirectXResourceRef?.RemoveRef();
     DirectXResourceRef = null;
     Frame_Unref(Handle);
     Properties = new FrameProperties();
 }
コード例 #2
0
        public void InitFromDirectX(RefCounted <DirectXResource> currentFrame, long currentFramePts)
        {
            DirectXResourceRef = currentFrame.AddRef();

            Properties = new FrameProperties
            {
                Pts = currentFramePts
            };
        }
コード例 #3
0
        public void InitFromDirectX(DirectXResource currentFrame, long currentFramePts)
        {
            DirectXResourceRef = new RefCounted <DirectXResource>(currentFrame);

            Properties = new FrameProperties
            {
                Pts = currentFramePts
            };
        }
コード例 #4
0
        public void CopyContentFrom(IPayload fromPayload)
        {
            Frame from = (Frame)fromPayload;

            Frame_CopyContentFrom(Handle, from.Handle);
            Properties = from.Properties;

            DirectXResourceRef?.RemoveRef();
            DirectXResourceRef = from.DirectXResourceRef?.AddRef();
        }
コード例 #5
0
        public void CopyContentFromAndSetPts(IPayload fromPayload, long pts)
        {
            Frame from = (Frame)fromPayload;

            Frame_CopyContentFromAndSetPts(Handle, from.Handle, pts);
            Properties     = from.Properties;
            Properties.Pts = pts;

            DirectXResourceRef?.RemoveRef();
            DirectXResourceRef = from.DirectXResourceRef?.AddRef();
        }
コード例 #6
0
 [DllImport(Core.DllName)] private static extern ErrorCodes DecoderContext_Read(IntPtr handle, IntPtr frame, ref FrameProperties frameProperties);
コード例 #7
0
 [DllImport(Core.DllName)] private static extern IntPtr Frame_GenerateSilence(IntPtr handle, long pts, ref FrameProperties frameProperties);
コード例 #8
0
 [DllImport(Core.DllName)] private static extern IntPtr Frame_Init(IntPtr handle, int width, int height, int pixelFormat, long pts, int planesCount, ref FramePlaneDesc planes, ref FrameProperties frameProperties);
コード例 #9
0
 [DllImport(Core.DllName)] private static extern IntPtr Frame_RescaleTimebase(IntPtr handle, ref AVRational from, ref AVRational to, ref FrameProperties frameProperties);