learnjpeg-go

command module
v0.0.0-...-52d99b9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 29, 2021 License: BSD-3-Clause Imports: 7 Imported by: 0

README

Learn JPEG in Go

Learn how JPEG works by reinventing the library. Focus will be on bare minimum amount of code and the workings of code are understandable.

Limitation (to speed up dev, learn and reduce complexity)

  • Encode only
  • Portable Pixmap Format P6 input file format only
  • Quality set to 75%, no other quality
  • No Chroma subsampling
  • Width and Height are divisible by 16
  • Only Lossy and Baseline sequential process
  • No optimisation
  • Use precomputed or provided numbers

Order

  • Convert RGB to YCbCr
  • Chroma Subsampling 4:2:0
  • Pixels block to 8x8
  • Discrete Cosine Transform (DCT II)
  • Quantization
  • Encode
    • Zigzag
    • Huffman
    • Run-length encoding
  • Store Header + Data

References

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL