Skip to content
Snippets Groups Projects

Reduce latency in device capture and parallel encoding

Merged Nicolas Pope requested to merge feature/send-parallel into master
2 files
+ 4
4
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -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;
});
}
Loading