mirror of
https://github.com/storytold/LiveScan3D.git
synced 2026-10-12 23:48:55 +00:00
Added Temporal Sync functionality
This commit is contained in:
@@ -232,6 +232,19 @@ namespace KinectServer
|
||||
}
|
||||
}
|
||||
|
||||
public void SendTemporalSyncData()
|
||||
{
|
||||
lock (oClientSocketLock)
|
||||
{
|
||||
lClientSockets[0].SendTemporalSyncStatus(true, false);
|
||||
|
||||
for (int i = 1; i < lClientSockets.Count; i++)
|
||||
{
|
||||
lClientSockets[i].SendTemporalSyncStatus(false, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public bool GetStoredFrame(List<List<byte>> lFramesRGB, List<List<Single>> lFramesVerts)
|
||||
{
|
||||
bool bNoMoreStoredFrames;
|
||||
@@ -436,6 +449,11 @@ namespace KinectServer
|
||||
lClientSockets[i].bLatestFrameReceived = true;
|
||||
}
|
||||
|
||||
else if (buffer[0] == 4)
|
||||
{
|
||||
lClientSockets[i].ReceiveTemporalSyncStatus();
|
||||
}
|
||||
|
||||
buffer = lClientSockets[i].Receive(1);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user