comparison put_bits.h @ 10585:7034c66f7e7d libavcodec

Consistently put braces for function definitions.
author stefano
date Sat, 28 Nov 2009 10:21:10 +0000
parents 784409693f16
children d7ae0897b236
comparison
equal deleted inserted replaced
10584:784409693f16 10585:7034c66f7e7d
294 294
295 /** 295 /**
296 * Skips the given number of bytes. 296 * Skips the given number of bytes.
297 * PutBitContext must be flushed & aligned to a byte boundary before calling this. 297 * PutBitContext must be flushed & aligned to a byte boundary before calling this.
298 */ 298 */
299 static inline void skip_put_bytes(PutBitContext *s, int n){ 299 static inline void skip_put_bytes(PutBitContext *s, int n)
300 {
300 assert((put_bits_count(s)&7)==0); 301 assert((put_bits_count(s)&7)==0);
301 #ifdef ALT_BITSTREAM_WRITER 302 #ifdef ALT_BITSTREAM_WRITER
302 FIXME may need some cleaning of the buffer 303 FIXME may need some cleaning of the buffer
303 s->index += n<<3; 304 s->index += n<<3;
304 #else 305 #else
310 /** 311 /**
311 * Skips the given number of bits. 312 * Skips the given number of bits.
312 * Must only be used if the actual values in the bitstream do not matter. 313 * Must only be used if the actual values in the bitstream do not matter.
313 * If n is 0 the behavior is undefined. 314 * If n is 0 the behavior is undefined.
314 */ 315 */
315 static inline void skip_put_bits(PutBitContext *s, int n){ 316 static inline void skip_put_bits(PutBitContext *s, int n)
317 {
316 #ifdef ALT_BITSTREAM_WRITER 318 #ifdef ALT_BITSTREAM_WRITER
317 s->index += n; 319 s->index += n;
318 #else 320 #else
319 s->bit_left -= n; 321 s->bit_left -= n;
320 s->buf_ptr-= 4*(s->bit_left>>5); 322 s->buf_ptr-= 4*(s->bit_left>>5);
325 /** 327 /**
326 * Changes the end of the buffer. 328 * Changes the end of the buffer.
327 * 329 *
328 * @param size the new size in bytes of the buffer where to put bits 330 * @param size the new size in bytes of the buffer where to put bits
329 */ 331 */
330 static inline void set_put_bits_buffer_size(PutBitContext *s, int size){ 332 static inline void set_put_bits_buffer_size(PutBitContext *s, int size)
333 {
331 s->buf_end= s->buf + size; 334 s->buf_end= s->buf + size;
332 } 335 }
333 336
334 #endif /* AVCODEC_PUT_BITS_H */ 337 #endif /* AVCODEC_PUT_BITS_H */