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

« back to all changes in this revision

Viewing changes to cuneiform_src/Kern/hhh/criimage.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:
57
57
#ifndef __CRIMAGE_HEADER_
58
58
#define __CRIMAGE_HEADER_
59
59
 
60
 
#ifndef __GLOBUS_H
61
 
 #include "globus.h"
62
 
#endif
63
 
 #include "cttypext.h"
64
 
///////////////////////////////////////////////////////////////////////////////////////////////
65
 
//#include"CTIDefines.h"
66
 
/*
67
 
#ifndef __RECDEFS_H
68
 
   #include "recdefs.h"
69
 
#endif
70
 
   #include "memfunc.h"
71
 
*/
 
60
#include "globus.h"
72
61
///////////////////////////////////////////////////////////////////////////////////////////////
73
62
#ifdef __RIMAGE__
74
63
  #define RIMAGE_FUNC(a)  FUN_EXPO(a)
76
65
  #define RIMAGE_FUNC(a)  FUN_IMPO(a)
77
66
#endif
78
67
///////////////////////////////////////////////////////////////////////////////////////////////
79
 
//#define     CIMAGE_CALLBACK_FUNC(a)         CIMAGE_FUNC(a)
80
68
#define     RIMAGE_CALLBACK_FUNC(a)         a
81
69
///////////////////////////////////////////////////////////////////////////////////////////////
82
70
#ifdef __cplusplus
94
82
/////////////////////////////////////////////////////////////////////////////////////////////////////////////
95
83
//
96
84
# define    RIMAGEBOOL16          Bool16
97
 
# define    RIMAGEWORD            Word16
 
85
# define    RIMAGEWORD            uint16_t
98
86
/////////////////////////////////////////////////////////////////////////////////////////////////////////////
99
87
//
100
88
typedef struct tag_RIMAGE_MARGINS
101
89
{
102
 
        Word32    rmLeftMarg;
103
 
        Word32    rmTopMarg;
104
 
        Word32    rmRightMarg;
105
 
        Word32    rmBottomMarg;
 
90
        uint32_t    rmLeftMarg;
 
91
        uint32_t    rmTopMarg;
 
92
        uint32_t    rmRightMarg;
 
93
        uint32_t    rmBottomMarg;
106
94
}   RIMAGEMARGINS, *PRIMAGEMARGINS, **PPRIMAGEMARGINS;
107
95
/////////////////////////////////////////////////////////////////////////////////////////////////////////////
108
96
//
109
 
RIMAGE_FUNC(Bool32) RIMAGE_Init(Word16 wHeightCode,Handle hStorage);
 
97
RIMAGE_FUNC(Bool32) RIMAGE_Init(uint16_t wHeightCode,Handle hStorage);
110
98
RIMAGE_FUNC(Bool32) RIMAGE_Done();
111
99
RIMAGE_FUNC(Bool32) RIMAGE_Reset();
112
 
RIMAGE_FUNC(Word32) RIMAGE_GetReturnCode();
113
 
RIMAGE_FUNC(Int8 *) RIMAGE_GetReturnString(Word32 dwError);
114
 
RIMAGE_FUNC(Bool32) RIMAGE_GetExportData(Word32 dwType, void * pData);
115
 
RIMAGE_FUNC(Bool32) RIMAGE_SetImportData(Word32 dwType, void * pData);
 
100
RIMAGE_FUNC(uint32_t) RIMAGE_GetReturnCode();
 
101
RIMAGE_FUNC(char *) RIMAGE_GetReturnString(uint32_t dwError);
 
102
RIMAGE_FUNC(Bool32) RIMAGE_GetExportData(uint32_t dwType, void * pData);
 
103
RIMAGE_FUNC(Bool32) RIMAGE_SetImportData(uint32_t dwType, void * pData);
116
104
/////////////////////////////////////////////////////////////
117
105
typedef enum
118
106
{
128
116
} RIMAGE_EXPORT_ENTRIES;
129
117
//////////////////////////////////////////////////////////////////////////////////////////////
130
118
typedef void   (*PRIMAGECBPRogressStart)(void);
131
 
typedef Bool32 (*PRIMAGECBPRogressStep)(Word32);
 
119
typedef Bool32 (*PRIMAGECBPRogressStep)(uint32_t);
132
120
typedef void   (*PRIMAGECBPRogressFinish)(void);
133
121
//////////////////////////////////////////////////////////////////////////////////////////////
134
122
typedef enum
144
132
#define       RIMAGE_USE_MARGINS       TRUE
145
133
#define       RIMAGE_WITHOUT_MARGINS   FALSE
146
134
DEC_FUN(Bool32,  SetMargins,           (PRIMAGEMARGINS));
147
 
DEC_FUN(Bool32,  Binarise,             (PWord8 , PWord8 , Word32, Word32));
148
 
DEC_FUN(Bool32,  Rotate,               (PWord8 , PWord8 , Int32, Int32, Word32));
149
 
DEC_FUN(Bool32,  Roll,                 (PWord8 , PWord8 , Int32, Int32, Word32));
150
 
DEC_FUN(Bool32,  Turn,                 (PWord8 , PWord8 , Word32, Word32));
151
 
DEC_FUN(Bool32,  Inverse,              (PWord8 , PWord8 , Word32));
 
135
DEC_FUN(Bool32,  Binarise,             (puchar , puchar , uint32_t, uint32_t));
 
136
DEC_FUN(Bool32,  Rotate,               (puchar , puchar , int32_t, int32_t, uint32_t));
 
137
DEC_FUN(Bool32,  Roll,                 (puchar , puchar , int32_t, int32_t, uint32_t));
 
138
DEC_FUN(Bool32,  Turn,                 (puchar , puchar , uint32_t, uint32_t));
 
139
DEC_FUN(Bool32,  Inverse,              (puchar , puchar , uint32_t));
152
140
DEC_FUN(Bool32,  SetProgressCB,        (PRIMAGECBPRogressStart, PRIMAGECBPRogressStep , PRIMAGECBPRogressFinish));
153
 
DEC_FUN(Bool32,  RotatePoint,          (PWord8 , Int32, Int32, PInt32, PInt32));
 
141
DEC_FUN(Bool32,  RotatePoint,          (puchar , int32_t, int32_t, int32_t *, int32_t *));
154
142
//////////////////////////////////////////////////////////////////////////////////////////
155
143
//
156
144
#undef DEC_FUN