70 dbuf.
vdata = (
void ***)calloc(dbuf.
nblock,
sizeof(
void **));
71 if (dbuf.
vdata == NULL)
76 if (dbuf.
vdata[0] == NULL)
80 for (i = 1; i < nblock; i++) {
81 dbuf.
vdata[i] = (
void *)((
unsigned char *)(dbuf.
vdata[i-1]) +
82 dbuf.
nline *
sizeof(
void *));
90 if (dbuf.
vdata[0][0] == NULL)
94 for (i = 1; i < nblock; i++) {
95 dbuf.
vdata[i][0] = (
void *)((
unsigned char *)(dbuf.
vdata[i-1][0]) +
100 for (i = 0; i < nblock; i++) {
101 for (j = 1; j < nline; j++) {
102 dbuf.
vdata[i][j] = (
void *)((
unsigned char *)(dbuf.
vdata[i][j-1]) +
HDFFCLIBAPI _fcd _fcd intf intf * datatype
#define MTK_ERR_CODE_JUMP(code)
MTKt_status MtkDataBufferAllocate3D(int nblock, int nline, int nsample, MTKt_DataType datatype, MTKt_DataBuffer3D *databuf)
Allocate 3-dimensional Data Buffer (a buffer stack)
3-dimensional Data Buffer
MTKt_DataBufferType3D data
#define MTKT_DATABUFFER3D_INIT