* @param round_up When set, the number of bits written so far will be * rounded up to the next byte. * @return the number of bytes output so far. */
| 108 | * @return the number of bytes output so far. |
| 109 | */ |
| 110 | static inline int put_bytes_count(const PutBitContext *s, int round_up) |
| 111 | { |
| 112 | return s->buf_ptr - s->buf + ((BUF_BITS - s->bit_left + (round_up ? 7 : 0)) >> 3); |
| 113 | } |
| 114 | |
| 115 | /** |
| 116 | * Rebase the bit writer onto a reallocated buffer. |
no outgoing calls