/external/pdfium/core/src/fxge/agg/agg23/ |
D | fx_agg_curves.cpp | 62 FX_FLOAT d2 = FXSYS_fabs(FXSYS_Mul(x2 - x4, dy) - FXSYS_Mul(y2 - y4, dx)); in recursive_bezier() 63 FX_FLOAT d3 = FXSYS_fabs(FXSYS_Mul(x3 - x4, dy) - FXSYS_Mul(y3 - y4, dx)); in recursive_bezier() 67 if(FXSYS_fabs(x1 + x3 - x2 - x2) + in recursive_bezier() 68 FXSYS_fabs(y1 + y3 - y2 - y2) + in recursive_bezier() 69 FXSYS_fabs(x2 + x4 - x3 - x3) + in recursive_bezier() 70 FXSYS_fabs(y2 + y4 - y3 - y3) <= m_distance_tolerance_manhattan) { in recursive_bezier()
|
D | agg_math.h | 55 if (FXSYS_fabs(den) < intersection_epsilon) { in calc_intersection()
|
D | fx_agg_vcgen_dash.cpp | 56 calc_dash_start(FXSYS_fabs(ds)); in dash_start()
|
/external/pdfium/core/src/reflow/ |
D | reflowedtextpage.cpp | 161 if((floatRect.right > point.x || FXSYS_fabs(floatRect.right - point.x) <= 0.0001f) && in _GetDistance() 162 …(floatRect.left < point.x || FXSYS_fabs(floatRect.left - point.x) <= 0.0001f) && floatRect.bottom … in _GetDistance() 163 return FXSYS_fabs(floatRect.bottom - point.y); in _GetDistance() 165 …if(floatRect.left > point.x && (floatRect.bottom < point.y || FXSYS_fabs(floatRect.bottom - point.… in _GetDistance() 166 (floatRect.top > point.y || FXSYS_fabs(floatRect.top - point.y) <= 0.0001f)) { in _GetDistance() 167 return FXSYS_fabs(floatRect.left - point.x); in _GetDistance() 172 if ((floatRect.left < point.x || FXSYS_fabs(floatRect.left - point.x) <= 0.0001f) && in _GetDistance() 173 …(floatRect.right > point.x || FXSYS_fabs(floatRect.right - point.x) <= 0.0001f) && floatRect.top <… in _GetDistance() 174 return FXSYS_fabs(point.y - floatRect.top); in _GetDistance() 176 …if(floatRect.right < point.x && (floatRect.top > point.y || FXSYS_fabs(floatRect.top - point.y) <=… in _GetDistance() [all …]
|
D | layoutprocessor_reflow.cpp | 84 if(FXSYS_fabs(posY) > tempPageHeight && in FitPageMode() 85 FXSYS_fabs(posY + pData->m_Height) < tempPageHeight) { in FitPageMode() 105 } else if(FXSYS_fabs(posY + pData->m_Height) > tempPageHeight) { in FitPageMode() 113 if(FXSYS_fabs(posY) > tempPageHeight ) { in FitPageMode() 276 … if(FXSYS_fabs(dyRow[pCell->m_RowSpan + i]) < FXSYS_fabs(dyRow[i] - pCell->m_CellHeight)) { in ProcessTable() 445 if(FXSYS_fabs(rect.right - prevRect.right) > rect.Height()) { in IsCanMergeParagraph() 490 …if(FXSYS_fabs(rect.right - prevRect.right) < rect.Height() && FXSYS_fabs(rect.left - prevRect.left… in IsCanMergeParagraph() 511 if(FXSYS_fabs(prevRect.left - rect.left) < rect.Height()) { in IsCanMergeParagraph() 987 FX_FLOAT height = FXSYS_fabs(textMatrix.TransformDistance(fs)); in CreateRFData() 989 height = FXSYS_fabs(pObjMatrix->TransformDistance(height)); in CreateRFData() [all …]
|
D | 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… in LogicPreObj() 475 if(FXSYS_fabs(rcPreObj.left - rcCurObj.left) < rcPreObj.Width() / 3 in LogicPreObj() 476 && FXSYS_fabs(rcPreObj.top - rcCurObj.top) < rcPreObj.Height() / 3) { in LogicPreObj() 552 if(FXSYS_fabs(PrevY - PosY) < 1 ) { in GenerateLine() 659 FX_FLOAT dx = FXSYS_fabs(Item1.m_OriginX - Item2.m_OriginX); in GetWritingMode() 660 FX_FLOAT dy = FXSYS_fabs(Item1.m_OriginY - Item2.m_OriginY); in GetWritingMode() 671 if(FXSYS_fabs(pPreObj->m_Bottom - pCurObj->m_Bottom) < threshold * 2 in GetWritingMode() 672 && FXSYS_fabs(pPreObj->m_Top - pCurObj->m_Top) < threshold * 2) { in GetWritingMode() 680 if(FXSYS_fabs(pPreObj->m_Left - pCurObj->m_Left) < threshold * 2 in GetWritingMode() [all …]
|
D | reflowedpage.cpp | 225 FX_FLOAT tempdy = FXSYS_fabs(pData->m_PosY - y1); in FocusGetData() 226 if(FXSYS_fabs(tempdy - dy) < 1) { in FocusGetData() 237 dx = FXSYS_fabs(pData->m_PosX - x1); in FocusGetData() 240 FX_FLOAT tempdx = FXSYS_fabs(pData->m_PosX - x1); in FocusGetData() 253 FX_FLOAT tempdy = FXSYS_fabs(pData->m_PosY - y1); in FocusGetData() 256 dx = FXSYS_fabs(pData->m_PosX - x1); in FocusGetData() 259 FX_FLOAT tempdx = FXSYS_fabs(pData->m_PosX - x1); in FocusGetData()
|
/external/pdfium/core/src/fpdftext/ |
D | fpdf_text_search.cpp | 42 if (FXSYS_fabs(rcPreObj.Width() - rcCurObj.Width()) > rcCurObj.Width() / 2) { in FPDFText_IsSameTextObject() 98 last_width = FXSYS_fabs(last_width); in FPDFText_ProcessInterObj() 106 this_width = FXSYS_fabs(this_width); in FPDFText_ProcessInterObj() 113 if (FXSYS_fabs(y) > threshold * 2) { in FPDFText_ProcessInterObj() 118 …threshold *= nLastWidth > nThisWidth ? FXSYS_fabs(pPrevObj->GetFontSize()) : FXSYS_fabs(pObj->GetF… in FPDFText_ProcessInterObj() 120 if (FXSYS_fabs(last_pos + last_width - x) > threshold && curChar != L' ' && preChar != L' ') in FPDFText_ProcessInterObj() 254 spacing -= matrix.TransformDistance(FXSYS_fabs(charSpace)); in ProcessObject()
|
D | fpdf_text_int.cpp | 340 …curXdif = FXSYS_fabs(point.x - charrect.left) < FXSYS_fabs(point.x - charrect.right) ? FXSYS_fabs(… in GetIndexAtPos() 341 …curYdif = FXSYS_fabs(point.y - charrect.bottom) < FXSYS_fabs(point.y - charrect.top ) ? FXSYS_fabs… in GetIndexAtPos() 370 if (FXSYS_fabs(posy - charinfo.m_OriginY) > 0 && !IsContainPreChar && ISAddLineFeed) { in GetTextByRect() 497 … if (FXSYS_fabs(charinfo.m_OriginY - curPos.y) > FX_MAX(height, charinfo.m_CharBox.Height()) / 2) { in GetOrderByDirection() 525 if (FXSYS_fabs(PreXdif) < FXSYS_fabs(curXdif)) { in GetOrderByDirection() 531 if (FXSYS_fabs(curXdif) < FXSYS_fabs(minXdif)) { in GetOrderByDirection() 548 … if (FXSYS_fabs(charinfo.m_OriginY - curPos.y) > FX_MAX(height, charinfo.m_CharBox.Height()) / 2) { in GetOrderByDirection() 576 if (FXSYS_fabs(PreXdif) < FXSYS_fabs(curXdif)) { in GetOrderByDirection() 582 if (FXSYS_fabs(curXdif) < FXSYS_fabs(minXdif)) { in GetOrderByDirection() 1357 if(FXSYS_fabs(pTextObj->m_Right - pTextObj->m_Left) < 0.01f ) { [all …]
|
/external/pdfium/core/src/fxcrt/ |
D | fx_basic_coords.cpp | 184 FX_FLOAT error1 = f1 - i1_1 + (FX_FLOAT)FXSYS_fabs(f2 - i1_1 - length); in _MatchFloatRange() 185 FX_FLOAT error2 = i1_2 - f1 + (FX_FLOAT)FXSYS_fabs(f2 - i1_2 - length); in _MatchFloatRange() 273 if (FXSYS_fabs(i) == 0) { in SetReverse() 316 return FXSYS_fabs(a * d - b * c) >= 0.0001f; in IsInvertible() 320 return FXSYS_fabs(a * 1000) < FXSYS_fabs(b) && FXSYS_fabs(d * 1000) < FXSYS_fabs(c); in Is90Rotated() 324 return FXSYS_fabs(b * 1000) < FXSYS_fabs(a) && FXSYS_fabs(c * 1000) < FXSYS_fabs(d); in IsScaled() 379 a = FXSYS_fabs(fDiff) < 0.001f ? 1 : (dest.left - dest.right) / fDiff; in MatchRect() 381 d = FXSYS_fabs(fDiff) < 0.001f ? 1 : (dest.bottom - dest.top) / fDiff; in MatchRect()
|
/external/pdfium/core/src/fxge/ge/ |
D | fx_ge_path.cpp | 276 FX_BOOL bStartVert = FXSYS_fabs(start_x - middle_x) < 1.0f / 20; in _UpdateLineJoinPoints() 277 FX_BOOL bEndVert = FXSYS_fabs(middle_x - end_x) < 1.0f / 20; in _UpdateLineJoinPoints() 289 start_dc = (FX_FLOAT)FXSYS_fabs(FXSYS_MulDiv(half_width, start_len, start_x - middle_x)); in _UpdateLineJoinPoints() 295 end_dc = (FX_FLOAT)FXSYS_fabs(FXSYS_MulDiv(half_width, end_len, end_x - middle_x)); in _UpdateLineJoinPoints() 329 if (FXSYS_fabs(start_k - end_k) < 1.0f / 20) { in _UpdateLineJoinPoints() 480 if (FXSYS_fabs(m_pPoints[i].m_PointY - m_pPoints[i - 1].m_PointY) in GetZeroAreaPath() 481 < FXSYS_fabs(m_pPoints[i].m_PointY - m_pPoints[next].m_PointY)) { in GetZeroAreaPath() 492 if (FXSYS_fabs(m_pPoints[i].m_PointX - m_pPoints[i - 1].m_PointX) in GetZeroAreaPath() 493 < FXSYS_fabs(m_pPoints[i].m_PointX - m_pPoints[next].m_PointX)) { in GetZeroAreaPath()
|
D | fx_ge_device.cpp | 233 FX_FLOAT fScaleX = FXSYS_fabs(ctm.a); in DrawPath() 234 FX_FLOAT fScaleY = FXSYS_fabs(ctm.d); in DrawPath() 327 FX_FLOAT fScaleX = FXSYS_fabs(ctm.a); in SetDIBits() 328 FX_FLOAT fScaleY = FXSYS_fabs(ctm.d); in SetDIBits()
|
D | fx_ge_ps.cpp | 518 … (FXSYS_fabs(pPSFont->m_Glyphs[j].m_AdjustMatrix[0] - charpos.m_AdjustMatrix[0]) < 0.01 && in FindPSFontGlyph() 519 … FXSYS_fabs(pPSFont->m_Glyphs[j].m_AdjustMatrix[1] - charpos.m_AdjustMatrix[1]) < 0.01 && in FindPSFontGlyph() 520 … FXSYS_fabs(pPSFont->m_Glyphs[j].m_AdjustMatrix[2] - charpos.m_AdjustMatrix[2]) < 0.01 && in FindPSFontGlyph() 521 … FXSYS_fabs(pPSFont->m_Glyphs[j].m_AdjustMatrix[3] - charpos.m_AdjustMatrix[3]) < 0.01))) { in FindPSFontGlyph()
|
D | fx_ge_text.cpp | 73 FX_FLOAT error = (FX_FLOAT)(FXSYS_fabs(space_f) - FXSYS_fabs((FX_FLOAT)(space))); in _AdjustGlyphSpace() 189 if (FXSYS_fabs(char2device.a) + FXSYS_fabs(char2device.b) > 50 * 1.0f || in DrawNormalText() 234 FX_FLOAT scale_x = FXSYS_fabs(matrixCTM.a); in DrawNormalText() 235 FX_FLOAT scale_y = FXSYS_fabs(matrixCTM.d); in DrawNormalText()
|
/external/pdfium/core/src/fxge/dib/ |
D | fx_dib_transform.cpp | 231 if (FXSYS_fabs(pDestMatrix->a) < FXSYS_fabs(pDestMatrix->b) / 20 && in Start() 232 FXSYS_fabs(pDestMatrix->d) < FXSYS_fabs(pDestMatrix->c) / 20 && in Start() 233 FXSYS_fabs(pDestMatrix->a) < 0.5f && FXSYS_fabs(pDestMatrix->d) < 0.5f) { in Start() 242 if (FXSYS_fabs(pDestMatrix->b) < FIX16_005 && FXSYS_fabs(pDestMatrix->c) < FIX16_005) { in Start()
|
D | fx_dib_main.cpp | 1601 if ((FXSYS_fabs(m_Matrix.b) >= 0.5f || m_Matrix.a == 0) || 1602 (FXSYS_fabs(m_Matrix.c) >= 0.5f || m_Matrix.d == 0) ) { 1603 …if (FXSYS_fabs(m_Matrix.a) < FXSYS_fabs(m_Matrix.b) / 20 && FXSYS_fabs(m_Matrix.d) < FXSYS_fabs(m_… 1604 FXSYS_fabs(m_Matrix.a) < 0.5f && FXSYS_fabs(m_Matrix.d) < 0.5f) {
|
/external/pdfium/core/src/fpdfapi/fpdf_render/ |
D | fpdf_render_text.cpp | 58 FX_FLOAT distance = (FX_FLOAT)FXSYS_fabs(pos - (FX_FLOAT)blues[i]); in _AdjustBlue() 138 …if (FXSYS_fabs(image_matrix.b) < FXSYS_fabs(image_matrix.a) / 100 && FXSYS_fabs(image_matrix.c) < … in RenderGlyph() 380 FX_FLOAT sa = FXSYS_fabs(dCTM.a); in ProcessType3Text() 381 FX_FLOAT sd = FXSYS_fabs(dCTM.d); in ProcessType3Text()
|
D | fpdf_render_image.cpp | 745 if ((FXSYS_fabs(m_ImageMatrix.b) >= 0.5f || m_ImageMatrix.a == 0) || in StartDIBSource() 746 (FXSYS_fabs(m_ImageMatrix.c) >= 0.5f || m_ImageMatrix.d == 0) ) { in StartDIBSource() 811 if (FXSYS_fabs(m_ImageMatrix.b) >= 0.5f || FXSYS_fabs(m_ImageMatrix.c) >= 0.5f) { in StartBitmapAlpha() 911 …if (FXSYS_fabs(pImage2Device->a) < FXSYS_fabs(pImage2Device->b) * 10 && FXSYS_fabs(pImage2Device->… in Start()
|
D | fpdf_render.cpp | 382 FX_FLOAT a = FXSYS_fabs(dCTM.a); in GetObjectClippedRect() 383 FX_FLOAT d = FXSYS_fabs(dCTM.d); in GetObjectClippedRect() 463 matrix.a *= FXSYS_fabs(dCTM.a); in GetScaledMatrix() 464 matrix.d *= FXSYS_fabs(dCTM.d); in GetScaledMatrix() 1371 FX_FLOAT fScaleX = FXSYS_fabs(ctm.a); in Initialize() 1372 FX_FLOAT fScaleY = FXSYS_fabs(ctm.d); in Initialize()
|
/external/pdfium/core/src/fxge/win32/ |
D | fx_win32_print.cpp | 209 …if (FXSYS_fabs(pMatrix->b) < 0.5f && pMatrix->a != 0 && FXSYS_fabs(pMatrix->c) < 0.5f && pMatrix->… in StartDIBits() 216 if (FXSYS_fabs(pMatrix->a) < 0.5f && FXSYS_fabs(pMatrix->d) < 0.5f) { in StartDIBits()
|
D | fx_win32_device.cpp | 596 scale = FXSYS_fabs(pMatrix->a) > FXSYS_fabs(pMatrix->b) ? in _CreatePen() 597 FXSYS_fabs(pMatrix->a) : FXSYS_fabs(pMatrix->b); in _CreatePen()
|
/external/pdfium/core/src/fpdfapi/fpdf_page/ |
D | fpdf_page_pattern.cpp | 40 m_XStep = (FX_FLOAT)FXSYS_fabs(pDict->GetNumber(FX_BSTRC("XStep"))); in Load() 41 m_YStep = (FX_FLOAT)FXSYS_fabs(pDict->GetNumber(FX_BSTRC("YStep"))); in Load()
|
D | fpdf_page_graph_state.cpp | 327 return (FX_FLOAT)FXSYS_fabs(size); in GetFontSizeV() 334 return (FX_FLOAT)FXSYS_fabs(size); in GetFontSizeH()
|
/external/pdfium/core/src/fxge/apple/ |
D | fx_quartz_device.cpp | 516 pt.x *= FXSYS_fabs(ctm.a); in GetDIBits() 517 pt.y *= FXSYS_fabs(ctm.d); in GetDIBits() 579 CGFloat scale_x = FXSYS_fabs(ctm.a); in SetDIBits() 580 CGFloat scale_y = FXSYS_fabs(ctm.d); in SetDIBits() 846 CGContextSetFontSize(_context, FXSYS_fabs(font_size)); in CG_DrawGlypRun()
|
/external/pdfium/core/include/fxcrt/ |
D | fx_system.h | 242 #define FXSYS_fabs(a) (FX_FLOAT)fabs(a) macro
|