Sophie

Sophie

distrib > Mandriva > cooker > i586 > by-pkgid > 6b6ded385f9bf6dc0ea0172655915721 > files > 11

clens-debug-0.2-7mdv2011.0.i586.rpm


#define VERSION "clens 0.2"
#define JPEG 0
#define TIFF 1

// define the database structures
typedef struct grp{
	struct grp *nextGrp;
	char name[256];
}GrpNode;

typedef struct cam{
	struct cam *nextCam;
	struct cam *firstModel;
	long numMake;
	long numModel;
	GrpNode *group;
    char menuMake[256];
    char menuModel[256];
    char exifMake[256];
    char exifModel[256];
    float multiplier;
}CamNode;

typedef struct lens{
	struct lens *nextLns;
	struct lens *firstLns;
	long numLens;
	char group[256];
	char menuLens[256];
	float converterFactor;
	long converterDetected;
	long coefLB;
	long coefUB;
	float multiplier;
}LnsNode;


// define other structures
typedef struct
{
    float f;
    float a;
    float b;
    float c;
}CoefType;

typedef struct {
	char inputDir[256];
	char stitcher[256];
	char viewerPath[256];
	char *profilePath;
	char suffix[32];
	char menuMake[256];
	char menuModel[256];
	char menuLens[256];
	int format;
	int jpegQuality;
	int interpolation;
	int beep;
	int resize;
	int converterDetected;
}prefType;

// prototypes for modDB
long readDataBase();
CamNode *findCamera(char *make, char *model);
LnsNode *findLens(char *lens, CamNode *camera);
LnsNode *findLenses(CamNode *camera);

// prototypes for modPT
int prepareScript(char *inFile);