1 /* Panorama_Tools - Generate, Edit and Convert Panoramic Images
2 Copyright (C) 1998,1999 - Helmut Dersch der@fh-furtwangen.de
3
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2, or (at your option)
7 any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public License
15 along with this software; see the file COPYING. If not, a copy
16 can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17 obtained by writing to the Free Software Foundation, Inc.,
18 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
19
20 /*------------------------------------------------------------*/
21
22 // This file contains functions to handle multilayer files
23 // The 8bit versions are PS-compatible
24
25 #include "filter.h"
26
27 #if _MSC_VER > 1000
28 #pragma warning(disable: 4100) // disable unreferenced formal parameter warning
29 #endif
30
DisposeMultiLayerImage(MultiLayerImage * mim)31 void DisposeMultiLayerImage( MultiLayerImage *mim ){
32 int i;
33
34 if( mim->Layer != NULL ){
35 for( i=0; i<mim->numLayers; i++){
36 if( mim->Layer[i].data != NULL ){
37 myfree((void**)mim->Layer[i].data);
38 }
39 }
40 free( mim->Layer );
41 }
42 }
43
44 // obsolete dummies
OverlapRMS(MultiLayerImage * mim PT_UNUSED)45 double OverlapRMS( MultiLayerImage *mim PT_UNUSED){ return 0.0; }
46
47
48