Diff of /panTools.h [000000] .. [68cdf8]  Maximize  Restore

Switch to side-by-side view

--- a
+++ b/panTools.h
@@ -0,0 +1,92 @@
+#ifndef PANTOOLS_H
+#define PANTOOLS_H
+
+// PTLens, Copyright (C) 2004, Thomas Niemann
+// email: thomasn@epaperpress.com, subject=ptlens
+// 
+// This program is free software; you can redistribute 
+// it and/or modify it under the terms of the GNU
+// General Public License as published by the Free 
+// Software Foundation; either version 2 of the 
+// License, or (at your option) any later version. 
+//
+// This program is distributed in the hope that it will 
+// be useful, but WITHOUT ANY WARRANTY; without even 
+// the implied warranty of MERCHANTABILITY or FITNESS 
+// FOR A PARTICULAR PURPOSE. See the GNU General Public 
+// License for more details. 
+// 
+// You should have received a copy of the GNU General 
+// Public License along with this program; if not, 
+// write to the Free Software Foundation, Inc., 675 
+// Mass Ave, Cambridge, MA 02139, USA.
+
+#include "Panorama.h"
+#include "Filter.h"
+
+// photoshop image parameters
+typedef struct {
+    int imageWidth;
+	int imageHeight;
+	int imageDepth;
+	int imageChannelSize;
+	int imageSize;
+} PhoData;
+
+typedef struct {
+	Image image1;
+	Image image2;
+	panoPrefs prefs;
+	sPrefs sprefs;
+	TrformStr tr;
+	bool initPrefs;
+} PanData;
+
+
+typedef void (*ConvFileName_proc)(fullPath *fname,char *string);
+typedef void (*CopyImageData_proc)(Image *dest, Image *src);
+typedef void (*FourToThreeBPP_proc)(Image *im);
+typedef void (*PrintError_proc)(char* fmt, ...); 
+typedef void (*SetAdjustDefaults_proc)(aPrefs *p);
+typedef void (*SetImageDefaults_proc)(Image *im);
+typedef void (*SetWindowOwner_proc)(HWND owner);
+typedef int (*addLayerToFile_proc)(Image *im, fullPath* sfile, fullPath* dfile, stBuf *sB);
+typedef void (*filter_main_proc)(TrformStr *TrPtr, struct size_Prefs *spref);
+typedef void (*myfree_proc)(void **hdl);
+typedef void** (*mymalloc_proc)(long numBytes);
+typedef int (*readPrefs_proc)(char* p, int selector ); 
+typedef int (*writePSD_proc)(Image *im, fullPath* fname);
+typedef int (*writePSDwithLayer_proc)(Image *im, fullPath *fname);
+typedef int (*writeTIFF_proc)(Image *im, fullPath* fname);
+
+typedef struct {
+	// handle to pano12.dll
+	HINSTANCE hPano12;
+
+	// entry points to pano12.dll
+	FourToThreeBPP_proc FourToThreeBPP;
+	filter_main_proc filter_main;
+	myfree_proc myfree;
+	SetWindowOwner_proc SetWindowOwner;
+	SetImageDefaults_proc SetImageDefaults;
+	CopyImageData_proc CopyImageData;
+	writePSD_proc writePSD;
+
+#if 0   // unused calls
+	ConvFileName_proc ConvFileName;
+	PrintError_proc PrintError;
+	SetAdjustDefaults_proc SetAdjustDefaults;
+	addLayerToFile_proc addLayerToFile;
+	mymalloc_proc mymalloc;
+	readPrefs_proc readPrefs;
+	writePSDwithLayer_proc writePSDwithLayer;
+	writeTIFF_proc writeTIFF;
+#endif
+
+	bool initDLL;		// true of pano12.dll is loaded & initialized
+} DllData;
+
+int panTools();
+int panGetText(char *);
+
+#endif

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks