Commit d2e9825a authored by Alejandro Homs Puron's avatar Alejandro Homs Puron
Browse files

Buffer: remove limitation on Lima nb of buffers & double FifoDepth for 4-bit

parent 711860c2
Pipeline #47942 failed with stages
in 12 minutes and 9 seconds
......@@ -57,9 +57,6 @@ class BufferCtrlObj : public NumaSoftBufferCtrlObj {
public:
void releaseBuffers() { getBuffer().releaseBuffers(); }
virtual void getMaxNbBuffers(int& max_nb_buffers)
{ max_nb_buffers = 1024; }
Data getFrameData(FrameType frame)
{
StdBufferCbMgr& buffer = getBuffer();
......
......@@ -96,6 +96,10 @@ void BufferMgr::getMaxNbBuffers(long& nb_buffers)
model->getAcqFrameDim(frame_dim, raw_mode);
int max_nb_buffers = GetDefMaxNbBuffers(frame_dim);
nb_buffers = int(max_nb_buffers * m_max_memory / 100.0);
PixelDepth pixel_depth;
m_cam->getPixelDepth(pixel_depth);
if (pixel_depth == PixelDepth4)
nb_buffers *= 2;
DEB_TRACE() << DEB_VAR2(max_nb_buffers, nb_buffers);
DEB_RETURN() << DEB_VAR1(nb_buffers);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment