Lines Matching refs:diff
120 static void CalcBands(UCHAR *diff, UCHAR start, UCHAR stop, UCHAR num_bands);
121 static SBR_ERROR modifyBands(UCHAR max_band, UCHAR *diff, UCHAR length);
122 static void cumSum(UCHAR start_value, UCHAR *diff, UCHAR length,
442 /* Adjust diff vector to get sepc. SBR range */
575 static void CalcBands(UCHAR *diff, /*!< Vector of widths to be calculated */
603 diff[i] = previous - current;
611 static void cumSum(UCHAR start_value, UCHAR *diff, UCHAR length,
616 start_adress[i] = start_adress[i - 1] + diff[i - 1];
626 static SBR_ERROR modifyBands(UCHAR max_band_previous, UCHAR *diff,
628 int change = max_band_previous - diff[0];
632 if (change > (diff[length - 1] - diff[0]) >> 1)
633 change = (diff[length - 1] - diff[0]) >> 1;
635 diff[0] += change;
636 diff[length - 1] -= change;
637 shellsort(diff, length);