463 {
465 uint16_t i = 0;
466
467 assert(NULL != raster);
468
469 RASTER_DEBUGF(3,
"Serialized size with just header:%d - now adding size of %d bands",
471
472 for (i = 0; i <
raster->numBands; ++i) {
476
477 if (pixbytes < 1) {
478 rterror(
"rt_raster_serialized_size: Corrupted band: unknown pixtype");
479 return 0;
480 }
481
482
484
485
487
489
491
492
493 size += strlen(
band->data.offline.path) + 1;
494 }
495 else {
496
498 }
499
501
502
503
504
505
508
510 }
511
513}
void rterror(const char *fmt,...) __attribute__((format(printf
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.
raster
Be careful!! Zeros function's input parameter can be a (height x width) array, not (width x height): ...