Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

[51520e]: panTools.h Maximize Restore History

Download this file

panTools.h    100 lines (84 with data), 2.8 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
// 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
int imagePlanes; //< the Image number of planes
} 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;
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;
writePSD_proc writePSDwithLayer;
bool initDLL; //< true of pano13.dll is loaded & initialized
} DllData;
int panTools();
int panGetText(char *);
#endif