[34ed4d]: file.h Maximize Restore History

Download this file

file.h    94 lines (72 with data), 2.6 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
/*
* file.h
*
* Many of the routines are based on the program PTStitcher by Helmut
* Dersch.
*
* Copyright Helmut Dersch and Daniel M. German
*
* July 2006
*
* 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 software 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 software; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*
* Author: Daniel M German dmgerman at uvic doooot ca
*
*/
#ifndef __FILE_H__
#define __FILE_H__
// these are defined in file.c
int panoImageRead(Image * im, fullPath * sfile);
int panoFileMakeTemp(fullPath * path);
// and these are defined in bmp.c, jpeg.c, hdrfile.c, png.c, and ppm.c
// but there is no point in creating a file for each one of them
int panoBMPRead(Image *im, fullPath *sfile );
int panoJPEGRead(Image * im, fullPath * sfile);
int panoHDRRead(Image *im, fullPath *sfile );
int panoPNGRead(Image *im, fullPath *sfile );
int panoPPMRead(Image * im, fullPath * sfile);
typedef struct {
int stacked; // 1 if images are stacked
int psdBlendingMode; // for psd output, photoshop/gimp blending mode
} pano_flattening_parms;
typedef struct {
int type; //
int forceProcessing;
} pano_cropping_parms;
enum {
PSD_NORMAL,
PSD_COLOR,
PSD_DARKEN,
PSD_DIFFERENCE,
PSD_DISSOLVE,
PSD_HARD_LIGHT,
PSD_HUE,
PSD_LIGHTEN,
PSD_LUMINOSITY,
PSD_MULTIPLY,
PSD_OVERLAY,
PSD_SOFT_LIGHT,
PSD_SATURATION,
PSD_SCREEN,
PSD_NUMBER_BLENDING_MODES, // This Is Not Really a mode, it is the counter of number of modes
};
extern char *psdBlendingModesNames[PSD_NUMBER_BLENDING_MODES];
extern char *psdBlendingModesInternalName[PSD_NUMBER_BLENDING_MODES];
int panoFileOutputNamesCreate(fullPath *ptrOutputFiles, int filesCount, char* outputPrefix);
char *panoFileExists(fullPath *ptrFiles, int filesCount);
int panoSingleFileExists(char * filename);
int panoFileDeleteMultiple(fullPath* files, int filesCount);
#endif