Skip to content

Playing with lossy image compression based on the singular value decomposition

License

Notifications You must be signed in to change notification settings

Special-graphic-formats/svd

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ORG.SGF: GitHub release (latest by date) GitHub Release Date GitHub repo size GitHub all releases GitHub

SVD

Playing with lossy image compression based on the singular value decomposition

Quick start:

Encode smpte.ppm PNM picture file to encoded.svd:

./svdenc smpte.ppm encoded.svd

Decode encoded.svd file to decoded.ppm picture file:

./svddec encoded.svd decoded.ppm

Watch decoded.ppm picture file in feh:

feh decoded.ppm

Adjusting quantization

Use quantization values of seven for luminance (Y'), six and seven for chrominance (Cb and Cr) instead of the default 12 10 10 values:

./svdenc smpte.ppm encoded.svd 7 6 5

Limited storage capacity

Use up to 65536 bits of space instead of the default 0 (no limit) and discard quality bits, if necessary, to stay below 65536 bits:

./svdenc smpte.ppm encoded.svd 12 10 10 65536

Reading

Singular value decomposition

About

Playing with lossy image compression based on the singular value decomposition

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 97.4%
  • Makefile 2.6%