Skip to content

Commit

Permalink
Make the default compressed depth png_level 1 instead of 9 to save cpu (
Browse files Browse the repository at this point in the history
#85)

The default 9 is so cpu intensive to be frequently unusable and results in many dropped frames, and there is still plenty of bandwidth savings from the compression at level 1.
  • Loading branch information
lucasw authored Feb 18, 2022
1 parent 2ec945b commit f0afd12
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ format_enum = gen.enum( [gen.const("png", str_t, "png", "PNG lossless compressio
gen.add("format", str_t, 0, "Compression format", "png", edit_method = format_enum)
gen.add("depth_max", double_t, 0, "Maximum depth value (meter) ", 10 , 1, 100)
gen.add("depth_quantization", double_t, 0, "Depth value at which the sensor accuracy is 1 m (Kinect: >75)", 100, 1, 150)
gen.add("png_level", int_t, 0, "PNG compression level", 9, 1, 9)
gen.add("png_level", int_t, 0, "PNG compression level", 1, 1, 9)


exit(gen.generate(PACKAGE, "CompressedDepthPublisher", "CompressedDepthPublisher"))

0 comments on commit f0afd12

Please sign in to comment.