[gegl] OpenCL doesn't have static functions.
- From: Victor Matheus de Araujo Oliveira <vmaolive src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] OpenCL doesn't have static functions.
- Date: Sun, 3 Nov 2013 00:06:30 +0000 (UTC)
commit 7144d47bed8e35f303a0842b5c064166cd80f716
Author: Victor Oliveira <victormatheus gmail com>
Date: Sat Nov 2 17:05:14 2013 -0700
OpenCL doesn't have static functions.
opencl/colors.cl | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/opencl/colors.cl b/opencl/colors.cl
index 3ff0820..4c4edff 100644
--- a/opencl/colors.cl
+++ b/opencl/colors.cl
@@ -30,14 +30,14 @@
#define BABL_ALPHA_THRESHOLD 0.0f
/* babl reference file: babl/base/util.h */
-static float linear_to_gamma_2_2 (float value)
+float linear_to_gamma_2_2 (float value)
{
if (value > 0.003130804954f)
return 1.055f * native_powr (value, (1.0f/2.4f)) - 0.055f;
return 12.92f * value;
}
-static float gamma_2_2_to_linear (float value)
+float gamma_2_2_to_linear (float value)
{
if (value > 0.04045f)
return native_powr ((value + 0.055f) / 1.055f, 2.4f);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]