mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-09-03 13:47:50 -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);
|
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))
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user