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

« back to all changes in this revision

Viewing changes to cuneiform_src/Kern/rbal/src/statsearchbl.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
// StatSearchBL.h : header file
 
58
//
 
59
#ifndef __STAT_SEARCH_BL_H__
 
60
 
 
61
#include "cttypes.h"
 
62
#include "nt_types.h"
 
63
#include "cstr.h"
 
64
 
 
65
#ifdef __cplusplus
 
66
        extern "C" {
 
67
#endif
 
68
 
 
69
///////
 
70
typedef struct tagROW_STRUCT
 
71
{
 
72
        Int16 globMax;          //���������� ��������
 
73
        Int16 ValGM;            //�������� ����������� ���������
 
74
        Int16 AltGM;            //�������� ������������ (1-� ��� 2-� ��)
 
75
 
 
76
        Int16 rightLocMax;
 
77
        Int16 ValRLM;
 
78
        Int16 AltRLM;
 
79
        Float32 rightCoeff;
 
80
 
 
81
        Int16 leftLocMax;
 
82
        Int16 ValLLM;
 
83
        Int16 AltLLM;
 
84
        Float32 leftCoeff;
 
85
 
 
86
}       ROW_STRUCT;
 
87
 
 
88
//////
 
89
Int16 stat_Mode_diff_b2_b3(Int32 line_number, Int16 diff, Int16 fl_b2_or_b1);
 
90
Int16 stat_Mode_diff_b2_b1(Int32 line_number, Int16 diff_b3_b2);
 
91
Int16 stat_Mode_diff_b3_b4(Int32 line_number, Int16 diff_b3_b2);
 
92
//////
 
93
 
 
94
//////
 
95
Int16 stat_Hypothesis(Int32 line_number, Int16 diff_b3_bsl);
 
96
//////
 
97
 
 
98
//////
 
99
Int16 stat_Right_diff_from_max(Int16 *p_FreqArr, Int16 max_FreqArr);
 
100
Int16  stat_Left_diff_from_max(Int16 *p_FreqArr, Int16 max_FreqArr);
 
101
//////
 
102
 
 
103
//////
 
104
void stat_def_b3_b4(CSTR_line line, CSTR_attr *p_attr, Int16 *pY2Arr,
 
105
                           Int16 *pFreqY2Arr, Int16 *Ns3, Int16 *Ns4);
 
106
void stat_def_b1_b2(CSTR_line line, CSTR_attr *p_attr, Int16 *pY1Arr,
 
107
                           Int16 *pY2Arr, Int16 *pFreqY1Arr, Int16 *Ns1, Int16 *Ns2);
 
108
void stat_def_imaginary_bl(CSTR_attr *p_attr, Int16 *Ns1, Int16 *Ns2, Int16 *Ns4);
 
109
//////
 
110
 
 
111
//////
 
112
BOOL               stat_interp_bsl(CSTR_line line, CSTR_attr *p_attr, ROW_STRUCT *row_str);
 
113
BOOL stat_interp_bsl_by_solid_recog(CSTR_line line, Int16 ln_row, Int16 b3,
 
114
                                                                                                                                           ROW_STRUCT *row_str);
 
115
BOOL              stat_interp_bsl_by_b4(CSTR_line line, Int16 ln_row, Int16 b3, Int16 b4,
 
116
                                                                                                                                           ROW_STRUCT *row_str);
 
117
BOOL       stat_interp_bsl_by_boxes(CSTR_line line, Int16 ln_row, Int16 b3, Int16 b4,
 
118
                                                                                                                                           ROW_STRUCT *row_str);
 
119
//////
 
120
 
 
121
//////
 
122
BOOL      stat_control_t_level(CSTR_line line, Int16 ln_row, Int16 b3, Int16 b4);
 
123
Int16 stat_control_b3_by_recog(CSTR_line line, Int16 ln_row, ROW_STRUCT *row_str);
 
124
BOOL  stat_control_semilevel(CSTR_line line, Int16 ln_row, Int16 b4);
 
125
//////
 
126
 
 
127
//////
 
128
void stat_FormArrays(CSTR_line line, Int16 row, Int16 *pY1Arr, Int16 *pY2Arr);
 
129
BOOL stat_FormCSTR_attrArray(Int32 line_start, Int32 line_stop, CSTR_attr *pCSTR_attrArr);
 
130
Int16 stat_LineLength(CSTR_line line);
 
131
//////
 
132
 
 
133
//////
 
134
void StatSearchBL(CSTR_line line, CSTR_attr *p_attr,
 
135
                                  Int16 *Ns1, Int16 *Ns2, Int16 *Ns3, Int16 *Ns4);
 
136
//////
 
137
 
 
138
#ifdef __cplusplus
 
139
        }
 
140
#endif
 
141
 
 
142
#define  __STAT_SEARCH_BL_H__
 
143
#endif              /* Ends #ifndef __STAT_SEARCH_BL_H__  */
 
144
 
 
145
 
 
146