Home
last modified time | relevance | path

Searched refs:fixed_sparse (Results 1 – 4 of 4) sorted by relevance

/third_party/ffmpeg/libavcodec/
Dsipr.c308 static void decode_fixed_sparse(AMRFixed *fixed_sparse, const int16_t *pulses, in decode_fixed_sparse() argument
316 fixed_sparse->x[i] = 3 * (pulses[i] & 0xf) + i; in decode_fixed_sparse()
317 fixed_sparse->y[i] = pulses[i] & 0x10 ? -1 : 1; in decode_fixed_sparse()
319 fixed_sparse->n = 3; in decode_fixed_sparse()
323 fixed_sparse->x[2*i ] = 3 * ((pulses[i] >> 4) & 0xf) + i; in decode_fixed_sparse()
324 fixed_sparse->x[2*i + 1] = 3 * ( pulses[i] & 0xf) + i; in decode_fixed_sparse()
326 fixed_sparse->y[2*i ] = (pulses[i] & 0x100) ? -1.0: 1.0; in decode_fixed_sparse()
328 fixed_sparse->y[2*i + 1] = in decode_fixed_sparse()
329 (fixed_sparse->x[2*i + 1] < fixed_sparse->x[2*i]) ? in decode_fixed_sparse()
330 -fixed_sparse->y[2*i ] : fixed_sparse->y[2*i]; in decode_fixed_sparse()
[all …]
Damrnbdec.c454 AMRFixed *fixed_sparse) in decode_8_pulses_31bits() argument
472 fixed_sparse->n = 8; in decode_8_pulses_31bits()
477 fixed_sparse->x[i ] = pos1; in decode_8_pulses_31bits()
478 fixed_sparse->x[i + 4] = pos2; in decode_8_pulses_31bits()
479 fixed_sparse->y[i ] = sign; in decode_8_pulses_31bits()
480 fixed_sparse->y[i + 4] = pos2 < pos1 ? -sign : sign; in decode_8_pulses_31bits()
499 static void decode_fixed_sparse(AMRFixed *fixed_sparse, const uint16_t *pulses, in decode_fixed_sparse() argument
505 ff_decode_10_pulses_35bits(pulses, fixed_sparse, gray_decode, 5, 3); in decode_fixed_sparse()
507 decode_8_pulses_31bits(pulses, fixed_sparse); in decode_fixed_sparse()
509 int *pulse_position = fixed_sparse->x; in decode_fixed_sparse()
[all …]
Dacelp_vectors.c153 AMRFixed *fixed_sparse, in ff_decode_10_pulses_35bits() argument
160 fixed_sparse->no_repeat_mask = 0; in ff_decode_10_pulses_35bits()
161 fixed_sparse->n = 2 * half_pulse_count; in ff_decode_10_pulses_35bits()
166 fixed_sparse->x[2*i+1] = pos1; in ff_decode_10_pulses_35bits()
167 fixed_sparse->x[2*i ] = pos2; in ff_decode_10_pulses_35bits()
168 fixed_sparse->y[2*i+1] = sign; in ff_decode_10_pulses_35bits()
169 fixed_sparse->y[2*i ] = pos2 < pos1 ? -sign : sign; in ff_decode_10_pulses_35bits()
Dacelp_vectors.h194 AMRFixed *fixed_sparse,