[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.20, Sun Dec 5 13:56:13 2004 UTC revision 1.22.2.1, Mon Jul 10 15:05:30 2006 UTC
# Line 146  Line 146 
146                                                           unsigned int quant);                                                           unsigned int quant);
147    
148  void BitstreamWriteUserData(Bitstream * const bs,  void BitstreamWriteUserData(Bitstream * const bs,
149                                                          uint8_t * data,                                                          const char *data,
150                                                          const int length);                                                          const unsigned int length);
151    
152    void
153    BitstreamWriteEndOfSequence(Bitstream * const bs);
154    
155    void
156    BitstreamWriteGroupOfVopHeader(Bitstream * const bs,
157                                   const MBParam * pParam,
158                                   uint32_t is_closed_gov);
159    
160    void write_video_packet_header(Bitstream * const bs,
161                                   const MBParam * pParam,
162                                   const FRAMEINFO * const frame,
163                                   int mbnum);
164    
165  /* initialise bitstream structure */  /* initialise bitstream structure */
166    
# Line 180  Line 193 
193  #endif  #endif
194          bs->bufb = tmp;          bs->bufb = tmp;
195    
196            /* preserve the intervening bytes */
197            if (bs->initpos > 0)
198                    bs->buf = bs->bufa & (0xffffffff << (32 - bs->initpos));
199            else
200          bs->buf = 0;          bs->buf = 0;
201    
202          bs->pos = bs->initpos = bitpos*8;          bs->pos = bs->initpos = bitpos*8;
203          bs->length = length;          bs->length = length;
204  }  }
# Line 207  Line 225 
225  #endif  #endif
226          bs->bufb = tmp;          bs->bufb = tmp;
227    
228            /* preserve the intervening bytes */
229            if (bs->initpos > 0)
230                    bs->buf = bs->bufa & (0xffffffff << (32 - bs->initpos));
231            else
232          bs->buf = 0;          bs->buf = 0;
233    
234          bs->pos = bs->initpos;          bs->pos = bs->initpos;
235  }  }
236    

Legend:
Removed from v.1.20  
changed lines
  Added in v.1.22.2.1

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