[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.23, Fri Apr 14 07:24:47 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    
         bs->buf = 0;  
196          bs->pos = bs->initpos = bitpos*8;          bs->pos = bs->initpos = bitpos*8;
197            /* preserve the intervening bytes */
198            if (bs->initpos > 0)
199                    bs->buf = bs->bufa & (0xffffffff << (32 - bs->initpos));
200            else
201                    bs->buf = 0;
202          bs->length = length;          bs->length = length;
203  }  }
204    
# Line 207  Line 224 
224  #endif  #endif
225          bs->bufb = tmp;          bs->bufb = tmp;
226    
227            /* preserve the intervening bytes */
228            if (bs->initpos > 0)
229                    bs->buf = bs->bufa & (0xffffffff << (32 - bs->initpos));
230            else
231          bs->buf = 0;          bs->buf = 0;
232          bs->pos = bs->initpos;          bs->pos = bs->initpos;
233  }  }

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

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