462 {
464 uint16_t i = 0;
465
466 assert(NULL != raster);
467
468 RASTER_DEBUGF(3,
"Serialized size with just header:%d - now adding size of %d bands",
470
471 for (i = 0; i <
raster->numBands; ++i) {
475
476 if (pixbytes < 1) {
477 rterror(
"rt_raster_serialized_size: Corrupted band: unknown pixtype");
478 return 0;
479 }
480
481
483
484
486
488
490
491
492 size += strlen(
band->data.offline.path) + 1;
493 }
494 else {
495
497 }
498
500
501
502
503
504
507
509 }
510
512}
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): ...