mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-02-15 10:10:07 +00:00
d/dai: Use setXLinkChunkSize(0) to reduce latency
This commit is contained in:
parent
81764273ca
commit
34d158b299
|
@ -627,6 +627,7 @@ depthai_setup_monocular_pipeline(struct depthai_fs *depthai, enum depthai_camera
|
||||||
grayCam->out.link(xlinkOut->input);
|
grayCam->out.link(xlinkOut->input);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
p.setXLinkChunkSize(0);
|
||||||
|
|
||||||
// Start the pipeline
|
// Start the pipeline
|
||||||
depthai->device->startPipeline(p);
|
depthai->device->startPipeline(p);
|
||||||
|
@ -702,6 +703,8 @@ depthai_setup_stereo_grayscale_pipeline(struct depthai_fs *depthai)
|
||||||
imu->out.link(xlinkOut_imu->input);
|
imu->out.link(xlinkOut_imu->input);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
p.setXLinkChunkSize(0);
|
||||||
|
|
||||||
// Start the pipeline
|
// Start the pipeline
|
||||||
depthai->device->startPipeline(p);
|
depthai->device->startPipeline(p);
|
||||||
if (depthai->want_cameras) {
|
if (depthai->want_cameras) {
|
||||||
|
@ -768,6 +771,8 @@ depthai_setup_stereo_rgb_pipeline(struct depthai_fs *depthai)
|
||||||
grayCam->preview.link(xlinkOut->input);
|
grayCam->preview.link(xlinkOut->input);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
p.setXLinkChunkSize(0);
|
||||||
|
|
||||||
// Start the pipeline
|
// Start the pipeline
|
||||||
depthai->device->startPipeline(p);
|
depthai->device->startPipeline(p);
|
||||||
depthai->queue = depthai->device->getOutputQueue(name, 4, false).get(); // out of shared pointer
|
depthai->queue = depthai->device->getOutputQueue(name, 4, false).get(); // out of shared pointer
|
||||||
|
|
Loading…
Reference in a new issue