aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/cabac.h
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2011-12-27 11:51:28 +0100
committerDiego Biurrun <diego@biurrun.de>2012-01-04 01:09:54 +0100
commit9dec55748cd5cf371d8f3eb35bac073d285f0617 (patch)
treebe4fcea4a3fe9ef26dd3da57ff967c4fa2bb2195 /libavcodec/cabac.h
parente451c26c5f0bff9ced74ff6dfa3fce111fed1dbb (diff)
downloadffmpeg-9dec55748cd5cf371d8f3eb35bac073d285f0617.tar.gz
cabac: drop unused and disabled get_cabac_u() / get_cabac_ueg() functions
Diffstat (limited to 'libavcodec/cabac.h')
-rw-r--r--libavcodec/cabac.h58
1 files changed, 0 insertions, 58 deletions
diff --git a/libavcodec/cabac.h b/libavcodec/cabac.h
index b3f8f55da3..aff6495e29 100644
--- a/libavcodec/cabac.h
+++ b/libavcodec/cabac.h
@@ -213,62 +213,4 @@ static int av_unused get_cabac_terminate(CABACContext *c){
}
}
-#if 0
-/**
- * Get (truncated) unary binarization.
- */
-static int get_cabac_u(CABACContext *c, uint8_t * state, int max, int max_index, int truncated){
- int i;
-
- for(i=0; i<max; i++){
- if(get_cabac(c, state)==0)
- return i;
-
- if(i< max_index) state++;
- }
-
- return truncated ? max : -1;
-}
-
-/**
- * get unary exp golomb k-th order binarization.
- */
-static int get_cabac_ueg(CABACContext *c, uint8_t * state, int max, int is_signed, int k, int max_index){
- int i, v;
- int m= 1<<k;
-
- if(get_cabac(c, state)==0)
- return 0;
-
- if(0 < max_index) state++;
-
- for(i=1; i<max; i++){
- if(get_cabac(c, state)==0){
- if(is_signed && get_cabac_bypass(c)){
- return -i;
- }else
- return i;
- }
-
- if(i < max_index) state++;
- }
-
- while(get_cabac_bypass(c)){
- i+= m;
- m+= m;
- }
-
- v=0;
- while(m>>=1){
- v+= v + get_cabac_bypass(c);
- }
- i += v;
-
- if(is_signed && get_cabac_bypass(c)){
- return -i;
- }else
- return i;
-}
-#endif /* 0 */
-
#endif /* AVCODEC_CABAC_H */