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

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

            Properties = new FrameProperties
            {
                Pts = currentFramePts
            };
        }
Esempio n. 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();
        }
Esempio n. 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();
        }
Esempio n. 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();
        }
Esempio n. 8
0
 internal void InitFromDirectX(object dxRes, long pts)
 {
     DirectXResourceRef = new RefCounted <DirectXResource>((DirectXResource)dxRes);
     Properties.Pts     = pts;
 }