Lines Matching refs:gb

29  * @param[in] gb       bit reader context
33 static int parse_config_ALS(GetBitContext *gb, MPEG4AudioConfig *c, void *logctx)
35 if (get_bits_left(gb) < 112)
38 if (get_bits_long(gb, 32) != MKBETAG('A','L','S','\0'))
43 c->sample_rate = get_bits_long(gb, 32);
51 skip_bits_long(gb, 32);
55 c->channels = get_bits(gb, 16) + 1;
77 static inline int get_object_type(GetBitContext *gb)
79 int object_type = get_bits(gb, 5);
81 object_type = 32 + get_bits(gb, 6);
85 static inline int get_sample_rate(GetBitContext *gb, int *index)
87 *index = get_bits(gb, 4);
88 return *index == 0x0f ? get_bits(gb, 24) :
92 int ff_mpeg4audio_get_config_gb(MPEG4AudioConfig *c, GetBitContext *gb,
96 int start_bit_index = get_bits_count(gb);
97 c->object_type = get_object_type(gb);
98 c->sample_rate = get_sample_rate(gb, &c->sampling_index);
99 c->chan_config = get_bits(gb, 4);
110 !(show_bits(gb, 3) & 0x03 && !(show_bits(gb, 9) & 0x3F)))) {
115 c->ext_sample_rate = get_sample_rate(gb, &c->ext_sampling_index);
116 c->object_type = get_object_type(gb);
118 c->ext_chan_config = get_bits(gb, 4);
123 specific_config_bitindex = get_bits_count(gb);
126 skip_bits(gb, 5);
127 if (show_bits(gb, 24) != MKBETAG('\0','A','L','S'))
128 skip_bits(gb, 24);
130 specific_config_bitindex = get_bits_count(gb);
132 ret = parse_config_ALS(gb, c, logctx);
138 while (get_bits_left(gb) > 15) {
139 if (show_bits(gb, 11) == 0x2b7) { // sync extension
140 get_bits(gb, 11);
141 c->ext_object_type = get_object_type(gb);
142 if (c->ext_object_type == AOT_SBR && (c->sbr = get_bits1(gb)) == 1) {
143 c->ext_sample_rate = get_sample_rate(gb, &c->ext_sampling_index);
147 if (get_bits_left(gb) > 11 && get_bits(gb, 11) == 0x548)
148 c->ps = get_bits1(gb);
151 get_bits1(gb); // skip 1 bit
168 GetBitContext gb;
174 ret = init_get_bits8(&gb, buf, size);
178 return ff_mpeg4audio_get_config_gb(c, &gb, sync_extension, logctx);