PostGIS  2.1.10dev-r@@SVN_REVISION@@
uint8_t rt_util_clamp_to_2BUI ( double  value)

Definition at line 94 of file rt_api.c.

References POSTGIS_RT_2BUIMAX.

Referenced by rt_band_corrected_clamped_value(), 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().

94  {
95  return (uint8_t)fmin(fmax((value), 0), POSTGIS_RT_2BUIMAX);
96 }
#define POSTGIS_RT_2BUIMAX
Definition: rt_api.h:1987

Here is the caller graph for this function: