GitHub - chaffim/FastAC: FastAC - Amir Said's Arithmetic and Huffman coding library, example code, and documentation
This repo is a clone of Amir Said's FastAC library. I studied this library while creating the arithmetic coding routines in the LZHAM codec. It's a very educational, high quality library. Unfortunately, it virtually disappeared on the web years ago so I'm putting a copy on github here.
// The only purpose of this program is to demonstrate the basic principles -
// of arithmetic coding. It is provided as is, without any express or -
// implied warranty, without even the warranty of fitness for any particular -
// purpose, or that the implementations are correct. -
// -
// Permission to copy and redistribute this code is hereby granted, provided -
// that this warning and copyright notices are not removed or altered. -
// -
// Copyright (c) 2004 by Amir Said (said@ieee.org) & -
// William A. Pearlman (pearlw@ecse.rpi.edu)