Lines Matching refs:data
224 unsigned FLAC__fixed_compute_best_predictor(const FLAC__int32 data[], unsigned data_len, FLAC__float residual_bits_per_sample[FLAC__MAX_FIXED_ORDER+1])
226 unsigned FLAC__fixed_compute_best_predictor(const FLAC__int32 data[], unsigned data_len, FLAC__fixedpoint residual_bits_per_sample[FLAC__MAX_FIXED_ORDER+1])
229 FLAC__int32 last_error_0 = data[-1];
230 FLAC__int32 last_error_1 = data[-1] - data[-2];
231 FLAC__int32 last_error_2 = last_error_1 - (data[-2] - data[-3]);
232 FLAC__int32 last_error_3 = last_error_2 - (data[-2] - 2*data[-3] + data[-4]);
238 error = data[i] ; total_error_0 += local_abs(error); save = error;
282 unsigned FLAC__fixed_compute_best_predictor_wide(const FLAC__int32 data[], unsigned data_len, FLAC__float residual_bits_per_sample[FLAC__MAX_FIXED_ORDER+1])
284 unsigned FLAC__fixed_compute_best_predictor_wide(const FLAC__int32 data[], unsigned data_len, FLAC__fixedpoint residual_bits_per_sample[FLAC__MAX_FIXED_ORDER+1])
287 FLAC__int32 last_error_0 = data[-1];
288 FLAC__int32 last_error_1 = data[-1] - data[-2];
289 FLAC__int32 last_error_2 = last_error_1 - (data[-2] - data[-3]);
290 FLAC__int32 last_error_3 = last_error_2 - (data[-2] - 2*data[-3] + data[-4]);
300 error = data[i] ; total_error_0 += local_abs(error); save = error;
352 void FLAC__fixed_compute_residual(const FLAC__int32 data[], unsigned data_len, unsigned order, FLAC__int32 residual[])
359 FLAC__ASSERT(sizeof(residual[0]) == sizeof(data[0]));
360 memcpy(residual, data, sizeof(residual[0])*data_len);
364 residual[i] = data[i] - data[i-1];
369 residual[i] = data[i] - (data[i-1] << 1) + data[i-2];
371 residual[i] = data[i] - 2*data[i-1] + data[i-2];
377 residual[i] = data[i] - (((data[i-1]-data[i-2])<<1) + (data[i-1]-data[i-2])) - data[i-3];
379 residual[i] = data[i] - 3*data[i-1] + 3*data[i-2] - data[i-3];
385 residual[i] = data[i] - ((data[i-1]+data[i-3])<<2) + ((data[i-2]<<2) + (data[i-2]<<1)) + data[i-4];
387 residual[i] = data[i] - 4*data[i-1] + 6*data[i-2] - 4*data[i-3] + data[i-4];
395 void FLAC__fixed_restore_signal(const FLAC__int32 residual[], unsigned data_len, unsigned order, FLAC__int32 data[])
401 FLAC__ASSERT(sizeof(residual[0]) == sizeof(data[0]));
402 memcpy(data, residual, sizeof(residual[0])*data_len);
406 data[i] = residual[i] + data[i-1];
411 data[i] = residual[i] + (data[i-1]<<1) - data[i-2];
413 data[i] = residual[i] + 2*data[i-1] - data[i-2];
419 data[i] = residual[i] + (((data[i-1]-data[i-2])<<1) + (data[i-1]-data[i-2])) + data[i-3];
421 data[i] = residual[i] + 3*data[i-1] - 3*data[i-2] + data[i-3];
427 data[i] = residual[i] + ((data[i-1]+data[i-3])<<2) - ((data[i-2]<<2) + (data[i-2]<<1)) - data[i-4];
429 data[i] = residual[i] + 4*data[i-1] - 6*data[i-2] + 4*data[i-3] - data[i-4];