Searched refs:ROUND (Results 1 – 2 of 2) sorted by relevance
34 #define ROUND(x) (uint16) ((x) + 0.5) macro75 red[i] = ROUND((pow(i / 255.0, 1.0 / image_gamma) * 65535.0)); in main()76 green[i] = ROUND((pow(i / 255.0, 1.0 / image_gamma) * 65535.0)); in main()77 blue[i] = ROUND((pow(i / 255.0, 1.0 / image_gamma) * 65535.0)); in main()
75 #define ROUND(x) (uint16) ((x) + 0.5) macro556 redMap[i] = ROUND((pow(dRed[i] / 65535.0, i_gamma) * 65535.0)); in SimpleGammaCorrection()557 greenMap[i] = ROUND((pow(dGreen[i] / 65535.0, i_gamma) * 65535.0)); in SimpleGammaCorrection()558 blueMap[i] = ROUND((pow(dBlue[i] / 65535.0, i_gamma) * 65535.0)); in SimpleGammaCorrection()