Definition at line 796 of file rt_statistics.c.
References quantile_llist_element::count, quantile_llist_element::next, quantile_llist_element::prev, RASTER_DEBUGF, rtalloc(), genraster::value, and quantile_llist_element::value.
Referenced by rt_band_get_quantiles_stream().
803 if (NULL == element) {
806 if (NULL == qle)
return NULL;
814 if (NULL != idx) *idx = 0;
818 if (NULL != idx) *idx += 1;
819 if (NULL != element->
next)
825 if (NULL == qle)
return NULL;
840 RASTER_DEBUGF(4,
"insert qle @ %p before current element", qle);
841 if (NULL == qle)
return NULL;
struct quantile_llist_element * prev
void * rtalloc(size_t size)
Wrappers used for managing memory.
struct quantile_llist_element * next
#define RASTER_DEBUGF(level, msg,...)
static struct quantile_llist_element * quantile_llist_insert(struct quantile_llist_element *element, double value, uint32_t *idx)