From 733672f06eb2e7d28259cf18ba4f9d17311cad93 Mon Sep 17 00:00:00 2001 From: Nicolas Pope <nwpope@utu.fi> Date: Fri, 14 Jun 2019 13:56:57 +0300 Subject: [PATCH] Change png comp to 1 --- components/rgbd-sources/src/streamer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/rgbd-sources/src/streamer.cpp b/components/rgbd-sources/src/streamer.cpp index eeb3fb827..ccf16b170 100644 --- a/components/rgbd-sources/src/streamer.cpp +++ b/components/rgbd-sources/src/streamer.cpp @@ -244,7 +244,7 @@ void Streamer::_schedule() { // Setting 9 = small but slow // Anything up to 8 causes minimal if any impact on frame rate // on my (Nicks) laptop, but 9 halves the frame rate. - vector<int> pngparams = {cv::IMWRITE_PNG_COMPRESSION, 5}; // Default is 1 for fast, 9 = small but slow. + vector<int> pngparams = {cv::IMWRITE_PNG_COMPRESSION, 1}; // Default is 1 for fast, 9 = small but slow. cv::imencode(".png", d2, d_buf, pngparams); //LOG(INFO) << "Data size: " << ((rgb_buf.size() + d_buf.size()) / 1024) << "kb"; -- GitLab