Skip to content
Snippets Groups Projects
Commit cc916c89 authored by Nicolas Pope's avatar Nicolas Pope
Browse files

Merge branch 'feature/send-parallel' of gitlab.utu.fi:nicolas.pope/ftl into feature/send-parallel

parents dbfaf965 8025cc08
No related branches found
No related tags found
1 merge request!321Reduce latency in device capture and parallel encoding
Pipeline #28671 passed
......@@ -149,9 +149,9 @@ OpenCVDevice::OpenCVDevice(nlohmann::json &config, bool stereo)
right_hm_ = cv::cuda::HostMem(dheight_, dwidth_, CV_8UC4);
hres_hm_ = cv::cuda::HostMem(height_, width_, CV_8UC4);
interpolation_ = value("inter_cubic", false) ? cv::INTER_CUBIC : cv::INTER_LINEAR;
interpolation_ = value("inter_cubic", true) ? cv::INTER_CUBIC : cv::INTER_LINEAR;
on("inter_cubic", [this](){
interpolation_ = value("inter_cubic_", false) ?
interpolation_ = value("inter_cubic_", true) ?
cv::INTER_CUBIC : cv::INTER_LINEAR;
});
}
......
......@@ -117,9 +117,9 @@ PylonDevice::PylonDevice(nlohmann::json &config)
on("buffer_size", buffer_size_, 1);
interpolation_ = value("inter_cubic", false) ? cv::INTER_CUBIC : cv::INTER_LINEAR;
interpolation_ = value("inter_cubic", true) ? cv::INTER_CUBIC : cv::INTER_LINEAR;
on("inter_cubic", [this](){
interpolation_ = value("inter_cubic", false) ?
interpolation_ = value("inter_cubic", true) ?
cv::INTER_CUBIC : cv::INTER_LINEAR;
});
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment