www.pudn.com > EZW_.rar > MAP.H
#ifndef __MAP_H_ #define __MAP_H_ /*---------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------*/ /* * Mow-Song, Ng 2/9/2002 * msng@mmu.edu.my * http://www.pesona.mmu.edu.my/~msng * * I do not claim copyright to the code, but if you use them or modify them, * please drop me a mail. * */ /*---------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------*/ /* A structure to keep the symbol assigned to a node in the wavelet tree. * This is useful for storing quantization index or significant link symbol */ /*---------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------*/ #include#include #include #include typedef struct MapStruct{ int hsize, vsize; int nsteps; int nSubbands; int *subbandSize; int *subbandHSize; int *subbandVSize; int *symbol; int **subbandPtr; } MAP; MAP *MapAlloc(int hsize, int vsize, int nsteps); int MapGetNodeSymbol(MAP *map, int scale, int orientation, int x, int y); void MapSetNodeSymbol(MAP *map, int scale, int orientation, int x, int y, int symbol); void MapDealloc(MAP *map); void MapError(char *fmt, ...); #endif