~ubuntu-branches/ubuntu/jaunty/xvidcap/jaunty-proposed

« back to all changes in this revision

Viewing changes to ffmpeg/libavcodec/cabac.c

  • Committer: Bazaar Package Importer
  • Author(s): Lionel Le Folgoc
  • Date: 2008-12-26 00:10:06 UTC
  • mto: This revision was merged to the branch mainline in revision 8.
  • Revision ID: james.westby@ubuntu.com-20081226001006-wd8cuqn8d81smkdp
Tags: upstream-1.1.7
ImportĀ upstreamĀ versionĀ 1.1.7

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 * You should have received a copy of the GNU Lesser General Public
18
18
 * License along with FFmpeg; if not, write to the Free Software
19
19
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20
 
 *
21
20
 */
22
21
 
23
22
/**
179
178
    }
180
179
}
181
180
 
182
 
#if 0 //selftest
 
181
#ifdef TEST
 
182
#undef random
183
183
#define SIZE 10240
184
184
 
185
185
#include "avcodec.h"
 
186
#include "cabac.h"
186
187
 
187
 
int main(){
 
188
int main(void){
188
189
    CABACContext c;
189
190
    uint8_t b[9*SIZE];
190
191
    uint8_t r[9*SIZE];
192
193
    uint8_t state[10]= {0};
193
194
 
194
195
    ff_init_cabac_encoder(&c, b, SIZE);
195
 
    ff_init_cabac_states(&c, ff_h264_lps_range, ff_h264_mps_state, ff_h264_lps_state, 64);
 
196
    ff_init_cabac_states(&c);
196
197
 
197
198
    for(i=0; i<SIZE; i++){
198
199
        r[i]= random()%7;
262
263
    return 0;
263
264
}
264
265
 
265
 
#endif
 
266
#endif /* TEST */