1063 CU_ASSERT(data != NULL);
1072 CU_ASSERT(band != NULL);
1077 CU_ASSERT_EQUAL(err,
ES_NONE);
1078 CU_ASSERT(!clamped);
1080 CU_ASSERT_DOUBLE_EQUAL(val, 1, DBL_EPSILON);
1083 CU_ASSERT_EQUAL(err,
ES_NONE);
1084 CU_ASSERT(!clamped);
1086 CU_ASSERT_DOUBLE_EQUAL(val, 0, DBL_EPSILON);
1089 CU_ASSERT_EQUAL(err,
ES_NONE);
1090 CU_ASSERT(!clamped);
1092 CU_ASSERT_DOUBLE_EQUAL(val, 65535.5, DBL_EPSILON);
1095 CU_ASSERT_EQUAL(err,
ES_NONE);
1096 CU_ASSERT(!clamped);
1098 CU_ASSERT_DOUBLE_EQUAL(val, 0.0060000000521540, DBL_EPSILON);
1103 CU_ASSERT_EQUAL(err,
ES_NONE);
1105 CU_ASSERT_EQUAL(err,
ES_NONE);
1106 CU_ASSERT_DOUBLE_EQUAL(val, 1, DBL_EPSILON);
1109 CU_ASSERT_EQUAL(err,
ES_NONE);
1111 CU_ASSERT_EQUAL(err,
ES_NONE);
1112 CU_ASSERT_DOUBLE_EQUAL(val, 0, DBL_EPSILON);
1115 CU_ASSERT_EQUAL(err,
ES_NONE);
1117 CU_ASSERT_EQUAL(err,
ES_NONE);
1118 CU_ASSERT_DOUBLE_EQUAL(val, 65535.5, DBL_EPSILON);
1121 CU_ASSERT_EQUAL(err,
ES_NONE);
1123 CU_ASSERT_EQUAL(err,
ES_NONE);
1124 CU_ASSERT_DOUBLE_EQUAL(val, 0.0060000000521540, DBL_EPSILON);
void * rtalloc(size_t size)
Wrappers used for managing memory.
rt_errorstate rt_band_set_nodata(rt_band band, double val, int *converted)
Set nodata value.
void rt_band_destroy(rt_band band)
Destroy a raster band.
rt_errorstate rt_band_get_nodata(rt_band band, double *nodata)
Get NODATA value.
void rt_band_set_ownsdata_flag(rt_band band, int flag)
int rt_band_get_ownsdata_flag(rt_band band)
Return 0 (FALSE) or non-zero (TRUE) indicating if rt_band is responsible for managing the memory for ...
rt_errorstate rt_band_get_pixel(rt_band band, int x, int y, double *value, int *nodata)
Get pixel value.
uint16_t rt_band_get_width(rt_band band)
Return width of this band.
uint16_t rt_band_get_height(rt_band band)
Return height of this band.
rt_band rt_band_new_inline(uint16_t width, uint16_t height, rt_pixtype pixtype, uint32_t hasnodata, double nodataval, uint8_t *data)
Create an in-db rt_band with no data.
int rt_pixtype_size(rt_pixtype pixtype)
Return size in bytes of a value in the given pixtype.
rt_errorstate rt_band_set_pixel(rt_band band, int x, int y, double val, int *converted)
Set single pixel's value.