25 #define BLOCK_CACHE_MAX 2 33 #define MTKT_BLOCK_INIT { MTK_FALSE, MTKT_DATABUFFER_INIT } 46 #define MTKT_CACHE_INIT { FAIL, 0, NULL, NULL, 0, MTKT_DATABUFFER_INIT, {MTKT_BLOCK_INIT} } 50 const char *fieldname,
55 const char *fieldname,
2-dimensional Data Buffer
MTKt_status MtkCacheInitNcid(int ncid, const char *gridname, const char *fieldname, MTKt_Cache *cache)
MTKt_status MtkCachePixelGet(MTKt_Cache *cache, int block, float line, float sample, void *pixel)
Get pixel from cache.
void MtkCacheFree(MTKt_Cache *cache)
Free Cache.
MTKt_status MtkCacheLoad(MTKt_Cache *cache, int block)
Load Cache.
MTKt_status MtkCacheInitFid(int32 fid, const char *gridname, const char *fieldname, MTKt_Cache *cache)
Initialize Cache.