127 |
|
|
128 |
void BitstreamWriteVopHeader(Bitstream * const bs, |
void BitstreamWriteVopHeader(Bitstream * const bs, |
129 |
const MBParam * pParam, |
const MBParam * pParam, |
130 |
const FRAMEINFO * frame); |
const FRAMEINFO * frame, |
131 |
|
int vop_coded); |
132 |
|
|
133 |
|
void BitstreamWriteUserData(Bitstream * const bs, |
134 |
|
uint8_t * data, |
135 |
|
const int length); |
136 |
|
|
137 |
/* initialise bitstream structure */ |
/* initialise bitstream structure */ |
138 |
|
|
248 |
static uint32_t __inline |
static uint32_t __inline |
249 |
BitstreamPos(const Bitstream * const bs) |
BitstreamPos(const Bitstream * const bs) |
250 |
{ |
{ |
251 |
return 8 * ((uint32_t) bs->tail - (uint32_t) bs->start) + bs->pos; |
return 8 * ((ptr_t)bs->tail - (ptr_t)bs->start) + bs->pos; |
252 |
} |
} |
253 |
|
|
254 |
|
|
259 |
static uint32_t __inline |
static uint32_t __inline |
260 |
BitstreamLength(Bitstream * const bs) |
BitstreamLength(Bitstream * const bs) |
261 |
{ |
{ |
262 |
uint32_t len = (uint32_t) bs->tail - (uint32_t) bs->start; |
uint32_t len = (ptr_t) bs->tail - (ptr_t) bs->start; |
263 |
|
|
264 |
if (bs->pos) { |
if (bs->pos) { |
265 |
uint32_t b = bs->buf; |
uint32_t b = bs->buf; |