public void Unref() { DirectXResourceRef?.RemoveRef(); DirectXResourceRef = null; Frame_Unref(Handle); Properties = new FrameProperties(); }
public void InitFromDirectX(RefCounted <DirectXResource> currentFrame, long currentFramePts) { DirectXResourceRef = currentFrame.AddRef(); Properties = new FrameProperties { Pts = currentFramePts }; }
public void InitFromDirectX(DirectXResource currentFrame, long currentFramePts) { DirectXResourceRef = new RefCounted <DirectXResource>(currentFrame); Properties = new FrameProperties { Pts = currentFramePts }; }
public void CopyContentFrom(IPayload fromPayload) { Frame from = (Frame)fromPayload; Frame_CopyContentFrom(Handle, from.Handle); Properties = from.Properties; DirectXResourceRef?.RemoveRef(); DirectXResourceRef = from.DirectXResourceRef?.AddRef(); }
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(); }
[DllImport(Core.DllName)] private static extern ErrorCodes DecoderContext_Read(IntPtr handle, IntPtr frame, ref FrameProperties frameProperties);
[DllImport(Core.DllName)] private static extern IntPtr Frame_GenerateSilence(IntPtr handle, long pts, ref FrameProperties frameProperties);
[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);
[DllImport(Core.DllName)] private static extern IntPtr Frame_RescaleTimebase(IntPtr handle, ref AVRational from, ref AVRational to, ref FrameProperties frameProperties);