~ubuntu-branches/ubuntu/precise/cuneiform/precise

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Jakub Wilk, c-assert.diff, slovenian-slv.diff
  • Date: 2011-01-26 21:53:07 UTC
  • mfrom: (5.1.1 experimental)
  • Revision ID: james.westby@ubuntu.com-20110126215307-62x61mcesr607qb7
Tags: 1.0.0+dfsg-2
* Upload to unstable.
* Explicitly build-depend on pkg-config. Thanks to Stefano Rivera for the
  bug report.
* Add Vcs-* fields.
* Use the standard C assert() macro, rather than custom Cuneiform one.
  [c-assert.diff]
* Pass CFLAGS, CXXFLAGS and LDFLAGS (get from dpkg-buildflags) to cmake
  (closes: #608345). Thanks to Sami Liedes for the bug report.
  + Build depend on dpkg-dev (>= 1.15.7).
* Pass --parallel to dh.
  + Bump debhelper minimum version to 7.4.10.
* Update debian/copyright to the latest DEP-5 version.
* Bump year in debian/copyright.
* Explicitly link to GraphicsMagick (rather than via the ImageMagick
  compatibility layer).
* Don't ship /usr/lib/cuneiform/*.so symlinks. These libraries are
  considered private, at least until #598616 is fixed.
* Rename some private variables in debian/rules to make them lowercase.
* Update patch headers.
* Provide proper ‘build-arch’ and ‘build-indep’ targets in debian/rules.
* Document input format in the manual page (closes: #572061). Thanks to
  Janusz S. Bień for the bug report.
* Use ‘slv’ (rather than ‘slo’) as language code for Slovenian.
  [slovenian-slv.diff]
* Fix package description: Slovenian is supported, Slovak is not.
* Improve documentation of the language (-l) option (closes: #602512).
  Thanks to Jari Aalto for the bug report.
* Install reasons file for vrms.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
Copyright (c) 1993-2008, Cognitive Technologies
3
3
All rights reserved.
4
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
 
�������� ��� ������ ���� ���� �������� � ����������� ����� ������� � ������.
 
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
32
 
33
33
Redistribution and use in source and binary forms, with or without modification,
34
34
are permitted provided that the following conditions are met:
68
68
 
69
69
typedef struct   tagImgRGB
70
70
{
71
 
        Word8 bRed;
72
 
        Word8 bGreen;
73
 
        Word8 bBlue;
74
 
   Word8 breserved;
 
71
        uchar bRed;
 
72
        uchar bGreen;
 
73
        uchar bBlue;
 
74
   uchar breserved;
75
75
} TImgRGB;
76
76
 
77
77
_SETTYPES(TImgRGB)
79
79
// Export/import image descriptor.
80
80
typedef struct tagImgInfo
81
81
{
82
 
    Word16  wImageHeight;            // in pixels
83
 
    Word16  wImageWidth;             // in pixels
84
 
    Word16  wImageByteWidth;         // in bytes
85
 
    Word16  wImageDisplacement;      // in pixels
 
82
    uint16_t  wImageHeight;            // in pixels
 
83
    uint16_t  wImageWidth;             // in pixels
 
84
    uint16_t  wImageByteWidth;         // in bytes
 
85
    uint16_t  wImageDisplacement;      // in pixels
86
86
 
87
 
    Word16  wResolutionX;            // in dpi
88
 
    Word16  wResolutionY;            // in dpi
89
 
    Word8  bFotoMetrics;             // 1, if white is highest number,
 
87
    uint16_t  wResolutionX;            // in dpi
 
88
    uint16_t  wResolutionY;            // in dpi
 
89
    uchar  bFotoMetrics;             // 1, if white is highest number,
90
90
                                     // 0 -if white is lowest number.
91
 
    Word8  bCompression;             // compression of delivered strips
 
91
    uchar  bCompression;             // compression of delivered strips
92
92
#define CM_UNCOMPRESSED    0x0010
93
93
#define CM_GROUP4          0x0020
94
94
#define CM_JPEG            0x0040
95
95
#define CM_2XX             0x0080
96
96
 
97
97
 
98
 
    Word16  wAddX;                   //  "real"  coordinates of
99
 
    Word16  wAddY;                   //   upper-left corner (in pixels).
 
98
    uint16_t  wAddX;                   //  "real"  coordinates of
 
99
    uint16_t  wAddY;                   //   upper-left corner (in pixels).
100
100
 
101
 
    Word8   bSamplesPerPixel;
102
 
    Word8   bBitsPerSample;
103
 
    Word8   bPlanes;
104
 
    Word8   LinesOrder;              // 0 - as DDB, 1 as DIB.
 
101
    uchar   bSamplesPerPixel;
 
102
    uchar   bBitsPerSample;
 
103
    uchar   bPlanes;
 
104
    uchar   LinesOrder;              // 0 - as DDB, 1 as DIB.
105
105
#define LO_FIRSTFIRST 0
106
106
#define LO_FIRSTLAST  1
107
 
    Int16   PaletteSize;
 
107
    int16_t   PaletteSize;
108
108
    TImgRGB* Palette;
109
109
 
110
 
    Word8    ByteAlign;
 
110
    uchar    ByteAlign;
111
111
#define      BA_COMPACT     1
112
112
#define      BA_TWOBYTE     2
113
113
#define      BA_FOURBYTE    3
114
114
 
115
 
    Word8   spare[15];   // reserved for future.
 
115
    uchar   spare[15];   // reserved for future.
116
116
    Err16   error;
117
 
    Int16   step;  // step of sender/receiver conversation.
 
117
    int16_t   step;  // step of sender/receiver conversation.
118
118
#define CS_QUEST   0x0000   // struct has no information;
119
119
                            // it should be filled.
120
120
                            //(should be set by receiver when it calls
132
132
                            // (final step of conversation)/
133
133
//
134
134
// Available:
135
 
    Word32    avFlags;
 
135
    uint32_t    avFlags;
136
136
// Line numbering
137
137
#define AV_LO_FIRSTFIRST      0x0001
138
138
#define AV_LO_FIRSTLAST       0x0002
212
212
// Import callbacks prototypes:
213
213
 
214
214
typedef Bool  (*TImpImgOpen) (TImgInfo * lpImageInfo);
215
 
typedef Int32 (*TImpImgRead) (Word8* lpImage, Int32 wMaxSize);
216
 
typedef Int16 (*TImpImgGetBlock)(Word8* lpBuff, Int16 fstLine, Int16 nLines);
 
215
typedef int32_t (*TImpImgRead) (uchar* lpImage, int32_t wMaxSize);
 
216
typedef int16_t (*TImpImgGetBlock)(uchar* lpBuff, int16_t fstLine, int16_t nLines);
217
217
typedef Bool  (*TImpImgClose)(void);
218
218
 
219
219
//
230
230
// Export callbacks   prototypes:
231
231
 
232
232
typedef Bool  (*TExpImgOpen)    (TImgInfo * lpImageInfo);
233
 
typedef Int32 (*TExpImgWrite)   (Word8* lpImage, Int32 wMaxSize);
234
 
typedef Int16 (*TExpImgSetBlock)(Word8* lpBuff, Int16 fstLine, Int16 nLines);
 
233
typedef int32_t (*TExpImgWrite)   (uchar* lpImage, int32_t wMaxSize);
 
234
typedef int16_t (*TExpImgSetBlock)(uchar* lpBuff, int16_t fstLine, int16_t nLines);
235
235
typedef Bool  (*TExpImgClose)   (void);
236
236
 
237
237
//
261
261
 
262
262
typedef struct tagTiger_ImageInfo
263
263
{
264
 
    Word16  wImageHeight;           /* Height of the image in lines       */
265
 
    Word16  wImageWidth;            /* Width of the image in pixels       */
266
 
    Word16  wImageByteWidth;        /* Size of the image line in bytes    */
267
 
    Word16  wImageDisplacement;     /* Displacement of the first pixel of */
 
264
    uint16_t  wImageHeight;           /* Height of the image in lines       */
 
265
    uint16_t  wImageWidth;            /* Width of the image in pixels       */
 
266
    uint16_t  wImageByteWidth;        /* Size of the image line in bytes    */
 
267
    uint16_t  wImageDisplacement;     /* Displacement of the first pixel of */
268
268
                                    /*   image line in pixels, usually 0  */
269
 
    Word16  wResolutionX;           /* Resolution by X-axe */
270
 
    Word16  wResolutionY;           /* Resolution by Y-axe */
271
 
    Word8   bFotoMetrics;             /* White pixel */
272
 
    Word8   bUnused;                  /* not used; for alignment purpose only */
 
269
    uint16_t  wResolutionX;           /* Resolution by X-axe */
 
270
    uint16_t  wResolutionY;           /* Resolution by Y-axe */
 
271
    uchar   bFotoMetrics;             /* White pixel */
 
272
    uchar   bUnused;                  /* not used; for alignment purpose only */
273
273
 
274
 
    Word16  wAddX;
275
 
    Word16  wAddY;
 
274
    uint16_t  wAddX;
 
275
    uint16_t  wAddY;
276
276
} Tiger_ImageInfo;
277
277
 
278
278
#pragma pack()
283
283
 
284
284
#if defined( _MSC_VER ) && ( _MSC_VER == 800 ) /* MSVC 1.5  */
285
285
  typedef Bool16 (_far _pascal _export *TImageOpen     )(Tiger_ImageInfo* lpImageInfo);
286
 
  typedef Int16  (_far _pascal _export *TImageRead     )(Word8* lpImage, Word16 wMaxSize);
287
 
  typedef Int16  (_far _pascal _export *TImageGetBlock )(Word8* lpBuff, Int16 fstLine, Int16 nLines);
 
286
  typedef int16_t  (_far _pascal _export *TImageRead     )(uchar* lpImage, uint16_t wMaxSize);
 
287
  typedef int16_t  (_far _pascal _export *TImageGetBlock )(uchar* lpBuff, int16_t fstLine, int16_t nLines);
288
288
  typedef Bool16 (_far _pascal _export *TImageClose    )(void);
289
289
#else
290
290
        #ifdef __cplusplus
291
291
        extern "C"  {
292
292
        #endif
293
 
                typedef Int16  (*TImageGetBlock )(Word8* lpBuff, Int16 fstLine, Int16 nLines);
 
293
                typedef int16_t  (*TImageGetBlock )(uchar* lpBuff, int16_t fstLine, int16_t nLines);
294
294
                typedef Bool16 (*TImageOpen     )(Tiger_ImageInfo* lpImageInfo);
295
 
                typedef Int16  (*TImageRead     )(Word8* lpImage, Word16 wMaxSize);
 
295
                typedef int16_t  (*TImageRead     )(uchar* lpImage, uint16_t wMaxSize);
296
296
                typedef Bool16 (*TImageClose    )(void);
297
297
        #ifdef __cplusplus
298
298
        }