| 48 | } |
| 49 | |
| 50 | void gammaCorrection(double gamma, StructRgb & eRgb) |
| 51 | { |
| 52 | eRgb.r = 4095 * pow(eRgb.r / 4095.0, gamma); |
| 53 | eRgb.g = 4095 * pow(eRgb.g / 4095.0, gamma); |
| 54 | eRgb.b = 4095 * pow(eRgb.b / 4095.0, gamma); |
| 55 | } |
| 56 | |
| 57 | void brightnessCorrection(unsigned int brightness, StructRgb & eRgb) { |
| 58 |
no outgoing calls
no test coverage detected