mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-04-01 09:08:51 -04:00
ATV Modulator: hideous hack to split bandwidth between webcams so multi webcam is supported more or less (tested with 2)
This commit is contained in:
parent
9cb1ebd0da
commit
f7626652e4
@ -317,7 +317,8 @@ void ATVMod::pullVideo(Real& sample)
|
||||
time(&end);
|
||||
|
||||
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_videoFPSCount = camera.m_videoFPSq;
|
||||
camera.m_videoPrevFPSCount = 0;
|
||||
@ -512,6 +513,8 @@ bool ATVMod::handleMessage(const Message& cmd)
|
||||
0);
|
||||
getOutputMessageQueue()->push(report);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
else if (MsgConfigureOverlayText::match(cmd))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user