From 1ef8ff4534706de0b1da3442f380be58a650acf2 Mon Sep 17 00:00:00 2001 From: Diego Biurrun Date: Sat, 7 Jan 2012 20:27:31 +0100 Subject: cabac: remove put_cabac_u/ueg from cabac-test. The functions are not used in any part of Libav, therefore testing them in the cabac-test is unnecessary. Since this makes them unused, remove the functions. --- libavcodec/cabac.c | 73 ------------------------------------------------------ 1 file changed, 73 deletions(-) (limited to 'libavcodec/cabac.c') diff --git a/libavcodec/cabac.c b/libavcodec/cabac.c index 466d6239dc..54414fa1e5 100644 --- a/libavcodec/cabac.c +++ b/libavcodec/cabac.c @@ -248,67 +248,6 @@ static int put_cabac_terminate(CABACContext *c, int bit){ return (put_bits_count(&c->pb)+7)>>3; } -/** - * put (truncated) unary binarization. - */ -static void put_cabac_u(CABACContext *c, uint8_t * state, int v, int max, int max_index, int truncated){ - int i; - - assert(v <= max); - - for(i=0; i= m){ //FIXME optimize - put_cabac_bypass(c, 1); - v-= m; - m+= m; - } - put_cabac_bypass(c, 0); - while(m>>=1){ - put_cabac_bypass(c, v&m); - } - } - - if(is_signed) - put_cabac_bypass(c, sign); - } -} - int main(void){ CABACContext c; uint8_t b[9*SIZE]; @@ -337,18 +276,6 @@ START_TIMER STOP_TIMER("put_cabac") } - for(i=0; i