Lines Matching defs:sel
349 static inline int parse_scale(DCACoreDecoder *s, int *scale_index, int sel)
355 if (sel > 5) {
364 if (sel < 5)
365 *scale_index += dca_get_vlc(&s->gb, &ff_dca_vlc_scale_factor, sel);
367 *scale_index = get_bits(&s->gb, sel + 1);
378 static inline int parse_joint_scale(DCACoreDecoder *s, int sel)
383 if (sel < 5)
384 scale_index = dca_get_vlc(&s->gb, &ff_dca_vlc_scale_factor, sel);
386 scale_index = get_bits(&s->gb, sel + 1);
430 int sel = s->bit_allocation_sel[ch];
435 if (sel < 5)
436 abits = dca_get_vlc(&s->gb, &ff_dca_vlc_bit_allocation, sel);
438 abits = get_bits(&s->gb, sel - 1);
456 int sel = s->transition_mode_sel[ch];
459 s->transition_mode[sf][ch][band] = dca_get_vlc(&s->gb, &ff_dca_vlc_transition_mode, sel);
465 int sel = s->scale_factor_sel[ch];
471 if ((ret = parse_scale(s, &scale_index, sel)) < 0)
475 if ((ret = parse_scale(s, &scale_index, sel)) < 0)
486 if ((ret = parse_scale(s, &scale_index, sel)) < 0)
507 int sel = s->joint_scale_sel[ch];
509 if ((ret = parse_joint_scale(s, sel)) < 0)
564 static inline int parse_huffman_codes(DCACoreDecoder *s, int32_t *audio, int abits, int sel)
570 audio[i] = dca_get_vlc(&s->gb, &ff_dca_vlc_quant_index[abits - 1], sel);
586 int sel = s->quant_index_sel[ch][abits - 1];
587 if (sel < ff_dca_quant_index_group_size[abits - 1]) {
589 return parse_huffman_codes(s, audio, abits, sel);
1328 int sel = s->bit_allocation_sel[ch];
1333 if (sel < 7)
1334 abits += dca_get_vlc(&s->gb, &ff_dca_vlc_quant_index[5 + 2 * s->x96_high_res], sel);
1349 int sel = s->scale_factor_sel[ch];
1355 if ((ret = parse_scale(s, &scale_index, sel)) < 0)
1376 int sel = s->joint_scale_sel[ch];
1378 if ((ret = parse_joint_scale(s, sel)) < 0)