Mercurial > libavcodec.hg
comparison bitstream.h @ 9389:0d7c2dee6b4d libavcodec
Doxygenate init_put_bits().
author | stefano |
---|---|
date | Fri, 10 Apr 2009 17:30:42 +0000 |
parents | fec13de9a1f2 |
children | 79651ce180f2 |
comparison
equal
deleted
inserted
replaced
9388:2313bf51945b | 9389:0d7c2dee6b4d |
---|---|
87 uint8_t *buf, *buf_ptr, *buf_end; | 87 uint8_t *buf, *buf_ptr, *buf_end; |
88 #endif | 88 #endif |
89 int size_in_bits; | 89 int size_in_bits; |
90 } PutBitContext; | 90 } PutBitContext; |
91 | 91 |
92 /** | |
93 * Initializes the PutBitContext \p s. | |
94 * | |
95 * @param buffer the buffer where to put bits | |
96 * @param buffer_size the size in bytes of \p buffer | |
97 */ | |
92 static inline void init_put_bits(PutBitContext *s, uint8_t *buffer, int buffer_size) | 98 static inline void init_put_bits(PutBitContext *s, uint8_t *buffer, int buffer_size) |
93 { | 99 { |
94 if(buffer_size < 0) { | 100 if(buffer_size < 0) { |
95 buffer_size = 0; | 101 buffer_size = 0; |
96 buffer = NULL; | 102 buffer = NULL; |