Home
last modified time | relevance | path

Searched refs:det (Results 1 – 25 of 107) sorted by relevance

12345

/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DCharsetRecog_sbcs.java106 private int nextByte(CharsetDetector det) in nextByte() argument
108 if (byteIndex >= det.fInputLen) { in nextByte()
112 return det.fInputBytes[byteIndex++] & 0xFF; in nextByte()
115 protected void parseCharacters(CharsetDetector det) in parseCharacters() argument
120 while ((b = nextByte(det)) >= 0) { in parseCharacters()
135 public int parse(CharsetDetector det) in parse() argument
137 return parse (det, (byte)0x20); in parse()
139 public int parse(CharsetDetector det, byte spaceCh) in parse() argument
144 parseCharacters(det); in parse()
213 private int nextByte(CharsetDetector det) in nextByte() argument
[all …]
DCharsetRecog_mbcs.java45 int match(CharsetDetector det, int [] commonChars) { in match() argument
56 for (iter.reset(); nextChar(iter, det);) { in match()
155 int nextByte(CharsetDetector det) { in nextByte() argument
156 if (nextIndex >= det.fRawLength) { in nextByte()
160 int byteValue = (int)det.fRawInput[nextIndex++] & 0x00ff; in nextByte()
177 abstract boolean nextChar(iteratedChar it, CharsetDetector det); in nextChar() argument
199 boolean nextChar(iteratedChar it, CharsetDetector det) { in nextChar() argument
203 firstByte = it.charValue = it.nextByte(det); in nextChar()
212 int secondByte = it.nextByte(det); in nextChar()
224 CharsetMatch match(CharsetDetector det) { in match() argument
[all …]
DCharsetRecog_2022.java118 CharsetMatch match(CharsetDetector det) { in match() argument
119 int confidence = match(det.fInputBytes, det.fInputLen, escapeSequences); in match()
120 return confidence == 0 ? null : new CharsetMatch(det, this, confidence); in match()
133 CharsetMatch match(CharsetDetector det) { in match() argument
134 int confidence = match(det.fInputBytes, det.fInputLen, escapeSequences); in match()
135 return confidence == 0 ? null : new CharsetMatch(det, this, confidence); in match()
158 CharsetMatch match(CharsetDetector det) { in match() argument
159 int confidence = match(det.fInputBytes, det.fInputLen, escapeSequences); in match()
160 return confidence == 0 ? null : new CharsetMatch(det, this, confidence); in match()
DCharsetRecog_Unicode.java25 abstract CharsetMatch match(CharsetDetector det); in match() argument
57 CharsetMatch match(CharsetDetector det) in match() argument
59 byte[] input = det.fRawInput; in match()
78 return new CharsetMatch(det, this, confidence); in match()
91 CharsetMatch match(CharsetDetector det) in match() argument
93 byte[] input = det.fRawInput; in match()
112 return new CharsetMatch(det, this, confidence); in match()
124 CharsetMatch match(CharsetDetector det) in match() argument
126 byte[] input = det.fRawInput; in match()
127 int limit = (det.fRawLength / 4) * 4; in match()
[all …]
DCharsetMatch.java191 CharsetMatch(CharsetDetector det, CharsetRecognizer rec, int conf) { in CharsetMatch() argument
197 if (det.fInputStream == null) { in CharsetMatch()
200 fRawInput = det.fRawInput; in CharsetMatch()
201 fRawLength = det.fRawLength; in CharsetMatch()
203 fInputStream = det.fInputStream; in CharsetMatch()
211 CharsetMatch(CharsetDetector det, CharsetRecognizer rec, int conf, String csName, String lang) { in CharsetMatch() argument
217 if (det.fInputStream == null) { in CharsetMatch()
220 fRawInput = det.fRawInput; in CharsetMatch()
221 fRawLength = det.fRawLength; in CharsetMatch()
223 fInputStream = det.fInputStream; in CharsetMatch()
DCharsetRecog_UTF8.java21 CharsetMatch match(CharsetDetector det) { in match() argument
25 byte input[] = det.fRawInput; in match()
30 if (det.fRawLength >= 3 && in match()
36 for (i=0; i<det.fRawLength; i++) { in match()
57 if (i>=det.fRawLength) { in match()
92 return confidence == 0 ? null : new CharsetMatch(det, this, confidence); in match()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/charsetdet/
DTestCharsetDetector.java94 CharsetDetector det = new CharsetDetector(); in TestConstruction() local
95 if(det==null){ in TestConstruction()
109 String[] activeCharsetNames = det.getDetectableCharsets(); in TestConstruction()
141 CharsetDetector det = new CharsetDetector(); in TestInputFilter() local
144 det.enableInputFilter(true); in TestInputFilter()
145 if (!det.inputFilterEnabled()){ in TestInputFilter()
149 det.setText(bytes); in TestInputFilter()
150 m = det.detect(); in TestInputFilter()
156 det.enableInputFilter(false); in TestInputFilter()
157 det.setText(bytes); in TestInputFilter()
[all …]
/external/icu/icu4c/source/i18n/
Dcsrmbcs.cpp131 int32_t IteratedChar::nextByte(InputText *det) in nextByte() argument
133 if (nextIndex >= det->fRawLength) { in nextByte()
139 return det->fRawInput[nextIndex++]; in nextByte()
147 int32_t CharsetRecog_mbcs::match_mbcs(InputText *det, const uint16_t commonChars[], int32_t commonC… in match_mbcs() argument
156 while (nextChar(&iter, det)) { in match_mbcs()
243 UBool CharsetRecog_sjis::nextChar(IteratedChar* it, InputText* det) const { in nextChar()
247 int32_t firstByte = it->charValue = it->nextByte(det); in nextChar()
257 int32_t secondByte = it->nextByte(det); in nextChar()
271 UBool CharsetRecog_sjis::match(InputText* det, CharsetMatch *results) const { in match() argument
272 int32_t confidence = match_mbcs(det, commonChars_sjis, ARRAY_SIZE(commonChars_sjis)); in match()
[all …]
Dcsrsbcs.h46 virtual int32_t nextByte(InputText *det);
47 virtual void parseCharacters(InputText *det);
50 int32_t parse(InputText *det);
60 int32_t nextByte(InputText *det);
61 void parseCharacters(InputText *det);
75 virtual UBool match(InputText *det, CharsetMatch *results) const = 0;
76 … virtual int32_t match_sbcs(InputText *det, const int32_t ngrams[], const uint8_t charMap[]) const;
84 virtual UBool match(InputText *det, CharsetMatch *results) const;
92 virtual UBool match(InputText *det, CharsetMatch *results) const;
143 virtual UBool match(InputText *det, CharsetMatch *results) const;
[all …]
Dcsrsbcs.cpp94 int32_t NGramParser::nextByte(InputText *det) in nextByte() argument
96 if (byteIndex >= det->fInputLen) { in nextByte()
100 return det->fInputBytes[byteIndex++]; in nextByte()
103 void NGramParser::parseCharacters(InputText *det) in parseCharacters() argument
108 while ((b = nextByte(det)) >= 0) { in parseCharacters()
122 int32_t NGramParser::parse(InputText *det) in parse() argument
124 parseCharacters(det); in parse()
190 int32_t NGramParser_IBM420::nextByte(InputText *det) in nextByte() argument
193 if (byteIndex >= det->fInputLen || det->fInputBytes[byteIndex] == 0) { in nextByte()
198 alef = isLamAlef(det->fInputBytes[byteIndex]); in nextByte()
[all …]
Dcsrmbcs.h42 int32_t nextByte(InputText* det);
61 int32_t match_mbcs(InputText* det, const uint16_t commonChars[], int32_t commonCharsLen) const;
101 UBool nextChar(IteratedChar *it, InputText *det) const;
132 UBool nextChar(IteratedChar *it, InputText *det) const;
175 UBool nextChar(IteratedChar* it, InputText* det) const;
194 UBool nextChar(IteratedChar* it, InputText* det) const;
/external/chromium-trace/trace-viewer/tracing/third_party/gl-matrix/src/gl-matrix/
Dmat3.js176 det = a00 * b01 + a01 * b11 + a02 * b21;
178 if (!det) {
181 det = 1.0 / det;
183 out[0] = b01 * det;
184 out[1] = (-a22 * a01 + a02 * a21) * det;
185 out[2] = (a12 * a01 - a02 * a11) * det;
186 out[3] = b11 * det;
187 out[4] = (a22 * a00 - a02 * a20) * det;
188 out[5] = (-a12 * a00 + a02 * a10) * det;
189 out[6] = b21 * det;
[all …]
Dmat2d.js120 var det = aa * ad - ab * ac;
121 if(!det){
124 det = 1.0 / det;
126 out[0] = ad * det;
127 out[1] = -ab * det;
128 out[2] = -ac * det;
129 out[3] = aa * det;
130 out[4] = (ac * aty - ad * atx) * det;
131 out[5] = (ab * atx - aa * aty) * det;
Dmat2.js121 det = a0 * a3 - a2 * a1;
123 if (!det) {
126 det = 1.0 / det;
128 out[0] = a3 * det;
129 out[1] = -a1 * det;
130 out[2] = -a2 * det;
131 out[3] = a0 * det;
/external/pdfium/core/src/fxcodec/lcms2/lcms2-2.6/src/
Dcmsmtrx.c131 cmsFloat64Number det, c0, c1, c2; in _cmsMAT3inverse() local
137 det = a -> v[0].n[0]*c0 + a -> v[0].n[1]*c1 + a -> v[0].n[2]*c2; in _cmsMAT3inverse()
139 if (fabs(det) < MATRIX_DET_TOLERANCE) return FALSE; // singular matrix; can't invert in _cmsMAT3inverse()
141 b -> v[0].n[0] = c0/det; in _cmsMAT3inverse()
142 b -> v[0].n[1] = (a -> v[0].n[2]*a -> v[2].n[1] - a -> v[0].n[1]*a -> v[2].n[2])/det; in _cmsMAT3inverse()
143 b -> v[0].n[2] = (a -> v[0].n[1]*a -> v[1].n[2] - a -> v[0].n[2]*a -> v[1].n[1])/det; in _cmsMAT3inverse()
144 b -> v[1].n[0] = c1/det; in _cmsMAT3inverse()
145 b -> v[1].n[1] = (a -> v[0].n[0]*a -> v[2].n[2] - a -> v[0].n[2]*a -> v[2].n[0])/det; in _cmsMAT3inverse()
146 b -> v[1].n[2] = (a -> v[0].n[2]*a -> v[1].n[0] - a -> v[0].n[0]*a -> v[1].n[2])/det; in _cmsMAT3inverse()
147 b -> v[2].n[0] = c2/det; in _cmsMAT3inverse()
[all …]
/external/eigen/test/
Dinverse.cpp50 RealScalar det; in inverse() local
53 m1.computeInverseAndDetWithCheck(m2, det, invertible); in inverse()
56 VERIFY_IS_APPROX(det, m1.determinant()); in inverse()
66 m3.computeInverseAndDetWithCheck(m4, det, invertible); in inverse()
68 VERIFY_IS_MUCH_SMALLER_THAN(abs(det-m3.determinant()), RealScalar(1)); in inverse()
/external/skia/src/core/
DSkPoint.cpp219 SkScalar det = u.cross(v); in distanceToLineBetweenSqd() local
224 *side = (Side) SkScalarSignAsInt(det); in distanceToLineBetweenSqd()
226 SkScalar temp = det / uLengthSqd; in distanceToLineBetweenSqd()
227 temp *= det; in distanceToLineBetweenSqd()
260 SkScalar det = u.cross(v); in distanceToLineSegmentBetweenSqd() local
261 SkScalar temp = det / uLengthSqd; in distanceToLineSegmentBetweenSqd()
262 temp *= det; in distanceToLineSegmentBetweenSqd()
/external/skia/experimental/
DSkSetPoly3To3_A.cpp59 SkDScalar det = SkDScalar_setMul(srcOP[0], srcOP[3]) - in SkSetPoly3To3_A() local
75 matrix->setScaleX(divide(M[0], det)); in SkSetPoly3To3_A()
76 matrix->setSkewX( divide(M[1], det)); in SkSetPoly3To3_A()
77 matrix->setSkewY (divide(M[2], det)); in SkSetPoly3To3_A()
78 matrix->setScaleY(divide(M[3], det)); in SkSetPoly3To3_A()
/external/opencv/cv/src/
Dcvlinefit.cpp111 float det[9], evc[9], evl[3]; in icvFitLine3D_wods() local
177 det[0] = dz2 + dy2; in icvFitLine3D_wods()
178 det[1] = -dxy; in icvFitLine3D_wods()
179 det[2] = -dxz; in icvFitLine3D_wods()
180 det[3] = det[1]; in icvFitLine3D_wods()
181 det[4] = dx2 + dz2; in icvFitLine3D_wods()
182 det[5] = -dyz; in icvFitLine3D_wods()
183 det[6] = det[2]; in icvFitLine3D_wods()
184 det[7] = det[5]; in icvFitLine3D_wods()
185 det[8] = dy2 + dx2; in icvFitLine3D_wods()
[all …]
/external/aac/libFDK/src/
Dautocorr2nd.cpp174 ac->det = (fMultDiv2(ac->r11r,ac->r22r) - fMultDiv2(ac->r12r,ac->r12r)) ; in autoCorr2nd_real()
175 mScale = CountLeadingBits(fAbs(ac->det)); in autoCorr2nd_real()
177 ac->det <<= mScale; in autoCorr2nd_real()
266 ac->det = ( fMultDiv2(ac->r11r,ac->r22r) >> 1 ) - in autoCorr2nd_cplx()
268 mScale = CountLeadingBits(fAbs(ac->det)); in autoCorr2nd_cplx()
270 ac->det <<= mScale; in autoCorr2nd_cplx()
/external/pdfium/core/src/fxcrt/
Dfx_basic_util.cpp457 FX_FLOAT det = a*(e*i - f*h) - b*(i*d - f*g) + c*(d*h - e*g); in Inverse() local
458 if (FXSYS_fabs(det) < 0.0000001) in Inverse()
462 (e*i - f*h) / det, in Inverse()
463 -(b*i - c*h) / det, in Inverse()
464 (b*f - c*e) / det, in Inverse()
465 -(d*i - f*g) / det, in Inverse()
466 (a*i - c*g) / det, in Inverse()
467 -(a*f - c*d) / det, in Inverse()
468 (d*h - e*g) / det, in Inverse()
469 -(a*h - b*g) / det, in Inverse()
[all …]
/external/chromium-trace/trace-viewer/tracing/third_party/gl-matrix/dist/
Dgl-matrix.js304 det = a0 * a3 - a2 * a1;
306 if (!det) {
309 det = 1.0 / det;
311 out[0] = a3 * det;
312 out[1] = -a1 * det;
313 out[2] = -a2 * det;
314 out[3] = a0 * det;
611 var det = aa * ad - ab * ac;
612 if(!det){
615 det = 1.0 / det;
[all …]
/external/fonttools/Lib/fontTools/misc/
Dtransform.py239 det = xx*yy - yx*xy
240 xx, xy, yx, yy = yy/det, -xy/det, -yx/det, xx/det
/external/valgrind/none/tests/
Dfucomip.c5 float det = 625.f; in main() local
7 if (det < 1) in main()
/external/mesa3d/src/glsl/builtins/glsl/
Dinverse.glsl31 float det = m[0][0] * m[1][1] - m[1][0] * m[0][1];
32 return adj / det;
48 float det = (+ m[0][0] * (m[1][1] * m[2][2] - m[1][2] * m[2][1])
52 return adj / det;
99 float det = (+ m[0][0] * adj[0][0]
104 return adj / det;

12345