Lines Matching defs:fixed_index
433 static void decode_8_pulses_35bits(const uint16_t *fixed_index, float *cod)
437 offset = (fixed_index[3] >> 9) & 3;
440 pos1 = ((fixed_index[i] & 0x7f) / 11) * 5 + ((i + offset) % 5);
441 pos2 = ((fixed_index[i] & 0x7f) % 11) * 5 + ((i + offset) % 5);
443 cod[pos1] = (fixed_index[i] & 0x80) ? -1.0 : 1.0;
451 pos1 = ((fixed_index[3] & 0x7f) / 11) * 5 + ((3 + offset) % 5);
452 pos2 = ((fixed_index[3] & 0x7f) % 11) * 5 + ((4 + offset) % 5);
454 cod[pos1] = (fixed_index[3] & 0x100) ? -1.0 : 1.0;
455 cod[pos2] = (fixed_index[3] & 0x80 ) ? -1.0 : 1.0;
458 static void decode_3_pulses_10bits(uint16_t fixed_index, float *cod)
463 sign = (fixed_index & 0x200) ? -1.0 : 1.0;
465 pos = ((fixed_index & 0x7) * 7) + 4;
467 pos = (((fixed_index >> 3) & 0x7) * 7) + 2;
469 pos = (((fixed_index >> 6) & 0x7) * 7);