Definition at line 97 of file rtpg_utility.c.
98{
99 text *pixeltypetext = NULL;
100 char *pixeltypechar = NULL;
102 double pixsize = 0;
103
104 if (PG_ARGISNULL(0))
105 PG_RETURN_NULL();
106
107 pixeltypetext = PG_GETARG_TEXT_P(0);
108 pixeltypechar = text_to_cstring(pixeltypetext);
109
112 elog(ERROR, "RASTER_minPossibleValue: Invalid pixel type: %s", pixeltypechar);
113 PG_RETURN_NULL();
114 }
115
117
118
119
120
121
122
123 switch (pixtype) {
130 pixsize = 0;
131 break;
132 default:
133 break;
134 }
135
136 PG_RETURN_FLOAT8(pixsize);
137}
rt_pixtype rt_pixtype_index_from_name(const char *pixname)
double rt_pixtype_get_min_value(rt_pixtype pixtype)
Return minimum value possible for pixel type.
References PT_16BUI, PT_1BB, PT_2BUI, PT_32BUI, PT_4BUI, PT_8BUI, PT_END, rt_pixtype_get_min_value(), and rt_pixtype_index_from_name().