PostGIS 3.0.6dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ rt_util_clamp_to_1BB()

uint8_t rt_util_clamp_to_1BB ( double  value)

Definition at line 34 of file rt_util.c.

34 {
35 return (uint8_t)fmin(fmax((value), 0), POSTGIS_RT_1BBMAX);
36}
#define POSTGIS_RT_1BBMAX
Definition librtcore.h:2060

References POSTGIS_RT_1BBMAX.

Referenced by rt_band_reclass(), rt_band_set_nodata(), rt_band_set_pixel(), rt_pixtype_compare_clamped_values(), rt_pixtype_get_min_value(), rt_raster_generate_new_band(), and test_pixtype_get_min_value().

Here is the caller graph for this function: