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

Change png comp to 1

parent 6f7f351c
No related branches found
No related tags found
1 merge request!37Resolves #83 net performance, partially
Pipeline #11532 passed
......@@ -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";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment