| 321 | } |
| 322 | |
| 323 | bool SoundCaptureResult::hasMiddleFast(int middle) |
| 324 | { |
| 325 | if (mtWorking._targetFastCounter <= 0) |
| 326 | { |
| 327 | return false; |
| 328 | } |
| 329 | |
| 330 | int red = Limit(mtWorking._targetFastR / 2 + mtWorking._fastColor.Red(), 255); |
| 331 | int green = Limit(mtWorking._targetFastG / 2 + mtWorking._fastColor.Green(), 255); |
| 332 | int blue = Limit(mtWorking._targetFastB / 2 + mtWorking._fastColor.Blue(), 255); |
| 333 | |
| 334 | mtWorking._fastColor = ColorRgb(red, green, blue); |
| 335 | |
| 336 | if (middle == 0) |
| 337 | mtWorking._targetFastCounter--; |
| 338 | |
| 339 | return true; |
| 340 | } |
| 341 | |
| 342 | |
| 343 | void SoundCaptureResult::RestoreFullLum(ColorRgb& color, int scale) |