#ifndef WH_CABAC_H_128a328f_ #define WH_CABAC_H_128a328f_ /* * This file was stolen from ffmpeg and modified for usability here. * The original is * * Copyright (c) 2003 Michael Niedermayer * * This version is a derivative work of that version. It is not free * software; it is licensed under the GNU Lesser General Public * License version 2.1, which places nontrivial restrictions on what * may be done with it. (I'm not terribly happy about that, but for * my purposes accepting LGPL-infected code is a lower price than * reimplementing it all myself.) * * The LGPL v2.1 as distributed with ffmpeg is in the accompanying file * `LGPL-v2.1'. */ #include #include "put_bits.h" #define CABAC_BITS 16 #define CABAC_MASK ((1<