public KinectStream(TcpClient client)
    {
        int frameSize = Properties.Instance.FrameDescription_Width * Properties.Instance.FrameDescription_Height;

        Ready     = false;
        texture   = new Color[frameSize];
        depthData = new ushort[frameSize];

        name          = "Unknown Kinect Stream";
        _client       = client;
        depthViewer   = null;
        bytesReceived = 0;

        data  = new byte[BUFFER];
        dirty = false;
    }
示例#2
0
    public KinectStream(TcpClient client)
    {
        int frameSize = TcpKinectListener.FrameDescription_Width * TcpKinectListener.FrameDescription_Height;

        //int frameSize = 512 * 424;

        Ready     = false;
        texture   = new Color[frameSize];
        depthData = new ushort[frameSize];

        name          = "Unknown Kinect Stream";
        _client       = client;
        depthViewer   = null;
        bytesReceived = 0;

        data  = new byte[BUFFER];
        dirty = false;
    }