/external/pdfium/core/src/fxge/agg/agg23/ |
fx_agg_curves.cpp | 62 FX_FLOAT d2 = FXSYS_fabs(FXSYS_Mul(x2 - x4, dy) - FXSYS_Mul(y2 - y4, dx)); 63 FX_FLOAT d3 = FXSYS_fabs(FXSYS_Mul(x3 - x4, dy) - FXSYS_Mul(y3 - y4, dx)); 67 if(FXSYS_fabs(x1 + x3 - x2 - x2) + 68 FXSYS_fabs(y1 + y3 - y2 - y2) + 69 FXSYS_fabs(x2 + x4 - x3 - x3) + 70 FXSYS_fabs(y2 + y4 - y3 - y3) <= m_distance_tolerance_manhattan) {
|
agg_math.h | 55 if (FXSYS_fabs(den) < intersection_epsilon) {
|
fx_agg_vcgen_dash.cpp | 56 calc_dash_start(FXSYS_fabs(ds));
|
/external/pdfium/core/src/fpdftext/ |
fpdf_text_search.cpp | 42 if (FXSYS_fabs(rcPreObj.Width() - rcCurObj.Width()) > rcCurObj.Width() / 2) {
98 last_width = FXSYS_fabs(last_width);
106 this_width = FXSYS_fabs(this_width);
113 if (FXSYS_fabs(y) > threshold * 2) {
118 threshold *= nLastWidth > nThisWidth ? FXSYS_fabs(pPrevObj->GetFontSize()) : FXSYS_fabs(pObj->GetFontSize());
120 if (FXSYS_fabs(last_pos + last_width - x) > threshold && curChar != L' ' && preChar != L' ')
254 spacing -= matrix.TransformDistance(FXSYS_fabs(charSpace));
|
fpdf_text_int.cpp | 340 curXdif = FXSYS_fabs(point.x - charrect.left) < FXSYS_fabs(point.x - charrect.right) ? FXSYS_fabs(point.x - charrect.left) : FXSYS_fabs(point.x - charrect.right);
341 curYdif = FXSYS_fabs(point.y - charrect.bottom) < FXSYS_fabs(point.y - charrect.top ) ? FXSYS_fabs(point.y - charrect.bottom) : FXSYS_fabs(point.y - charrect.top);
370 if (FXSYS_fabs(posy - charinfo.m_OriginY) > 0 && !IsContainPreChar && ISAddLineFeed) {
497 if (FXSYS_fabs(charinfo.m_OriginY - curPos.y) > FX_MAX(height, charinfo.m_CharBox.Height()) / 2) { [all...] |
/external/pdfium/core/src/reflow/ |
layoutprocessor_reflow.cpp | 84 if(FXSYS_fabs(posY) > tempPageHeight && 85 FXSYS_fabs(posY + pData->m_Height) < tempPageHeight) { 105 } else if(FXSYS_fabs(posY + pData->m_Height) > tempPageHeight) { 113 if(FXSYS_fabs(posY) > tempPageHeight ) { 276 if(FXSYS_fabs(dyRow[pCell->m_RowSpan + i]) < FXSYS_fabs(dyRow[i] - pCell->m_CellHeight)) { 445 if(FXSYS_fabs(rect.right - prevRect.right) > rect.Height()) { 490 if(FXSYS_fabs(rect.right - prevRect.right) < rect.Height() && FXSYS_fabs(rect.left - prevRect.left) < rect.Height()) { 511 if(FXSYS_fabs(prevRect.left - rect.left) < rect.Height()) [all...] |
reflowedtextpage.cpp | 161 if((floatRect.right > point.x || FXSYS_fabs(floatRect.right - point.x) <= 0.0001f) && 162 (floatRect.left < point.x || FXSYS_fabs(floatRect.left - point.x) <= 0.0001f) && floatRect.bottom > point.y) { 163 return FXSYS_fabs(floatRect.bottom - point.y); 165 if(floatRect.left > point.x && (floatRect.bottom < point.y || FXSYS_fabs(floatRect.bottom - point.y) <= 0.0001f) && 166 (floatRect.top > point.y || FXSYS_fabs(floatRect.top - point.y) <= 0.0001f)) { 167 return FXSYS_fabs(floatRect.left - point.x); 172 if ((floatRect.left < point.x || FXSYS_fabs(floatRect.left - point.x) <= 0.0001f) && 173 (floatRect.right > point.x || FXSYS_fabs(floatRect.right - point.x) <= 0.0001f) && floatRect.top < point.y) { 174 return FXSYS_fabs(point.y - floatRect.top); 176 if(floatRect.right < point.x && (floatRect.top > point.y || FXSYS_fabs(floatRect.top - point.y) <= 0.0001f) & [all...] |
autoreflow.cpp | 8 #define approachto(a,b,c) (FXSYS_fabs((float)((a)-(b)))>(c) ? 0 : 1) 447 if(FXSYS_fabs(rcPreObj.Width() - rcCurObj.Width()) >= 2 || FXSYS_fabs(rcPreObj.Height() - rcCurObj.Height()) >= 2 ) { 475 if(FXSYS_fabs(rcPreObj.left - rcCurObj.left) < rcPreObj.Width() / 3 476 && FXSYS_fabs(rcPreObj.top - rcCurObj.top) < rcPreObj.Height() / 3) { 552 if(FXSYS_fabs(PrevY - PosY) < 1 ) { 659 FX_FLOAT dx = FXSYS_fabs(Item1.m_OriginX - Item2.m_OriginX); 660 FX_FLOAT dy = FXSYS_fabs(Item1.m_OriginY - Item2.m_OriginY); 671 if(FXSYS_fabs(pPreObj->m_Bottom - pCurObj->m_Bottom) < threshold * 2 672 && FXSYS_fabs(pPreObj->m_Top - pCurObj->m_Top) < threshold * 2) [all...] |
reflowedpage.cpp | 225 FX_FLOAT tempdy = FXSYS_fabs(pData->m_PosY - y1); 226 if(FXSYS_fabs(tempdy - dy) < 1) { 237 dx = FXSYS_fabs(pData->m_PosX - x1); 240 FX_FLOAT tempdx = FXSYS_fabs(pData->m_PosX - x1); 253 FX_FLOAT tempdy = FXSYS_fabs(pData->m_PosY - y1); 256 dx = FXSYS_fabs(pData->m_PosX - x1); 259 FX_FLOAT tempdx = FXSYS_fabs(pData->m_PosX - x1);
|
/external/pdfium/core/src/fxcrt/ |
fx_basic_coords.cpp | 184 FX_FLOAT error1 = f1 - i1_1 + (FX_FLOAT)FXSYS_fabs(f2 - i1_1 - length);
185 FX_FLOAT error2 = i1_2 - f1 + (FX_FLOAT)FXSYS_fabs(f2 - i1_2 - length);
273 if (FXSYS_fabs(i) == 0) {
316 return FXSYS_fabs(a * d - b * c) >= 0.0001f;
320 return FXSYS_fabs(a * 1000) < FXSYS_fabs(b) && FXSYS_fabs(d * 1000) < FXSYS_fabs(c);
324 return FXSYS_fabs(b * 1000) < FXSYS_fabs(a) && FXSYS_fabs(c * 1000) < FXSYS_fabs(d); [all...] |
/external/pdfium/core/src/fxge/ge/ |
fx_ge_path.cpp | 276 FX_BOOL bStartVert = FXSYS_fabs(start_x - middle_x) < 1.0f / 20;
277 FX_BOOL bEndVert = FXSYS_fabs(middle_x - end_x) < 1.0f / 20;
289 start_dc = (FX_FLOAT)FXSYS_fabs(FXSYS_MulDiv(half_width, start_len, start_x - middle_x));
295 end_dc = (FX_FLOAT)FXSYS_fabs(FXSYS_MulDiv(half_width, end_len, end_x - middle_x));
329 if (FXSYS_fabs(start_k - end_k) < 1.0f / 20) {
480 if (FXSYS_fabs(m_pPoints[i].m_PointY - m_pPoints[i - 1].m_PointY)
481 < FXSYS_fabs(m_pPoints[i].m_PointY - m_pPoints[next].m_PointY)) {
492 if (FXSYS_fabs(m_pPoints[i].m_PointX - m_pPoints[i - 1].m_PointX)
493 < FXSYS_fabs(m_pPoints[i].m_PointX - m_pPoints[next].m_PointX)) {
|
fx_ge_device.cpp | 233 FX_FLOAT fScaleX = FXSYS_fabs(ctm.a);
234 FX_FLOAT fScaleY = FXSYS_fabs(ctm.d);
327 FX_FLOAT fScaleX = FXSYS_fabs(ctm.a);
328 FX_FLOAT fScaleY = FXSYS_fabs(ctm.d);
|
fx_ge_ps.cpp | 518 (FXSYS_fabs(pPSFont->m_Glyphs[j].m_AdjustMatrix[0] - charpos.m_AdjustMatrix[0]) < 0.01 &&
519 FXSYS_fabs(pPSFont->m_Glyphs[j].m_AdjustMatrix[1] - charpos.m_AdjustMatrix[1]) < 0.01 &&
520 FXSYS_fabs(pPSFont->m_Glyphs[j].m_AdjustMatrix[2] - charpos.m_AdjustMatrix[2]) < 0.01 &&
521 FXSYS_fabs(pPSFont->m_Glyphs[j].m_AdjustMatrix[3] - charpos.m_AdjustMatrix[3]) < 0.01))) {
|
fx_ge_text.cpp | 73 FX_FLOAT error = (FX_FLOAT)(FXSYS_fabs(space_f) - FXSYS_fabs((FX_FLOAT)(space)));
189 if (FXSYS_fabs(char2device.a) + FXSYS_fabs(char2device.b) > 50 * 1.0f ||
234 FX_FLOAT scale_x = FXSYS_fabs(matrixCTM.a);
235 FX_FLOAT scale_y = FXSYS_fabs(matrixCTM.d);
[all...] |
/external/pdfium/core/src/fpdfapi/fpdf_render/ |
fpdf_render_text.cpp | 58 FX_FLOAT distance = (FX_FLOAT)FXSYS_fabs(pos - (FX_FLOAT)blues[i]);
138 if (FXSYS_fabs(image_matrix.b) < FXSYS_fabs(image_matrix.a) / 100 && FXSYS_fabs(image_matrix.c) < FXSYS_fabs(image_matrix.d) / 100) {
380 FX_FLOAT sa = FXSYS_fabs(dCTM.a);
381 FX_FLOAT sd = FXSYS_fabs(dCTM.d);
|
fpdf_render_image.cpp | 745 if ((FXSYS_fabs(m_ImageMatrix.b) >= 0.5f || m_ImageMatrix.a == 0) ||
746 (FXSYS_fabs(m_ImageMatrix.c) >= 0.5f || m_ImageMatrix.d == 0) ) {
[all...] |
fpdf_render.cpp | 382 FX_FLOAT a = FXSYS_fabs(dCTM.a);
383 FX_FLOAT d = FXSYS_fabs(dCTM.d);
463 matrix.a *= FXSYS_fabs(dCTM.a);
464 matrix.d *= FXSYS_fabs(dCTM.d);
[all...] |
/external/pdfium/core/src/fxge/win32/ |
fx_win32_print.cpp | 209 if (FXSYS_fabs(pMatrix->b) < 0.5f && pMatrix->a != 0 && FXSYS_fabs(pMatrix->c) < 0.5f && pMatrix->d != 0) {
216 if (FXSYS_fabs(pMatrix->a) < 0.5f && FXSYS_fabs(pMatrix->d) < 0.5f) {
|
fx_win32_device.cpp | 596 scale = FXSYS_fabs(pMatrix->a) > FXSYS_fabs(pMatrix->b) ?
597 FXSYS_fabs(pMatrix->a) : FXSYS_fabs(pMatrix->b);
[all...] |
/external/pdfium/core/src/fpdfapi/fpdf_page/ |
fpdf_page_pattern.cpp | 40 m_XStep = (FX_FLOAT)FXSYS_fabs(pDict->GetNumber(FX_BSTRC("XStep")));
41 m_YStep = (FX_FLOAT)FXSYS_fabs(pDict->GetNumber(FX_BSTRC("YStep")));
|
/external/pdfium/core/src/fxge/dib/ |
fx_dib_transform.cpp | 231 if (FXSYS_fabs(pDestMatrix->a) < FXSYS_fabs(pDestMatrix->b) / 20 &&
232 FXSYS_fabs(pDestMatrix->d) < FXSYS_fabs(pDestMatrix->c) / 20 &&
233 FXSYS_fabs(pDestMatrix->a) < 0.5f && FXSYS_fabs(pDestMatrix->d) < 0.5f) {
242 if (FXSYS_fabs(pDestMatrix->b) < FIX16_005 && FXSYS_fabs(pDestMatrix->c) < FIX16_005) {
[all...] |
fx_dib_main.cpp | [all...] |
/external/pdfium/core/src/fxge/apple/ |
fx_quartz_device.cpp | 516 pt.x *= FXSYS_fabs(ctm.a);
517 pt.y *= FXSYS_fabs(ctm.d);
579 CGFloat scale_x = FXSYS_fabs(ctm.a);
580 CGFloat scale_y = FXSYS_fabs(ctm.d);
846 CGContextSetFontSize(_context, FXSYS_fabs(font_size));
[all...] |
/external/pdfium/core/include/fxcrt/ |
fx_system.h | 242 #define FXSYS_fabs(a) (FX_FLOAT)fabs(a)
|
fx_coordinates.h | 174 return FXSYS_fabs(t) < 0x0001f;
183 return FXSYS_fabs(t) < 0x0001f;
|