From 6f1b863f459a4c5e1eaa9e9bd4e62604987d16c8 Mon Sep 17 00:00:00 2001 From: Nicolas Pope <nwpope@utu.fi> Date: Fri, 14 Jun 2019 08:00:59 +0300 Subject: [PATCH] Reduce png compression --- 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 74031b04e..dd066c4a0 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, 8}; // 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