Definition at line 462 of file rt_serialize.c.
References ovdump::band, rt_raster_t::bands, rt_band_t::data, rt_raster_t::height, rt_raster_t::numBands, rt_band_t::offline, rt_band_t::pixtype, RASTER_DEBUGF, rt_pixtype_size(), rterror(), rt_raster_serialized_t::size, and rt_raster_t::width.
Referenced by rt_raster_serialize().
466 assert(NULL != raster);
468 RASTER_DEBUGF(3,
"Serialized size with just header:%d - now adding size of %d bands",
471 for (i = 0; i < raster->
numBands; ++i) {
477 rterror(
"rt_raster_serialized_size: Corrupted band: unknown pixtype");
506 size += 8 - (size % 8);
void rterror(const char *fmt,...)
Wrappers used for reporting errors and info.
#define RASTER_DEBUGF(level, msg,...)
int rt_pixtype_size(rt_pixtype pixtype)
Return size in bytes of a value in the given pixtype.