[9be1ae]: panTools.h  Maximize  Restore  History

Download this file

120 lines (102 with data), 3.5 kB

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
// 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.
/**
* @file panTools.h
* This file is included in all four plug-ins (PTAdjust, PTCorrect, PTPerspect, and PTRemap)
* It contains the main functions to invoke panotools to preform the selected tasks
* @date January 2007
*/
#ifndef PANTOOLS_H
#define PANTOOLS_H
#ifdef __cplusplus
extern "C" {
#endif
#include "../libpano/sys_win.h"
#include "../libpano/Filter.h"
#ifdef __cplusplus
}
#endif
/**
* photoshop image parameters
*/
typedef struct
{
int imageWidth; //< the Image Width
int imageHeight; //< the Image Height
int imageDepth; //< the Image Depth
int imageChannelSize; //< the Image ChannelSize
int imageSize; //< the Image Size
} PhoData;
/**
* Panorama Data
*/
typedef struct
{
Image image1; //< Image 1
Image image2; //< Image 2
panoPrefs prefs; //< Panorama Prefs
sPrefs sprefs; //< Stitch Prefs
TrformStr tr; //< Tranform
bool initPrefs; //< initialized
} PanData;
#if 0 // unused functions
typedef void (*ConvFileName_proc)(fullPath *fname,char *string);
typedef void (*PrintError_proc)(char* fmt, ...);
typedef void (*SetAdjustDefaults_proc)(aPrefs *p);
typedef int (*addLayerToFile_proc)(Image *im, fullPath* sfile, fullPath* dfile, stBuf *sB);
typedef void** (*mymalloc_proc)(long numBytes);
typedef int (*readPrefs_proc)(char* p, int selector );
typedef int (*writePSDwithLayer_proc)(Image *im, fullPath *fname);
typedef int (*writeTIFF_proc)(Image *im, fullPath* fname);
#endif
typedef void (*CopyImageData_proc)(Image *dest, Image *src);
typedef void (*FourToThreeBPP_proc)(Image *im);
typedef void (*SetImageDefaults_proc)(Image *im);
typedef void (*SetWindowOwner_proc)(HWND owner);
typedef void (*filter_main_proc)(TrformStr *TrPtr, struct size_Prefs *spref);
typedef void (*myfree_proc)(void **hdl);
typedef int (*writePSD_proc)(Image *im, fullPath* fname);
/**
* Panorama funtions called from within the plug ins
*/
typedef struct
{
// handle to pano13.dll
HINSTANCE hpano13;
// entry points to pano13.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 pano13.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:





No, thanks