Gerald Pfeifer : windowscodecs: Move from_sRGB_component into the same section as its sole sole user.
Module: wine Branch: master Commit: ae5a1f44fc353ae04d1c10292a0cae02fb8908ab URL: https://source.winehq.org/git/wine.git/?a=commit;h=ae5a1f44fc353ae04d1c10292... Author: Gerald Pfeifer <gerald(a)pfeifer.com> Date: Mon Jul 22 22:10:50 2019 +0200 windowscodecs: Move from_sRGB_component into the same section as its sole sole user. Signed-off-by: Vincent Povirk <vincent(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/windowscodecs/converter.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/dlls/windowscodecs/converter.c b/dlls/windowscodecs/converter.c index 0d7a3b7..dcc2f05 100644 --- a/dlls/windowscodecs/converter.c +++ b/dlls/windowscodecs/converter.c @@ -85,12 +85,6 @@ typedef struct FormatConverter { } FormatConverter; /* https://www.w3.org/Graphics/Color/srgb */ -static inline float from_sRGB_component(float f) -{ - if (f <= 0.04045f) return f / 12.92f; - return powf((f + 0.055f) / 1.055f, 2.4f); -} - static inline float to_sRGB_component(float f) { if (f <= 0.0031308f) return 12.92f * f; @@ -98,6 +92,12 @@ static inline float to_sRGB_component(float f) } #if 0 /* FIXME: enable once needed */ +static inline float from_sRGB_component(float f) +{ + if (f <= 0.04045f) return f / 12.92f; + return powf((f + 0.055f) / 1.055f, 2.4f); +} + static void from_sRGB(BYTE *bgr) { float r, g, b;
participants (1)
-
Alexandre Julliard