Apply the offset component to the the pixel's values
| 189 | |
| 190 | // Apply the offset component to the the pixel's values |
| 191 | inline void ApplyOffset(float * pix, const float * offset) |
| 192 | { |
| 193 | pix[0] = pix[0] + offset[0]; |
| 194 | pix[1] = pix[1] + offset[1]; |
| 195 | pix[2] = pix[2] + offset[2]; |
| 196 | } |
| 197 | |
| 198 | // Apply the saturation component to the the pixel's values |
| 199 | inline void ApplySaturation(float * pix, const float saturation) |