/************************************************************************** ** Licensed under the Apache License, Version 2.0 (the "License"); ** you may not use this file except in compliance with the License. ** You may obtain a copy of the License at ** http://www.apache.org/licenses/LICENSE-2.0 ** Unless required by applicable law or agreed to in writing, software ** distributed under the License is distributed on an "AS IS" BASIS, ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ** See the License for the specific language governing permissions and ** limitations under the License. **************************************************************************/ #ifndef CONST_H #define CONST_H /*This file contains constants which are global to the entire system*/ #define PATHSIZE 8192 /*max elements in edge path */ #define OUTLINESIZE 256 /*max elements in aprroximated path */ #define BLOBSIZE 10000 /*max no of blobs on a page */ #if 0 #define FIRSTCHAR '!' /*first char in set */ #define LASTCHAR '~' /*last char in set */ #define CHARSETSIZE (LASTCHAR-FIRSTCHAR+1) no of chars in set #define MERGESIZE 10 /*max chars in a class */ #define MAXCHARSIZE 159 /*max size of any char */ #define CLASSIZE 256 /*max no of classes */ #define SPLITSIZE 4 /*no of to_classes per class */ #define BADCLASS 255 /*null class */ #define BADMATCH 255 /*no match */ #define CLASSLENGTH 16 /*max chars in a class string */ #endif #define VECSCALE 3 /*vector scaling factor in fx */ #define REALSCALE ((double)(1<