[cvs] / xvidcore / src / bitstream / bitstream.h Repository:
ViewVC logotype

Diff of /xvidcore/src/bitstream/bitstream.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.6, Wed Jun 12 20:38:40 2002 UTC revision 1.8, Thu Jun 20 14:05:58 2002 UTC
# Line 127  Line 127 
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    
# Line 243  Line 248 
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    
# Line 254  Line 259 
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;

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.8

No admin address has been configured
ViewVC Help
Powered by ViewVC 1.0.4