* Get the size of the GetBitContext's buffer in bytes. * * @param s the GetBitContext * @param round_up If set, the number of bits will be rounded up to full bytes; * this does not matter if the number of bits is known to be * a multiple of eight, e.g. if the GetBitContext has been * initialized with init_get_bits8. */
| 266 | * initialized with init_get_bits8. |
| 267 | */ |
| 268 | static inline int get_bits_bytesize(const GetBitContext *s, int round_up) |
| 269 | { |
| 270 | return (s->size_in_bits + (round_up ? 7 : 0)) >> 3; |
| 271 | } |
| 272 | |
| 273 | /** |
| 274 | * Skips the specified number of bits. |
no outgoing calls
no test coverage detected