Lines Matching refs:residual
336 …mpute_residual(const FLAC__int32 data[], unsigned data_len, unsigned order, FLAC__int32 residual[]) in FLAC__fixed_compute_residual() argument
343 FLAC__ASSERT(sizeof(residual[0]) == sizeof(data[0])); in FLAC__fixed_compute_residual()
344 memcpy(residual, data, sizeof(residual[0])*data_len); in FLAC__fixed_compute_residual()
348 residual[i] = data[i] - data[i-1]; in FLAC__fixed_compute_residual()
352 residual[i] = data[i] - 2*data[i-1] + data[i-2]; in FLAC__fixed_compute_residual()
356 residual[i] = data[i] - 3*data[i-1] + 3*data[i-2] - data[i-3]; in FLAC__fixed_compute_residual()
360 residual[i] = data[i] - 4*data[i-1] + 6*data[i-2] - 4*data[i-3] + data[i-4]; in FLAC__fixed_compute_residual()
367 void FLAC__fixed_restore_signal(const FLAC__int32 residual[], unsigned data_len, unsigned order, FL… in FLAC__fixed_restore_signal() argument
373 FLAC__ASSERT(sizeof(residual[0]) == sizeof(data[0])); in FLAC__fixed_restore_signal()
374 memcpy(data, residual, sizeof(residual[0])*data_len); in FLAC__fixed_restore_signal()
378 data[i] = residual[i] + data[i-1]; in FLAC__fixed_restore_signal()
382 data[i] = residual[i] + 2*data[i-1] - data[i-2]; in FLAC__fixed_restore_signal()
386 data[i] = residual[i] + 3*data[i-1] - 3*data[i-2] + data[i-3]; in FLAC__fixed_restore_signal()
390 data[i] = residual[i] + 4*data[i-1] - 6*data[i-2] + 4*data[i-3] - data[i-4]; in FLAC__fixed_restore_signal()