--- bitstream.h 2002/03/08 02:44:35 1.1 +++ bitstream.h 2002/05/03 00:45:10 1.5 @@ -41,6 +41,7 @@ * * * Revision history: * * * + * 26.03.2002 interlacing support - modified putvol/vopheaders paramters * 04.03.2002 putbits speedup (Isibaar) * * 03.03.2002 merged BITREADER and BITWRITER (Isibaar) * * 16.12.2001 inital version * @@ -110,36 +111,18 @@ #define N_VOP 4 -typedef struct -{ - uint32_t bufa; - uint32_t bufb; - uint32_t buf; - uint32_t pos; - uint32_t *tail; - uint32_t *start; - uint32_t length; -} -Bitstream; - - // header stuff int BitstreamReadHeaders(Bitstream * bs, DECODER * dec, uint32_t * rounding, - 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); void BitstreamWriteVolHeader(Bitstream * const bs, - const int width, - const int height, - const int quant_type); - + const MBParam * pParam, + const FRAMEINFO * frame); void BitstreamWriteVopHeader(Bitstream * const bs, - VOP_TYPE prediction_type, - const int rounding_type, - const uint32_t quant, - const uint32_t fcode); - + const MBParam * pParam, + const FRAMEINFO * frame); /* initialise bitstream structure */