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

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

            Properties = new FrameProperties
            {
                Pts = currentFramePts
            };
        }
示例#5
0
        public void CopyContentFrom(IPayload fromPacket)
        {
            Packet from = (Packet)fromPacket;

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

            DirectXResourceRef?.RemoveRef();
            DirectXResourceRef = from.DirectXResourceRef?.AddRef();
        }
示例#6
0
        public void CopyContentFrom(IPayload fromPayload)
        {
            Frame from = (Frame)fromPayload;

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

            DirectXResourceRef?.RemoveRef();
            DirectXResourceRef = from.DirectXResourceRef?.AddRef();
        }
示例#7
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();
        }
示例#8
0
 internal void InitFromDirectX(object dxRes, long pts)
 {
     DirectXResourceRef = new RefCounted <DirectXResource>((DirectXResource)dxRes);
     Properties.Pts     = pts;
 }