~ubuntu-branches/debian/wheezy/cuneiform/wheezy

« back to all changes in this revision

Viewing changes to cuneiform_src/Kern/h/imgfrmts.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Baumann
  • Date: 2009-07-10 17:58:10 UTC
  • Revision ID: james.westby@ubuntu.com-20090710175810-rqc89d2i3tki9m89
Tags: upstream-0.7.0+dfsg
Import upstream version 0.7.0+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
Copyright (c) 1993-2008, Cognitive Technologies
 
3
All rights reserved.
 
4
 
 
5
����������� ��������� ��������������� � ������������� ��� � ���� ��������� ����,
 
6
��� � � �������� �����, � ����������� ��� ���, ��� ���������� ��������� �������:
 
7
 
 
8
      * ��� ��������� ��������������� ��������� ���� ������ ���������� ���������
 
9
        ���� ����������� �� ��������� �����, ���� ������ ������� � �����������
 
10
        ����� �� ��������.
 
11
      * ��� ��������� ��������������� ��������� ���� � ������������ �/��� �
 
12
        ������ ����������, ������������ ��� ���������������, ������ �����������
 
13
        ��������� ���� ���������� �� ��������� �����, ���� ������ ������� �
 
14
        ����������� ����� �� ��������.
 
15
      * �� �������� Cognitive Technologies, �� ����� �� ����������� �� �����
 
16
        ���� ������������ � �������� �������� ��������� �/��� �����������
 
17
        ���������, ���������� �� ���� ��, ��� ���������������� �����������
 
18
        ����������.
 
19
 
 
20
��� ��������� ������������� ����������� ��������� ���� �/��� ������� ������ "���
 
21
��� ����" ��� ������-���� ���� ��������, ���������� ���� ��� ���������������,
 
22
������� �������� ������������ �������� � ����������� ��� ���������� ����, �� ��
 
23
������������� ���. �� �������� ��������� ���� � �� ���� ������ ����, �������
 
24
����� �������� �/��� �������� �������������� ���������, �� � ���� ������ ��
 
25
��Ѩ� ���������������, ������� ����� �����, ���������, ����������� ���
 
26
������������� ������, ��������� � �������������� ��� ���������� ����������
 
27
������������� ������������� ��������� (������� ������ ������, ��� ������,
 
28
������� ���������, ��� ������ �/��� ������ �������, ���������� ��-�� ��������
 
29
������� ��� �/��� ������ ��������� �������� ��������� � ������� �����������,
 
30
�� �� ������������� ����� ��������), �� �� ������������� ���, ���� ���� �����
 
31
�������� ��� ������ ���� ���� �������� � ����������� ����� ������� � ������.
 
32
 
 
33
Redistribution and use in source and binary forms, with or without modification,
 
34
are permitted provided that the following conditions are met:
 
35
 
 
36
    * Redistributions of source code must retain the above copyright notice,
 
37
      this list of conditions and the following disclaimer.
 
38
    * Redistributions in binary form must reproduce the above copyright notice,
 
39
      this list of conditions and the following disclaimer in the documentation
 
40
      and/or other materials provided with the distribution.
 
41
    * Neither the name of the Cognitive Technologies nor the names of its
 
42
      contributors may be used to endorse or promote products derived from this
 
43
      software without specific prior written permission.
 
44
 
 
45
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
 
46
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 
47
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 
48
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
 
49
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 
50
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
 
51
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
 
52
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
 
53
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 
54
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
55
*/
 
56
 
 
57
 
 
58
#ifndef __IMGFRMTS_H
 
59
#define __IMGFRMTS_H
 
60
 
 
61
//
 
62
//  General descriptor for available image disk formats.
 
63
struct TFormatDescriptor
 
64
{
 
65
 Int16              id;
 
66
 char   extentions[32];
 
67
 char         name[32];
 
68
 Int16           flags;
 
69
 
 
70
#define   FD_READAVAIL                  0x0001
 
71
#define   FD_WRITEAVAIL                 0x0002
 
72
 
 
73
#define   FD_GREYAVAIL                  0x0004
 
74
#define   FD_BWAVAIL          0x0008
 
75
#define   FD_COLORAVAIL                 0x0010
 
76
 
 
77
#define   FD_MULTIPAGE                  0x0020
 
78
 
 
79
#define   FD_BWDEF                              0x0040  // Default formats for image types
 
80
#define   FD_GREYDEF                    0x0080
 
81
#define   FD_COLORDEF                   0x0100
 
82
 
 
83
#define   FD_FIRSTLASTONLY              0x0200  // Format supports DIB line sequence only
 
84
#define   FD_FORCEBWNEGATIVE    0x0400  // Format supports negative fotometric only B&W
 
85
#define   FD_FORCEGRAYNEGATIVE  0x0800  // Format supports negative fotometric only B&W
 
86
 
 
87
 Word32 iWLEntry;                                 // Reserved for internal use
 
88
 
 
89
}; _SETTYPES( TFormatDescriptor )
 
90
 
 
91
typedef struct tagIFS_FORMATLISTSTRUCT{
 
92
   char * lpstrFilter;
 
93
        PTFormatDescriptor ifsFDL;
 
94
}IFS_FORMATLISTSTRUCT;
 
95
 
 
96
_SETTYPES( IFS_FORMATLISTSTRUCT );
 
97
 
 
98
//
 
99
// File Types constants (Ids in TFormatDescriptor)
 
100
 
 
101
#define IAPI_TIFF_UNCOMPRESSED                          0
 
102
#define IAPI_BMP_UNCOMPRESSED                           1
 
103
#define IAPI_PCX                                        2
 
104
#define IAPI_TARGA                                      3
 
105
#define IAPI_GIF                                        4
 
106
#define IAPI_WPG                                        5
 
107
#define IAPI_WMF                                        6
 
108
#define IAPI_TIFF_HUFFMAN                               7
 
109
#define IAPI_TIFF_G3_FAX                                8
 
110
#define IAPI_TIFF_LZW                                   9
 
111
#define IAPI_TIFF_G4_FAX                                10
 
112
#define IAPI_DCX                                        11
 
113
#define IAPI_BMP_COMPRESSED                             12
 
114
#define IAPI_JPEG                                       13
 
115
#define IAPI_EPS                                        14
 
116
#define IAPI_PICT                                       15
 
117
#define IAPI_TIFF_PACK                                  16
 
118
#define IAPI_TIFF_2D                                    17
 
119
#define IAPI_CALS                                       18
 
120
#define IAPI_LASER_DATA                                 19
 
121
#define IAPI_XBM                                        20
 
122
#define IAPI_MACPAINT                                   21
 
123
#define IAPI_GX2                                        22
 
124
#define IAPI_KOFAX                                      23
 
125
#define IAPI_IOCA                                       24
 
126
#define IAPI_ICON                                       25
 
127
#define IAPI_IFF_ILBM                                   26
 
128
#define IAPI_CLIP                                       27
 
129
#define IAPI_IMG                                        28
 
130
#define IAPI_BROOK_TROUT                                29
 
131
#define IAPI_MSP                                        30
 
132
#define IAPI_CUT                                        31
 
133
#define IAPI_TARGA16                                    32
 
134
#define IAPI_CCITT_G3                                   33
 
135
#define IAPI_CCITT_G4                                   34
 
136
#define IAPI_XPM                                        35
 
137
#define IAPI_XWD                                        36
 
138
#define IAPI_RAST                                       37
 
139
#define IAPI_ASCII                                      38
 
140
#define IAPI_PHOTOCD                                    39
 
141
#define IAPI_TIFF_JPEG                                  40
 
142
#define IAPI_PHOTOSHOP                                  41
 
143
#define IAPI_IMNET                                      42
 
144
#define IAPI_PCL_1                                      43
 
145
#define IAPI_PCL_5                                      44
 
146
 
 
147
#define IAPI_CTL2XX                                     45   // Attention !!! If You will upgrade
 
148
                                                             // AccuSoft You MUST check this value
 
149
                                                             // It can't be smaller than MAXFILTERS
 
150
 
 
151
#define  _2XX_WINSTRING   "CT Native (.2xx)\0*.2xx\0"
 
152
#define  _2XX_CAPTION     "CT Native (.2xx)"
 
153
#define  _2XX_EXTENSION   "*.2xx"
 
154
 
 
155
 
 
156
#endif //__IMGFRMTS_H