ATV Modulator: hideous hack to split bandwidth between webcams so multi webcam is supported more or less (tested with 2)

pull/27/head
f4exb 2017-03-14 01:35:39 +01:00
rodzic 9cb1ebd0da
commit f7626652e4
1 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

@ -317,7 +317,8 @@ void ATVMod::pullVideo(Real& sample)
time(&end); time(&end);
double seconds = difftime (end, start); double seconds = difftime (end, start);
camera.m_videoFPS = (nbFrames / seconds) * 0.95; // take a 5% guard // take a 10% guard and divide bandwidth between all cameras as a hideous hack
camera.m_videoFPS = ((nbFrames / seconds) * 0.9) / m_cameras.size();
camera.m_videoFPSq = camera.m_videoFPS / m_fps; camera.m_videoFPSq = camera.m_videoFPS / m_fps;
camera.m_videoFPSCount = camera.m_videoFPSq; camera.m_videoFPSCount = camera.m_videoFPSq;
camera.m_videoPrevFPSCount = 0; camera.m_videoPrevFPSCount = 0;
@ -512,6 +513,8 @@ bool ATVMod::handleMessage(const Message& cmd)
0); 0);
getOutputMessageQueue()->push(report); getOutputMessageQueue()->push(report);
} }
return true;
} }
else if (MsgConfigureOverlayText::match(cmd)) else if (MsgConfigureOverlayText::match(cmd))
{ {