#include "bitstream.h"Go to the source code of this file.
Functions | |
| static int | get_unary (GetBitContext *gb, int stop, int len) |
| static int | get_unary_0_33 (GetBitContext *gb) |
| static int | get_unary_0_9 (GetBitContext *gb) |
| static int get_unary | ( | GetBitContext * | gb, | |
| int | stop, | |||
| int | len | |||
| ) | [inline, static] |
Get unary code of limited length
| gb | GetBitContext | |
| [in] | stop | The bitstop value (unary code of 1's or 0's) |
| [in] | len | Maximum length |
Definition at line 33 of file unary.h.
References get_bits1().
Referenced by get_unary_0_33(), get_unary_0_9(), mpc8_parse_seektable(), vc1_decode_ac_coeff(), vc1_parse_frame_header(), and vc1_parse_frame_header_adv().
00034 { 00035 int i; 00036 00037 for(i = 0; i < len && get_bits1(gb) != stop; i++); 00038 return i; 00039 }
| static int get_unary_0_33 | ( | GetBitContext * | gb | ) | [inline, static] |
Get unary code terminated by a 0 with a maximum length of 33
| gb | GetBitContext |
Definition at line 46 of file unary.h.
References get_unary().
Referenced by wv_get_value().
00047 { 00048 return get_unary(gb, 0, 33); 00049 }
| static int get_unary_0_9 | ( | GetBitContext * | gb | ) | [inline, static] |
Definition at line 51 of file unary.h.
References get_unary().
Referenced by decode_scalar().
00052 { 00053 return get_unary(gb, 0, 9); 00054 }
1.5.1