/*
* Copyright (c) 1997-2005 Alexandros Eleftheriadis and Danny Hong.
*
* This file is part of Flavor, developed at Columbia University
* (www.ee.columbia.edu/flavor).
*
* Flavor is free software; you can redistribute it and/or modify
* it under the terms of the Flavor Artistic License as described in
* the file COPYING.txt.
*
*/
/*
* Authors:
* Danny Hong <danny@ee.columbia.edu>
*
*/
/*
* The binary arithmetic coder described in
* @ARTICLE{
* AUTHOR = {Witten, I. H. and Neal, R. M. and Cleary, J. G.},
* TITLE = {Arithmetic Coding for Data Compression},
* JOURNAL = {Communications of the ACM},
* VOLUME = {30},
* PAGES = {520--540},
* YEAR = {1987},
*
*/
/* Default values used
* "prec", 16, // 16-bit precision
* "ooc", 0, // Multiply first
* "soc", 0, // LPS over MPS
* "te", 1, // Assign the TE to the MPS subinterval
*/
bac CACMCoder {
"norm", 0, // Renormalize as soon as possible
"init", 1<<16, // Init: R=1<<16
"end", 2 // End: Output 2 bits
}
|