summaryrefslogtreecommitdiff
path: root/libavcodec/cabac.h
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2007-10-12 08:43:23 +0000
committerDiego Biurrun <diego@biurrun.de>2007-10-12 08:43:23 +0000
commit0f26eec23e8fa26661f5f806b8825cc4ce2c5381 (patch)
tree678f4277c824e7ae0779e9855bb3e55ca51c8ecd /libavcodec/cabac.h
parent2a7feb18c47d9bcc35b0f7d5c144c92a3933c1a2 (diff)
Disable unused code; fixes several gcc warnings:
cabac.h:112: warning: ‘put_cabac_static’ defined but not used cabac.h:158: warning: ‘put_cabac_terminate’ defined but not used cabac.h:186: warning: ‘put_cabac_u’ defined but not used cabac.h:221: warning: ‘put_cabac_ueg’ defined but not used cabac.h:273: warning: ‘refill2’ defined but not used cabac.h:811: warning: ‘get_cabac_u’ defined but not used cabac.h:827: warning: ‘get_cabac_ueg’ defined but not used Originally committed as revision 10713 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/cabac.h')
-rw-r--r--libavcodec/cabac.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libavcodec/cabac.h b/libavcodec/cabac.h
index bb682d9498..f4feb493d7 100644
--- a/libavcodec/cabac.h
+++ b/libavcodec/cabac.h
@@ -90,6 +90,7 @@ static inline void renorm_cabac_encoder(CABACContext *c){
}
}
+#if 0
static void put_cabac(CABACContext *c, uint8_t * const state, int bit){
int RangeLPS= ff_h264_lps_range[2*(c->range&0xC0) + *state];
@@ -259,6 +260,7 @@ static void put_cabac_ueg(CABACContext *c, uint8_t * state, int v, int max, int
put_cabac_bypass(c, sign);
}
}
+#endif /* 0 */
static void refill(CABACContext *c){
#if CABAC_BITS == 16
@@ -270,6 +272,7 @@ static void refill(CABACContext *c){
c->bytestream+= CABAC_BITS/8;
}
+#if 0
static void refill2(CABACContext *c){
int i, x;
@@ -287,6 +290,7 @@ static void refill2(CABACContext *c){
c->low += x<<i;
c->bytestream+= CABAC_BITS/8;
}
+#endif
static inline void renorm_cabac_decoder(CABACContext *c){
while(c->range < 0x100){
@@ -805,6 +809,7 @@ static int get_cabac_terminate(CABACContext *c){
}
}
+#if 0
/**
* Get (truncated) unary binarization.
*/
@@ -860,5 +865,6 @@ static int get_cabac_ueg(CABACContext *c, uint8_t * state, int max, int is_signe
}else
return i;
}
+#endif /* 0 */
#endif /* CABAC_H */