|
|
|
@@ -113,6 +113,9 @@ typedef struct RL_VLC_ELEM { |
|
|
|
* LAST_SKIP_BITS(name, gb, num) |
|
|
|
* Like SKIP_BITS, to be used if next call is UPDATE_CACHE or CLOSE_READER. |
|
|
|
* |
|
|
|
* BITS_LEFT(name, gb) |
|
|
|
* Return the number of bits left |
|
|
|
* |
|
|
|
* For examples see get_bits, show_bits, skip_bits, get_vlc. |
|
|
|
*/ |
|
|
|
|
|
|
|
@@ -179,6 +182,8 @@ typedef struct RL_VLC_ELEM { |
|
|
|
name ## _index = FFMIN(name ## _size_plus8, name ## _index + (num)) |
|
|
|
#endif |
|
|
|
|
|
|
|
#define BITS_LEFT(name, gb) ((int)((gb)->size_in_bits - name ## _index)) |
|
|
|
|
|
|
|
#define SKIP_BITS(name, gb, num) \ |
|
|
|
do { \ |
|
|
|
SKIP_CACHE(name, gb, num); \ |
|
|
|
|