Lines Matching refs:channel
33 for (int channel = 0; channel < fChannels; channel++)
34 fCurrentLevels[channel] = 0;
120 for (int32 channel = 0; channel < 2; channel++) {
121 int32 level = fCurrentLevels[channel];
123 if (levels[i][channel].red >= 90) {
124 SHIFT_UNTIL(levels[i][channel].red, 15, low_color.red);
125 SHIFT_UNTIL(levels[i][channel].blue, 15, low_color.blue);
127 SHIFT_UNTIL(levels[i][channel].red, 7, low_color.red);
128 SHIFT_UNTIL(levels[i][channel].blue, 7, low_color.blue);
129 SHIFT_UNTIL(levels[i][channel].green, 14, low_color.green);
133 levels[level][channel] = high_color;
136 if (levels[i][channel].red >= 85) {
137 SHIFT_UNTIL(levels[i][channel].red, 15, back_color.red);
138 SHIFT_UNTIL(levels[i][channel].blue, 15, back_color.blue);
140 SHIFT_UNTIL(levels[i][channel].red, 7, back_color.red);
141 SHIFT_UNTIL(levels[i][channel].blue, 7, back_color.blue);
142 SHIFT_UNTIL(levels[i][channel].green, 14,
179 int32 channel)
188 for (uint32 i = channel; i < size/sizeof(T); i += fChannels) {
204 for (int32 channel = 0; channel < fChannels; channel++) {
209 channel);
210 fCurrentLevels[channel] = (uint8)(max * 127);
216 channel);
217 fCurrentLevels[channel] = max / (2 << (32-7));
223 channel);
224 fCurrentLevels[channel] = max / (2 << (16-7));
230 channel);
231 fCurrentLevels[channel] = max / 2 - 127;
237 channel);
238 fCurrentLevels[channel] = max / 2;
242 if (fCurrentLevels[channel] < 0)
243 fCurrentLevels[channel] = 0;