tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

README.md (2211B)


:warning: Important Update: Development continues at https://github.com/google/jpegli

Improved JPEG encoder and decoder implementation

This subdirectory contains a JPEG encoder and decoder implementation that is API and ABI compatible with libjpeg62.

Building

When building the parent libjxl project, two binaries, tools/cjpegli and tools/djpegli will be built, as well as a lib/jpegli/libjpeg.so.62.3.0 shared library that can be used as a drop-in replacement for the system library with the same name.

Encoder improvements

Improvements and new features used by the encoder include:

point precision, the conversion to integers happens first when producing the final quantized DCT coefficients.

analogous to the distance parameter of JPEG XL. The quantization tables are chosen based on the distance and the chroma subsampling mode, with different positions in the quantization matrix scaling differently, and the red and blue chrominance channels have separate quantization tables.

thresholds for zero coefficients are higher than on smoother parts of the image.

representing the XYB colorspace. These JPEGs will not be converted to the YCbCr colorspace, but specialized quantization tables will be chosen for the original X, Y, B channels.

Decoder improvements

respective quantization intervals assuming a Laplacian distribution of the original unquantized DCT coefficients.

conversions are all done in floating point precision, the conversion to integer samples happens only in the final output phase (unless output to floating point was requested).