Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LimaGroup
Lima2
Commits
88d09350
Commit
88d09350
authored
Mar 14, 2022
by
Alejandro Homs Puron
Browse files
[SIM] Adapt nb_prefetch_frames to round-robin configuration
parent
2fd67ecf
Changes
1
Hide whitespace changes
Inline
Side-by-side
detectors/simulator/src/hw_acquisition.cpp
View file @
88d09350
...
...
@@ -125,7 +125,8 @@ namespace detectors::simulator::hw
m_latency_time
=
params
.
acq
.
latency_time
;
// Resize the circular buffer
m_buffer
.
resize
(
std
::
min
(
params
.
det
.
nb_prefetch_frames
,
params
.
xfer
.
time_slice
.
count
));
auto
nb_prefetch_frames
=
params
.
det
.
nb_prefetch_frames
/
params
.
xfer
.
time_slice
.
stride
;
m_buffer
.
resize
(
std
::
min
(
nb_prefetch_frames
,
params
.
xfer
.
time_slice
.
count
));
auto
apply_hw_image_proc
=
[
roi
,
bin
=
params
.
img
.
binning
,
flip
=
params
.
img
.
flip
](
auto
const
&
src
,
auto
const
&
dst
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment