public void Unref() { DirectXResourceRef?.RemoveRef(); DirectXResourceRef = null; Properties = new PacketProperties(); Packet_Unref(Handle); }
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 fromPacket) { Packet from = (Packet)fromPacket; Packet_CopyContentFrom(Handle, from.Handle); Properties = from.Properties; DirectXResourceRef?.RemoveRef(); DirectXResourceRef = from.DirectXResourceRef?.AddRef(); }
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(); }
internal void InitFromDirectX(object dxRes, long pts) { DirectXResourceRef = new RefCounted <DirectXResource>((DirectXResource)dxRes); Properties.Pts = pts; }