Browse Source

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@jannau.net>
tags/n2.2-rc1
Janne Grunau 11 years ago
parent
commit
8b4119187b
2 changed files with 0 additions and 16 deletions
  1. +0
    -13
      libavcodec/cabac.c
  2. +0
    -3
      libavcodec/cabac.h

+ 0
- 13
libavcodec/cabac.c View File

@@ -102,19 +102,6 @@ static const uint8_t last_coeff_flag_offset_8x8[63] = {
5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8
}; };


/**
*
* @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 * @param buf_size size of buf in bits


+ 0
- 3
libavcodec/cabac.h View File

@@ -42,14 +42,11 @@
typedef struct CABACContext{ typedef struct CABACContext{
int low; int low;
int range; int range;
int outstanding_count;
const uint8_t *bytestream_start; const uint8_t *bytestream_start;
const uint8_t *bytestream; const uint8_t *bytestream;
const uint8_t *bytestream_end; const uint8_t *bytestream_end;
PutBitContext pb;
}CABACContext; }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_decoder(CABACContext *c, const uint8_t *buf, int buf_size);
void ff_init_cabac_states(void); void ff_init_cabac_states(void);




Loading…
Cancel
Save