• Home
  • Raw
  • Download

Lines Matching refs:pulse_position

435 static void decode_10bit_pulse(int code, int pulse_position[8],  in decode_10bit_pulse()
441 pulse_position[i1] = (positions[2] << 1) + ( code & 1); in decode_10bit_pulse()
442 pulse_position[i2] = (positions[1] << 1) + ((code >> 1) & 1); in decode_10bit_pulse()
443 pulse_position[i3] = (positions[0] << 1) + ((code >> 2) & 1); in decode_10bit_pulse()
456 int pulse_position[8]; in decode_8_pulses_31bits() local
459 decode_10bit_pulse(fixed_index[4], pulse_position, 0, 4, 1); in decode_8_pulses_31bits()
460 decode_10bit_pulse(fixed_index[5], pulse_position, 2, 6, 5); in decode_8_pulses_31bits()
465 pulse_position[3] = temp % 5; in decode_8_pulses_31bits()
466 pulse_position[7] = temp / 5; in decode_8_pulses_31bits()
467 if (pulse_position[7] & 1) in decode_8_pulses_31bits()
468 pulse_position[3] = 4 - pulse_position[3]; in decode_8_pulses_31bits()
469 pulse_position[3] = (pulse_position[3] << 1) + ( fixed_index[6] & 1); in decode_8_pulses_31bits()
470 pulse_position[7] = (pulse_position[7] << 1) + ((fixed_index[6] >> 1) & 1); in decode_8_pulses_31bits()
474 const int pos1 = (pulse_position[i] << 2) + i; in decode_8_pulses_31bits()
475 const int pos2 = (pulse_position[i + 4] << 2) + i; in decode_8_pulses_31bits()
509 int *pulse_position = fixed_sparse->x; in decode_fixed_sparse() local
515 pulse_position[0] = ( fixed_index & 7) * 5 + track_position[pulse_subset]; in decode_fixed_sparse()
516 pulse_position[1] = ((fixed_index >> 3) & 7) * 5 + track_position[pulse_subset + 1]; in decode_fixed_sparse()
520 pulse_position[0] = ((fixed_index >> 1) & 7) * 5 + pulse_subset; in decode_fixed_sparse()
522pulse_position[1] = ((fixed_index >> 6) & 7) * 5 + pulse_subset + (pulse_subset == 3 ? 1 : 0); in decode_fixed_sparse()
523 fixed_sparse->n = pulse_position[0] == pulse_position[1] ? 1 : 2; in decode_fixed_sparse()
525 pulse_position[0] = (fixed_index & 7) * 5; in decode_fixed_sparse()
527 pulse_position[1] = ((fixed_index >> 4) & 7) * 5 + pulse_subset + 1; in decode_fixed_sparse()
529 pulse_position[2] = ((fixed_index >> 8) & 7) * 5 + pulse_subset + 2; in decode_fixed_sparse()
532 pulse_position[0] = gray_decode[ fixed_index & 7]; in decode_fixed_sparse()
533 pulse_position[1] = gray_decode[(fixed_index >> 3) & 7] + 1; in decode_fixed_sparse()
534 pulse_position[2] = gray_decode[(fixed_index >> 6) & 7] + 2; in decode_fixed_sparse()
536 pulse_position[3] = gray_decode[(fixed_index >> 10) & 7] + pulse_subset + 3; in decode_fixed_sparse()