Lines Matching defs:mode
199 static void decode_lpc(int32_t *coeffs, int mode, int length)
206 if (mode == 1) {
216 } else if (mode == 2) {
234 } else if (mode == 3) {
255 static int decode_segment(TAKDecContext *s, int8_t mode, int32_t *decoded, int len)
261 if (!mode) {
266 if (mode > FF_ARRAY_ELEMS(xcodes))
268 code = xcodes[mode - 1];
302 int i, mode, ret;
322 s->coding_mode[0] = mode = get_bits(gb, 6);
329 mode = get_bits(gb, 6);
334 /* mode += sign ? (1 - c) : (c - 1) */
336 mode += (-sign ^ (c - 1)) + sign;
340 mode++;
343 mode--;
346 s->coding_mode[i] = mode;
353 mode = s->coding_mode[i];
363 } while (s->coding_mode[i] == mode);
365 if ((ret = decode_segment(s, mode, decoded, len)) < 0)
370 mode = get_bits(gb, 6);
371 if ((ret = decode_segment(s, mode, decoded, length)) < 0)