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

Reduce png compression

parent 73686a9d
No related branches found
No related tags found
1 merge request!35Partial improvement to sync
Pipeline #11487 passed
...@@ -244,7 +244,7 @@ void Streamer::_schedule() { ...@@ -244,7 +244,7 @@ void Streamer::_schedule() {
// Setting 9 = small but slow // Setting 9 = small but slow
// Anything up to 8 causes minimal if any impact on frame rate // Anything up to 8 causes minimal if any impact on frame rate
// on my (Nicks) laptop, but 9 halves the 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); cv::imencode(".png", d2, d_buf, pngparams);
//LOG(INFO) << "Data size: " << ((rgb_buf.size() + d_buf.size()) / 1024) << "kb"; //LOG(INFO) << "Data size: " << ((rgb_buf.size() + d_buf.size()) / 1024) << "kb";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment