| 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 |
#include <stdio.h> |
| 58 |
|
| 59 |
|
| 60 |
|
| 61 |
#include "ccom.h" |
| 62 |
#include "ctiimage.h" |
| 63 |
#include "cpage.h" |
| 64 |
#include "negdefs.h" |
| 65 |
#include "rselstr.h" |
| 66 |
|
| 67 |
|
| 68 |
|
| 69 |
ройки |
| 70 |
|
| 71 |
extern int inf_neg_h; |
| 72 |
extern int inf_neg_w; |
| 73 |
extern double inf_neg_black; |
| 74 |
extern double sup_neg_black_del; |
| 75 |
extern double weak_neg_black_del; |
| 76 |
extern double neg_cut_black; |
| 77 |
extern double neg_cut_white; |
| 78 |
extern double neg_cut_str; |
| 79 |
extern int min_let_h; |
| 80 |
extern int min_let_w; |
| 81 |
|
| 82 |
|
| 83 |
extern int inf_betw_str_h; |
| 84 |
extern int sup_square; |
| 85 |
|
| 86 |
|
| 87 |
метры |
| 88 |
|
| 89 |
extern int DPIX; |
| 90 |
extern int DPIY; |
| 91 |
extern int Height; |
| 92 |
extern int Width; |
| 93 |
extern uchar ImageName[CPAGE_MAXNAME]; |
| 94 |
extern NegImage* pNegImage; |
| 95 |
|
| 96 |
|
| 97 |
|
| 98 |
|
| 99 |
|
| 100 |
|
| 101 |
|
| 102 |
|
| 103 |
Bool InitNegMas(Rect16**,int); |
| 104 |
Bool InitNegMas(RecVersions**,int); |
| 105 |
Bool InitNegMas(UniVersions**,int); |
| 106 |
Bool InitNegMas(CCOM_comp***,int); |
| 107 |
void DelNegMas(Rect16**); |
| 108 |
void DelNegMas(RecVersions*); |
| 109 |
void DelNegMas(UniVersions*); |
| 110 |
void DelNegMas(CCOM_comp**); |
| 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 |
void NormNeg(Handle,NegList*,NegList**,int&); |
| 118 |
void CutNeg(Handle,NegList**,int&,int); |
| 119 |
void CutNegStr(Handle,NegList**,int&,int); |
| 120 |
Bool IfDrob(Handle,Rect16*,int,CCOM_comp *); |
| 121 |
void InitRc(Rect16*,CCOM_comp *); |
| 122 |
Bool SearchNegBySize(CCOM_handle,Handle,NegList**,int&); |
| 123 |
void SearchNegByBlack(Handle,NegList**,int&); |
| 124 |
void NegMoveMas(Rect16*,int&,int); |
| 125 |
void PMoveMas(double*,int,int); |
| 126 |
void NegMoveMasR(Rect16*,int&,int); |
| 127 |
void NegMoveMas(Rotating*,int,int); |
| 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 |
void DelIn(Handle,NegList**,int&); |
| 132 |
int absolut(int); |
| 133 |
double NegBlack(uchar*,Rect16); |
| 134 |
void PostRotate(NegList* now,int skew); |
| 135 |
|
| 136 |
|
| 137 |
|