File: MyTiff16Reader.h

package info (click to toggle)
lynkeos.app 3.1%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 15,740 kB
  • sloc: objc: 36,412; ansic: 684; cpp: 148; sh: 68; makefile: 21
file content (66 lines) | stat: -rw-r--r-- 2,314 bytes parent folder | download
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
//
//  Lynkeos
//  $Id: MyTiff16Reader.h 471 2008-11-02 15:00:54Z j-etienne $
//
//  Created by Jean-Etienne LAMIAUD on Tue Mar 29 2005.
//  Copyright (c) 2005. Jean-Etienne LAMIAUD
//
// 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., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
// 

/**
 * \page libraries Libraries needed to compile Lynkeos
 * The TIFF reader and writer classes needs the libtiff library which can be 
 * found at http://www.remotesensing.org/libtiff/
 */

/*!
 * @header
 * @abstract Reader for 16 bits and monochrome TIFF images
 * @discussion These formats are not directly supported by Cocoa, which reads 
 *   them as 8 bits RGB images. This class is delared with a higher priority.
 *
 */
#ifndef __MYTIFF16READER_H
#define __MYTIFF16READER_H

#include <tiffio.h>

#include <LynkeosCore/LynkeosFileReader.h>

/*!
 * @abstract Class for reading 16 bits or monochrome TIFF image file format.
 * @discussion The TIFF file is opened and closed each time we need to read its
 *   contents. Otherwise, all the TIFF files would be loaded in memory.
 * @ingroup FileAccess
 */
@interface MyTiff16Reader : NSObject <LynkeosImageFileReader>
{
@private
   char     *_tiffFile;  //!< Path and name of the TIFF file
   uint32   _width;      //!< Cached width
   uint32   _height;     //!< Cached height
   u_short  _planar;     //!< Is the image planar
   u_short  _nPlanes;    //!< Number of color planes
   uint32   _stripH;     //!< Tiff strip height
   u_short  _nBits;      //!< Number of bits per pixels
   u_short  _sampleType; //!< Integer or float pixels
   double   _min;        //!< Minimum pixel value
   double   _max;        //!< Maximum pixel value
}

@end

#endif