[FFmpeg-cvslog] cabac: remove leftovers from the cabac encoder
Janne Grunau
git at videolan.org
Wed Jan 15 05:15:55 CET 2014
ffmpeg | branch: master | Janne Grunau <janne-libav at jannau.net> | Mon Jan 13 21:23:13 2014 +0100| [8b4119187b62d6932e07aded11d33d3b24e1b42f] | committer: Janne Grunau
cabac: remove leftovers from the cabac encoder
The cabac encoder was only used by the removed cabac test.
Signed-off-by: Janne Grunau <janne-libav at jannau.net>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8b4119187b62d6932e07aded11d33d3b24e1b42f
---
libavcodec/cabac.c | 13 -------------
libavcodec/cabac.h | 3 ---
2 files changed, 16 deletions(-)
diff --git a/libavcodec/cabac.c b/libavcodec/cabac.c
index e1cd811..b6f56f0 100644
--- a/libavcodec/cabac.c
+++ b/libavcodec/cabac.c
@@ -106,19 +106,6 @@ static const uint8_t last_coeff_flag_offset_8x8[63] = {
*
* @param buf_size size of buf in bits
*/
-void ff_init_cabac_encoder(CABACContext *c, uint8_t *buf, int buf_size){
- init_put_bits(&c->pb, buf, buf_size);
-
- c->low= 0;
- c->range= 0x1FE;
- c->outstanding_count= 0;
- c->pb.bit_left++; //avoids firstBitFlag
-}
-
-/**
- *
- * @param buf_size size of buf in bits
- */
void ff_init_cabac_decoder(CABACContext *c, const uint8_t *buf, int buf_size){
c->bytestream_start=
c->bytestream= buf;
diff --git a/libavcodec/cabac.h b/libavcodec/cabac.h
index 04495a6..7401bc9 100644
--- a/libavcodec/cabac.h
+++ b/libavcodec/cabac.h
@@ -42,14 +42,11 @@
typedef struct CABACContext{
int low;
int range;
- int outstanding_count;
const uint8_t *bytestream_start;
const uint8_t *bytestream;
const uint8_t *bytestream_end;
- PutBitContext pb;
}CABACContext;
-void ff_init_cabac_encoder(CABACContext *c, uint8_t *buf, int buf_size);
void ff_init_cabac_decoder(CABACContext *c, const uint8_t *buf, int buf_size);
void ff_init_cabac_states(void);
More information about the ffmpeg-cvslog
mailing list