/* Barcode.h */ #include "math.h" #include #include "tiffio.h" #define ST_UPPER_RATIO 1 #define ST_LOWER_RATIO 2 #define ST_LINE_JUMP 3 #define ST_MIN_OCCURRENCE 4 #define ST_TIF_WARNINGS 5 #define ST_MULTIPLE_READ 6 #define ST_ORIENTATION 7 #define ST_PREF_OCCURRENCE 8 #define ST_DESPECKLE 9 #define ST_NOISEREDUCTION 10 #define ST_QUIET_SIZE 11 #define ST_DEBUG 12 #define ST_PAGE_NO 13 #define ST_TIFF_SPLIT 14 #define ST_READ_BARCODE_TYPE 15 #define ST_READ_CODE39 16 #define ST_READ_EAN13 17 #define ST_READ_EAN8 18 #define ST_READ_UPCA 19 #define ST_READ_UPCE 20 #define ST_SHOW_CHECK_DIGIT 21 #define ST_CODE39_NEEDS_ASTERISKS 22 #define ST_READ_CODE128 23 #define ST_READ_CODE25 24 #define ST_CONTRAST 25 #define ST_BARCODE_ZONE 26 #define ST_READ_PATCHCODES 27 #define ST_ORIENTATION_MASK 28 #define ST_USE_OVERSAMPLING 29 #define ST_OVERSAMPLING_SEP 30 #define ST_MIN_LEN 31 #define ST_MAX_LEN 32 #define ST_TIFF_SPLIT_MODE 33 #define ST_READ_CODABAR 34 #define ST_CONVERT_UPCE_TO_UPCA 35 #define ST_SKEW_SETTING 36 #define ST_READ_CODE25_NI 37 #define ST_DUPLICATE_BARCODES 38 #define ST_MAPPING_MODE 39 #define ST_MIN_SEPARATION 40 #define ST_EXTENDED_CODE39 41 #define ST_CODE39_CHECKSUM 42 #define ST_ERROR_CORRECTION 43 #define ST_NUMERIC_BARCODE 44 #define ST_REGEX_MATCH 45 #define ST_MIN_SPACE_BAR_WIDTH 46 #define ST_ERROR_FILE_OPEN -1 #define ST_ERROR_MULTI_PLANE -2 #define ST_ERROR_BITS_PER_SAMPLE -3 #define ST_ERROR_MALLOC -4 #define ST_ERROR_COLOR_TIFF -5 #define ST_ORIENTATION_0 1 #define ST_ORIENTATION_90 2 #define ST_ORIENTATION_180 4 #define ST_ORIENTATION_270 8 void *STCreateBarCodeSession(); void STFreeBarCodeSession(void *hBarcode); int STReadBarCode(void *hBarcode, char *file, char *type, char ***bar_codes, char ***bar_codes_type) ; int STGetBarCodePos (void *hBarcode, int nBarCode, uint32 *TopLeftX, uint32 *TopLeftY, uint32 *BotRightX, uint32 *BotRightY) ; int STGetBarCodeDirection (void *hBarcode, int nBarCode) ; void STSetParameter(void *hBarcode, uint16 param, void *value) ; void STGetParameter(void *hBarcode, uint16 param, void *value) ; void _st_version(void *hBarcode) ; void _st_copyright(void *hBarcode) ;