From 28e76bbb931d2747fdb1ef6b47cc313a34899951 Mon Sep 17 00:00:00 2001 From: Troy Sobotka Date: Tue, 10 Feb 2015 21:33:00 +0100 Subject: Remove legacy color transform functions. Differential Revision: https://developer.blender.org/D1095 --- source/blender/blenlib/intern/math_color.c | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'source/blender/blenlib/intern/math_color.c') diff --git a/source/blender/blenlib/intern/math_color.c b/source/blender/blenlib/intern/math_color.c index 3ed7230b1d2..e149fdb2d26 100644 --- a/source/blender/blenlib/intern/math_color.c +++ b/source/blender/blenlib/intern/math_color.c @@ -429,27 +429,6 @@ void rgba_float_to_uchar(unsigned char r_col[4], const float col_f[4]) /* ********************************* color transforms ********************************* */ -void gamma_correct(float *c, float gamma) -{ - *c = powf((*c), gamma); -} - -float rec709_to_linearrgb(float c) -{ - if (c < 0.081f) - return (c < 0.0f) ? 0.0f : c * (1.0f / 4.5f); - else - return powf((c + 0.099f) * (1.0f / 1.099f), (1.0f / 0.45f)); -} - -float linearrgb_to_rec709(float c) -{ - if (c < 0.018f) - return (c < 0.0f) ? 0.0f : c * 4.5f; - else - return 1.099f * powf(c, 0.45f) - 0.099f; -} - float srgb_to_linearrgb(float c) { if (c < 0.04045f) -- cgit v1.2.3