41 |
* * |
* * |
42 |
* Revision history: * |
* Revision history: * |
43 |
* * |
* * |
44 |
|
* 26.03.2002 interlacing support - modified putvol/vopheaders paramters |
45 |
* 04.03.2002 putbits speedup (Isibaar) * |
* 04.03.2002 putbits speedup (Isibaar) * |
46 |
* 03.03.2002 merged BITREADER and BITWRITER (Isibaar) * |
* 03.03.2002 merged BITREADER and BITWRITER (Isibaar) * |
47 |
* 16.12.2001 inital version * |
* 16.12.2001 inital version * |
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, uint32_t * intra_dc_threshold); |
117 |
|
|
118 |
|
|
119 |
void BitstreamWriteVolHeader(Bitstream * const bs, |
void BitstreamWriteVolHeader(Bitstream * const bs, |
120 |
const int width, |
const MBParam * pParam, |
121 |
const int height, |
const FRAMEINFO * frame); |
|
const int quant_type); |
|
|
|
|
122 |
|
|
123 |
void BitstreamWriteVopHeader(Bitstream * const bs, |
void BitstreamWriteVopHeader(Bitstream * const bs, |
124 |
VOP_TYPE prediction_type, |
const MBParam * pParam, |
125 |
const int rounding_type, |
const FRAMEINFO * frame); |
|
const uint32_t quant, |
|
|
const uint32_t fcode); |
|
|
|
|
126 |
|
|
127 |
/* initialise bitstream structure */ |
/* initialise bitstream structure */ |
128 |
|
|