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

« back to all changes in this revision

Viewing changes to cuneiform_src/Kern/rneg/sources/src/h/searchneg.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:
66
66
 
67
67
/*----------------------------------------------------------------------------*/
68
68
 
69
 
//���������
 
69
//Настройки
70
70
 
71
71
extern int inf_neg_h;
72
72
extern int inf_neg_w;
84
84
extern int sup_square;
85
85
/*----------------------------------------------------------------------------*/
86
86
 
87
 
//���������
 
87
//Параметры
88
88
 
89
89
extern int      DPIX;
90
90
extern int      DPIY;
91
91
extern int Height;
92
92
extern int Width;
93
 
extern Word8 ImageName[CPAGE_MAXNAME];
 
93
extern uchar ImageName[CPAGE_MAXNAME];
94
94
extern NegImage* pNegImage;
95
95
/*----------------------------------------------------------------------------*/
96
96
 
100
100
//My function's diclarations
101
101
 
102
102
 
103
 
BOOL InitNegMas(Rect16**,int);
104
 
BOOL InitNegMas(RecVersions**,int);
105
 
BOOL InitNegMas(UniVersions**,int);
106
 
BOOL InitNegMas(CCOM_comp***,int);
 
103
Bool InitNegMas(Rect16**,int);
 
104
Bool InitNegMas(RecVersions**,int);
 
105
Bool InitNegMas(UniVersions**,int);
 
106
Bool InitNegMas(CCOM_comp***,int);
107
107
void DelNegMas(Rect16**);
108
108
void DelNegMas(RecVersions*);
109
109
void DelNegMas(UniVersions*);
110
110
void DelNegMas(CCOM_comp**);
111
 
BOOL AddLenNegMas(Rect16**,int&,int);
112
 
BOOL AddLenNegMas(CCOM_comp***,int&,int);
113
 
BOOL IsNegSize(Int16,Int16);
114
 
BOOL IsNegBlack(Handle,NegList*);
115
 
BOOL GetMasP(Handle,Rect16,Word8**);
116
 
BOOL GetMasP(Rect16*,Word8**);
 
111
Bool AddLenNegMas(Rect16**,int&,int);
 
112
Bool AddLenNegMas(CCOM_comp***,int&,int);
 
113
Bool IsNegSize(int16_t,int16_t);
 
114
Bool IsNegBlack(Handle,NegList*);
 
115
Bool GetMasP(Handle,Rect16,uchar**);
 
116
Bool GetMasP(Rect16*,uchar**);
117
117
void NormNeg(Handle,NegList*,NegList**,int&);
118
118
void CutNeg(Handle,NegList**,int&,int);
119
119
void CutNegStr(Handle,NegList**,int&,int);
120
 
BOOL IfDrob(Handle,Rect16*,int,CCOM_comp *);
 
120
Bool IfDrob(Handle,Rect16*,int,CCOM_comp *);
121
121
void InitRc(Rect16*,CCOM_comp *);
122
 
BOOL SearchNegBySize(CCOM_handle,Handle,NegList**,int&);
 
122
Bool SearchNegBySize(CCOM_handle,Handle,NegList**,int&);
123
123
void SearchNegByBlack(Handle,NegList**,int&);
124
124
void NegMoveMas(Rect16*,int&,int);
125
125
void PMoveMas(double*,int,int);
126
126
void NegMoveMasR(Rect16*,int&,int);
127
127
void NegMoveMas(Rotating*,int,int);
128
 
BOOL IfNegIn(NegList*,int,int,int,int,int);
129
 
void DeleteRotateMas(Word8**,Int16**,Int16**,Word8**,int**);
130
 
void NegInvert(Word8*,Rect16);
 
128
Bool IfNegIn(NegList*,int,int,int,int,int);
 
129
void DeleteRotateMas(uchar**,int16_t**,int16_t**,uchar**,int**);
 
130
void NegInvert(uchar*,Rect16);
131
131
void DelIn(Handle,NegList**,int&);
132
132
int absolut(int);
133
 
double NegBlack(Word8*,Rect16);
 
133
double NegBlack(uchar*,Rect16);
134
134
void PostRotate(NegList* now,int skew);
135
135
 
136
136