111 |
#define N_VOP 4 |
#define N_VOP 4 |
112 |
|
|
113 |
|
|
|
typedef struct |
|
|
{ |
|
|
uint32_t bufa; |
|
|
uint32_t bufb; |
|
|
uint32_t buf; |
|
|
uint32_t pos; |
|
|
uint32_t *tail; |
|
|
uint32_t *start; |
|
|
uint32_t length; |
|
|
} |
|
|
Bitstream; |
|
|
|
|
|
|
|
114 |
// header stuff |
// header stuff |
115 |
int BitstreamReadHeaders(Bitstream * bs, DECODER * dec, uint32_t * rounding, |
int BitstreamReadHeaders(Bitstream * bs, DECODER * dec, uint32_t * rounding, |
116 |
uint32_t * quant, uint32_t * fcode, uint32_t * intra_dc_threshold); |
uint32_t * quant, uint32_t * fcode_forward, uint32_t * fcode_backward, uint32_t * intra_dc_threshold); |
117 |
|
|
118 |
|
|
119 |
void BitstreamWriteVolHeader(Bitstream * const bs, |
void BitstreamWriteVolHeader(Bitstream * const bs, |
120 |
const MBParam * pParam); |
const MBParam * pParam, |
121 |
|
const FRAMEINFO * frame); |
122 |
|
|
123 |
void BitstreamWriteVopHeader(Bitstream * const bs, |
void BitstreamWriteVopHeader(Bitstream * const bs, |
124 |
const MBParam * pParam); |
const MBParam * pParam, |
125 |
|
const FRAMEINFO * frame); |
126 |
|
|
127 |
/* initialise bitstream structure */ |
/* initialise bitstream structure */ |
128 |
|
|