periph / devices

Go·Hardware·Lean - Device drivers
https://periph.io
Apache License 2.0
83 stars 37 forks source link

videosink: Add options for JPEG and PNG encoders #30

Closed hansmi closed 2 years ago

hansmi commented 2 years ago

Expose the quality settings for the JPEG encoder and the compression level of the PNG encoder via the Options structure.

Relates to #26.

codecov-commenter commented 2 years ago

Codecov Report

Merging #30 (e989a2f) into main (42ee855) will increase coverage by 0.1%. The diff coverage is 92.3%.

Impacted file tree graph

@@           Coverage Diff           @@
##            main     #30     +/-   ##
=======================================
+ Coverage   61.2%   61.3%   +0.1%     
=======================================
  Files         53      53             
  Lines       6672    6690     +18     
=======================================
+ Hits        4085    4103     +18     
  Misses      2446    2446             
  Partials     141     141             
Impacted Files Coverage Δ
videosink/handler.go 82.5% <0.0%> (ø)
videosink/display.go 90.0% <100.0%> (+2.5%) :arrow_up:
videosink/encoder.go 100.0% <100.0%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 42ee855...e989a2f. Read the comment docs.

maruel commented 2 years ago

Thanks!