Files

50 lines
1.6 KiB
Diff
Raw Permalink Normal View History

2024-03-29 16:46:37 +08:00
From 481a136670dbbb79f9fe8cac367a4e8962268864 Mon Sep 17 00:00:00 2001
2024-03-17 16:48:20 +08:00
From: Sergey Fedorov <vital.had@gmail.com>
Date: Sun, 17 Mar 2024 16:44:27 +0800
2024-03-29 16:46:37 +08:00
Subject: [PATCH] Fix for missing _exposure_ramp etc.
2024-03-17 16:48:20 +08:00
diff --git plugins/dcp/dcp.c plugins/dcp/dcp.c
index 9fabc1e4..fef4b1bf 100644
--- plugins/dcp/dcp.c
+++ plugins/dcp/dcp.c
@@ -693,7 +693,7 @@ neutral_to_xy(RSDcp *dcp, const RS_VECTOR3 *neutral)
return last;
}
-inline void
2024-03-29 16:46:37 +08:00
+static inline void
2024-03-17 16:48:20 +08:00
RGBtoHSV(gfloat r, gfloat g, gfloat b, gfloat *h, gfloat *s, gfloat *v)
{
*v = MAX(r, MAX (g, b));
@@ -723,7 +723,7 @@ RGBtoHSV(gfloat r, gfloat g, gfloat b, gfloat *h, gfloat *s, gfloat *v)
}
}
-inline gfloat
2024-03-29 16:46:37 +08:00
+static inline gfloat
2024-03-17 16:48:20 +08:00
exposure_ramp (RSDcp *dcp, gfloat x)
{
if (x <= dcp->exposure_black - dcp->exposure_radius)
@@ -738,7 +738,7 @@ exposure_ramp (RSDcp *dcp, gfloat x)
}
-inline void
2024-03-29 16:46:37 +08:00
+static inline void
2024-03-17 16:48:20 +08:00
HSVtoRGB(gfloat h, gfloat s, gfloat v, gfloat *r, gfloat *g, gfloat *b)
{
if (s > 0.0f)
2024-03-29 16:46:37 +08:00
diff --git plugins/demosaic/demosaic.c plugins/demosaic/demosaic.c
index 9b5ffa66..46ea6eb5 100644
--- plugins/demosaic/demosaic.c
+++ plugins/demosaic/demosaic.c
@@ -416,7 +416,7 @@ expand_cfa_data(const ThreadInfo* t) {
/*
Patterned Pixel Grouping Interpolation by Alain Desbiolles
*/
-inline guint clampbits16(gint x) { guint32 _y_temp; if( (_y_temp=x>>16) ) x = ~_y_temp >> 16; return x;}
+static inline guint clampbits16(gint x) { guint32 _y_temp; if( (_y_temp=x>>16) ) x = ~_y_temp >> 16; return x;}
#define CLIP(x) clampbits16(x)
#define ULIM(x,y,z) ((y) < (z) ? CLAMP(x,y,z) : CLAMP(x,z,y))