Statistics
| Revision:

svn-gvsig-desktop / tags / v1_0_2_Build_916 / libraries / libjni-gdal / include / bsb_read.h @ 12327

History | View | Annotate | Download (3.62 KB)

1 716 igbrotru
/******************************************************************************
2
 * $Id$
3
 *
4
 * Project:  BSB Reader
5
 * Purpose:  non-GDAL BSB API Declarations
6
 * Author:   Frank Warmerdam, warmerdam@pobox.com
7
 *
8
 ******************************************************************************
9
 * Copyright (c) 2001, Frank Warmerdam
10
 *
11
 * Permission is hereby granted, free of charge, to any person obtaining a
12
 * copy of this software and associated documentation files (the "Software"),
13
 * to deal in the Software without restriction, including without limitation
14
 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
15
 * and/or sell copies of the Software, and to permit persons to whom the
16
 * Software is furnished to do so, subject to the following conditions:
17
 *
18
 * The above copyright notice and this permission notice shall be included
19
 * in all copies or substantial portions of the Software.
20
 *
21
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
22
 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
24
 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
26
 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
27
 * DEALINGS IN THE SOFTWARE.
28
 ******************************************************************************
29
 *
30
 * $Log$
31 7764 nacho
 * Revision 1.3  2006-10-03 07:04:43  nacho
32
 * Fusi?n lo de las proyecciones con piloto.
33
 *
34
 * Revision 1.1  2006/07/18 16:21:00  nacho
35 716 igbrotru
 * *** empty log message ***
36
 *
37 7764 nacho
 * Revision 1.1  2006/06/29 16:23:27  nacho
38
 * *** empty log message ***
39
 *
40
 * Revision 1.2  2006/01/09 12:50:13  nacho
41
 * *** empty log message ***
42
 *
43 3540 nacho
 * Revision 1.1  2005/07/27 08:22:55  igbrotru
44
 * *** empty log message ***
45
 *
46
 * Revision 1.1  2004/12/28 14:06:59  igbrotru
47
 * *** empty log message ***
48
 *
49 716 igbrotru
 * Revision 1.1  2004/10/28 12:08:47  igbrotru
50
 * *** empty log message ***
51
 *
52
 * Revision 1.1  2004/09/27 08:27:48  igbrotru
53
 * *** empty log message ***
54
 *
55
 * Revision 1.1  2004/09/08 12:39:04  igbrotru
56
 * *** empty log message ***
57
 *
58
 * Revision 1.5  2002/11/04 04:26:45  warmerda
59
 * preliminary work on write support
60
 *
61
 * Revision 1.4  2002/07/19 22:05:15  warmerda
62
 * added support for NO1 (encrypted) files
63
 *
64
 * Revision 1.3  2002/07/19 20:32:57  warmerda
65
 * added nVersion to structure.
66
 *
67
 * Revision 1.2  2001/12/08 21:58:32  warmerda
68
 * save header
69
 *
70
 * Revision 1.1  2001/12/08 04:35:16  warmerda
71
 * New
72
 *
73
 */
74
75
#ifndef _BSBREAD_H_INCLUDED
76
#define _BSBREAD_H_INCLUDED
77
78
#include "cpl_port.h"
79
80
CPL_C_START
81
82
typedef struct {
83
    FILE        *fp;
84
85
    int                nXSize;
86
    int         nYSize;
87
88
    int         nPCTSize;
89
    unsigned char *pabyPCT;
90
91
    char        **papszHeader;
92
93
    int                *panLineOffset;
94
95
    int         nColorSize;
96
97
    int                nVersion; /* times 100 */
98
99
    int         bNO1;
100
101
    int         bNewFile;
102
    int         nLastLineWritten;
103
} BSBInfo;
104
105
BSBInfo CPL_DLL *BSBOpen( const char *pszFilename );
106
int CPL_DLL BSBReadScanline( BSBInfo *psInfo, int nScanline,
107
                             unsigned char *pabyScanlineBuf );
108
void CPL_DLL BSBClose( BSBInfo *psInfo );
109
110
BSBInfo CPL_DLL *BSBCreate( const char *pszFilename, int nCreationFlags,
111
                            int nVersion, int nXSize, int nYSize );
112
int CPL_DLL BSBWritePCT( BSBInfo *psInfo,
113
                         int nPCTSize, unsigned char *pabyPCT );
114
int CPL_DLL BSBWriteScanline( BSBInfo *psInfo,
115
                              unsigned char *pabyScanlineBuf );
116
117
CPL_C_END
118
119
120
#endif /* ndef _BSBREAD_H_INCLUDED */