Lines Matching refs:channel
34 for (int channel = 0; channel < fChannels; channel++)
35 fCurrentLevels[channel] = 0;
123 for (int32 channel = 0; channel < 2; channel++) {
124 int32 level = fCurrentLevels[channel];
126 if (levels[i][channel].red >= 90) {
127 SHIFT_UNTIL(levels[i][channel].red, 15, low_color.red);
128 SHIFT_UNTIL(levels[i][channel].blue, 15, low_color.blue);
130 SHIFT_UNTIL(levels[i][channel].red, 7, low_color.red);
131 SHIFT_UNTIL(levels[i][channel].blue, 7, low_color.blue);
132 SHIFT_UNTIL(levels[i][channel].green, 14, low_color.green);
136 levels[level][channel] = high_color;
139 if (levels[i][channel].red >= 85) {
140 SHIFT_UNTIL(levels[i][channel].red, 15, back_color.red);
141 SHIFT_UNTIL(levels[i][channel].blue, 15, back_color.blue);
143 SHIFT_UNTIL(levels[i][channel].red, 7, back_color.red);
144 SHIFT_UNTIL(levels[i][channel].blue, 7, back_color.blue);
145 SHIFT_UNTIL(levels[i][channel].green, 14,
182 int32 channel)
191 for (uint32 i = channel; i < size/sizeof(T); i += fChannels) {
207 for (int32 channel = 0; channel < fChannels; channel++) {
212 channel);
213 fCurrentLevels[channel] = (uint8)(max * 127);
219 channel);
220 fCurrentLevels[channel] = max / (2 << (32-7));
226 channel);
227 fCurrentLevels[channel] = max / (2 << (16-7));
233 channel);
234 fCurrentLevels[channel] = max / 2 - 127;
240 channel);
241 fCurrentLevels[channel] = max / 2;
245 if (fCurrentLevels[channel] < 0)
246 fCurrentLevels[channel] = 0;