d/dai: Use setXLinkChunkSize(0) to reduce latency

This commit is contained in:
Moses Turner 2022-09-18 08:06:34 -05:00
parent 81764273ca
commit 34d158b299

View file

@ -627,6 +627,7 @@ depthai_setup_monocular_pipeline(struct depthai_fs *depthai, enum depthai_camera
grayCam->out.link(xlinkOut->input);
}
p.setXLinkChunkSize(0);
// Start the pipeline
depthai->device->startPipeline(p);
@ -702,6 +703,8 @@ depthai_setup_stereo_grayscale_pipeline(struct depthai_fs *depthai)
imu->out.link(xlinkOut_imu->input);
}
p.setXLinkChunkSize(0);
// Start the pipeline
depthai->device->startPipeline(p);
if (depthai->want_cameras) {
@ -768,6 +771,8 @@ depthai_setup_stereo_rgb_pipeline(struct depthai_fs *depthai)
grayCam->preview.link(xlinkOut->input);
}
p.setXLinkChunkSize(0);
// Start the pipeline
depthai->device->startPipeline(p);
depthai->queue = depthai->device->getOutputQueue(name, 4, false).get(); // out of shared pointer