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

◆ rt_util_clamp_to_4BUI()

uint8_t rt_util_clamp_to_4BUI ( double  value)

Definition at line 45 of file rt_util.c.

45 {
46 return (uint8_t)fmin(fmax((value), 0), POSTGIS_RT_4BUIMAX);
47}
#define POSTGIS_RT_4BUIMAX
Definition librtcore.h:2251

References POSTGIS_RT_4BUIMAX.

Referenced by rt_band_corrected_clamped_value(), rt_band_init_value(), rt_band_set_nodata(), rt_band_set_pixel(), rt_pixtype_compare_clamped_values(), and test_pixtype_get_min_value().

Here is the caller graph for this function: