137 |
|
|
138 |
void BitstreamWriteVolHeader(Bitstream * const bs, |
void BitstreamWriteVolHeader(Bitstream * const bs, |
139 |
const MBParam * pParam, |
const MBParam * pParam, |
140 |
const FRAMEINFO * const frame); |
const FRAMEINFO * const frame, |
141 |
|
const int num_slices); |
142 |
|
|
143 |
void BitstreamWriteVopHeader(Bitstream * const bs, |
void BitstreamWriteVopHeader(Bitstream * const bs, |
144 |
const MBParam * pParam, |
const MBParam * pParam, |
204 |
#endif |
#endif |
205 |
bs->bufb = tmp; |
bs->bufb = tmp; |
206 |
|
|
207 |
bs->pos = bs->initpos = bitpos*8; |
bs->pos = bs->initpos = (uint32_t) bitpos*8; |
208 |
/* preserve the intervening bytes */ |
/* preserve the intervening bytes */ |
209 |
if (bs->initpos > 0) |
if (bs->initpos > 0) |
210 |
bs->buf = bs->bufa & (0xffffffff << (32 - bs->initpos)); |
bs->buf = bs->bufa & (0xffffffff << (32 - bs->initpos)); |