// The following ifdef block is the standard way of creating macros which make exporting // from a DLL simpler. All files within this DLL are compiled with the SHOTTRACKER_EXPORTS // symbol defined on the command line. this symbol should not be defined on any project // that uses this DLL. This way any other project whose source files include this file see // SHOTTRACKER_API functions as being imported from a DLL, whereas this DLL sees symbols // defined with this macro as being exported. #ifndef ___SHOTTRACKER_H___ #define ___SHOTTRACKER_H___ #include "CCMath.h" #include "CCMap.h" //#define SHOTTRACKER_DLL_MODE #ifdef SHOTTRACKER_DLL_MODE #ifdef SHOTTRACKER_EXPORTS #define SHOTTRACKER_API __declspec(dllexport) #else #define SHOTTRACKER_API __declspec(dllimport) #endif #else #define SHOTTRACKER_API #endif #define MAX_DETECTED_SHOT 200 #define CURRENT_TAG_VERION 29 #define SMALL_RADIUS 0.20f #define CMIN (SMALL_RADIUS + ((1.0f - SMALL_RADIUS) * 0.35f) ) #define CMAX (SMALL_RADIUS + ((1.0f - SMALL_RADIUS) * 0.65f) ) #define CODERADIUSCOEF (0.5f * (CMIN + CMAX)) /* Shot Code */ #define RAW_CODEBITNUM 4 #define ANCHOR_WSIZE (4) #define ANCHOR_BSIZE (2) #define ANCHOR_SIZE (ANCHOR_BSIZE * 2 + ANCHOR_WSIZE) #define RAW_CODELENGHT (RAW_CODEBITNUM * 2 + (RAW_CODEBITNUM) + ANCHOR_SIZE) #define RAW_CODESAMPLEL_Po2 (3) #define RAW_CODESAMPLEL (RAW_CODELENGHT<THIS_IS_USED) { if (MS->MapCal) free(MS->MapCal); free(MS); MS = NULL; return; } MS->SHOTS_FOCALE = Focale; MS->THIS_IS_USED--; MS->MainCall(pSrc); } // ----------------------------------------------*/ #endif