/*
 * 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 (CAE) described in 
 * @MANUAL{
 * TITLE        = {Information technology -- Coding of audio-visual objects -- Part 2: Video},
 * ORGANIZATION = {ISO/IEC 14496-2 International Standard},
 * YEAR         = {1999},
 *
 */


/* Default values used
 *  "soc",  0,              // LPS over MPS 
 *  "te",   1,              // Assign the TE to the MPS subinterval 
 *  "norm", 1<<30,          // Renormalize whenever R < 1<<(prec-2) = 1<<30 
 */

bac MP4ShapeCoder { 
    "prec", 32,             // 32-bit precision
    "ooc",  1,              // Divide first 
    "init", {(1<<31)-1,31}, // Init: R=(1<<31)-1; read 31 code stream bits for decoding
    "end",  {0,3}           // End: Output minimal bits, excluding two special cases 
}