comparison put_bits.h @ 9412:a61f0c7f40a8 libavcodec

Document pbBufPtr().
author stefano
date Sun, 12 Apr 2009 09:06:17 +0000
parents 4cb7c65fc775
children 932543edc1d2
comparison
equal deleted inserted replaced
9411:4cb7c65fc775 9412:a61f0c7f40a8
257 assert(bits >= 0 && bits <= 31); 257 assert(bits >= 0 && bits <= 31);
258 258
259 put_bits(pb, bits, val & ((1<<bits)-1)); 259 put_bits(pb, bits, val & ((1<<bits)-1));
260 } 260 }
261 261
262 262 /**
263 * Returns the pointer to the byte where the bitstream writer will put
264 * the next bit.
265 */
263 static inline uint8_t* pbBufPtr(PutBitContext *s) 266 static inline uint8_t* pbBufPtr(PutBitContext *s)
264 { 267 {
265 #ifdef ALT_BITSTREAM_WRITER 268 #ifdef ALT_BITSTREAM_WRITER
266 return s->buf + (s->index>>3); 269 return s->buf + (s->index>>3);
267 #else 270 #else