50 |
* exception also makes it possible to release a modified version which |
* exception also makes it possible to release a modified version which |
51 |
* carries forward this exception. |
* carries forward this exception. |
52 |
* |
* |
53 |
* $Id: bitstream.h,v 1.15 2002-11-26 23:44:10 edgomez Exp $ |
* $Id: bitstream.h,v 1.16 2003-02-09 19:32:52 edgomez Exp $ |
54 |
* |
* |
55 |
****************************************************************************/ |
****************************************************************************/ |
56 |
|
|
301 |
static uint32_t __inline |
static uint32_t __inline |
302 |
BitstreamPos(const Bitstream * const bs) |
BitstreamPos(const Bitstream * const bs) |
303 |
{ |
{ |
304 |
return 8 * ((ptr_t)bs->tail - (ptr_t)bs->start) + bs->pos; |
return((uint32_t)(8*((ptr_t)bs->tail - (ptr_t)bs->start) + bs->pos)); |
305 |
} |
} |
306 |
|
|
307 |
|
|
312 |
static uint32_t __inline |
static uint32_t __inline |
313 |
BitstreamLength(Bitstream * const bs) |
BitstreamLength(Bitstream * const bs) |
314 |
{ |
{ |
315 |
uint32_t len = (ptr_t) bs->tail - (ptr_t) bs->start; |
uint32_t len = (uint32_t)((ptr_t)bs->tail - (ptr_t)bs->start); |
316 |
|
|
317 |
if (bs->pos) { |
if (bs->pos) { |
318 |
uint32_t b = bs->buf; |
uint32_t b = bs->buf; |