/external/pdfium/core/fxcrt/ |
D | fx_system_unittest.cpp | 77 TEST(fxcrt, FXSYS_roundf) { in TEST() argument 78 EXPECT_EQ(0, FXSYS_roundf(0.0f)); in TEST() 79 EXPECT_EQ(0, FXSYS_roundf(-0.0f)); in TEST() 80 EXPECT_EQ(0, FXSYS_roundf(0.00001f)); in TEST() 81 EXPECT_EQ(0, FXSYS_roundf(-0.00001f)); in TEST() 82 EXPECT_EQ(3, FXSYS_roundf(3.14159f)); in TEST() 83 EXPECT_EQ(4, FXSYS_roundf(3.5f)); in TEST() 86 EXPECT_EQ(0, FXSYS_roundf(std::numeric_limits<float>::min())); in TEST() 87 EXPECT_EQ(0, FXSYS_roundf(-std::numeric_limits<float>::min())); in TEST() 92 EXPECT_EQ(-3, FXSYS_roundf(-3.14159f)); in TEST() [all …]
|
D | fx_coordinates.cpp | 268 return FX_RECT(FXSYS_roundf(left), FXSYS_roundf(top), FXSYS_roundf(right), in ToRoundedFxRect() 269 FXSYS_roundf(bottom)); in ToRoundedFxRect()
|
D | fx_string.cpp | 150 return ToString<float>(f, FXSYS_roundf, buf); in FloatToString()
|
D | fx_system.h | 190 int FXSYS_roundf(float f);
|
D | fx_system.cpp | 91 int FXSYS_roundf(float f) { in FXSYS_roundf() function
|
/external/pdfium/core/fpdfapi/font/ |
D | cpdf_type3char.cpp | 54 m_Width = FXSYS_roundf(TextUnitToGlyphUnit(pData[0])); in InitializeFromStreamData() 55 m_BBox.left = FXSYS_roundf(TextUnitToGlyphUnit(pData[2])); in InitializeFromStreamData() 56 m_BBox.bottom = FXSYS_roundf(TextUnitToGlyphUnit(pData[3])); in InitializeFromStreamData() 57 m_BBox.right = FXSYS_roundf(TextUnitToGlyphUnit(pData[4])); in InitializeFromStreamData() 58 m_BBox.top = FXSYS_roundf(TextUnitToGlyphUnit(pData[5])); in InitializeFromStreamData()
|
D | cpdf_type3font.cpp | 86 FXSYS_roundf(CPDF_Type3Char::TextUnitToGlyphUnit( in Load()
|
/external/pdfium/xfa/fgas/layout/ |
D | cfx_break.cpp | 64 int32_t iFontSize = FXSYS_roundf(fFontSize * 20.0f); in SetFontSize() 97 std::max(FXSYS_roundf(fTabWidth * kConversionFactor), kMinimumTabWidth); in SetTabWidth() 107 m_iTolerance = FXSYS_roundf(fTolerance * kConversionFactor); in SetLineBreakTolerance() 111 m_iCharSpace = FXSYS_roundf(fCharSpace * kConversionFactor); in SetCharSpace() 118 m_iLineStart = FXSYS_roundf(fLineStart * kConversionFactor); in SetLineBoundary() 119 m_iLineWidth = FXSYS_roundf(fLineEnd * kConversionFactor); in SetLineBoundary()
|
D | cfx_rtfbreak.cpp | 34 int32_t iLinePos = FXSYS_roundf(fLinePos * kConversionFactor); in SetLineStartPos() 42 FXSYS_roundf(fTabPos * kConversionFactor) + m_iLineStart, m_iLineWidth); in AddPositionedTab() 728 int32_t iFontSize = FXSYS_roundf(fFontSize * 20.0f); in GetDisplayPos()
|
D | cfx_txtbreak.cpp | 37 m_iLineWidth = FXSYS_roundf(fLineWidth * kConversionFactor); in SetLineWidth() 48 m_iCombWidth = FXSYS_roundf(fCombWidth * kConversionFactor); in SetCombWidth() 675 int32_t iFontSize = FXSYS_roundf(fFontSize * 20.0f); in GetDisplayPos()
|
/external/pdfium/core/fpdfapi/render/ |
D | cpdf_type3cache.cpp | 96 4, FXSYS_roundf(pMatrix->a * 10000), FXSYS_roundf(pMatrix->b * 10000), in LoadGlyph() 97 FXSYS_roundf(pMatrix->c * 10000), FXSYS_roundf(pMatrix->d * 10000)); in LoadGlyph() 155 left = FXSYS_roundf(image_matrix.e + image_matrix.a); in RenderGlyph() 157 left = FXSYS_roundf(image_matrix.e); in RenderGlyph()
|
D | cpdf_docrenderdata.cpp | 101 size_t o = FXSYS_roundf(output[0] * 255); in CreateTransferFunc() 110 size_t o = FXSYS_roundf(output[0] * 255); in CreateTransferFunc()
|
D | cpdf_type3glyphmap.cpp | 32 int new_pos = FXSYS_roundf(pos); in AdjustBlueHelper()
|
D | cpdf_renderstatus.cpp | 1059 CFX_Point origin(FXSYS_roundf(matrix.e), FXSYS_roundf(matrix.f)); in ProcessType3Text() 1190 FXSYS_roundf(255 * (bStroke ? pPageObj->m_GeneralState.GetStrokeAlpha() in DrawShadingPattern() 1208 FXSYS_roundf(255 * pShadingObj->m_GeneralState.GetFillAlpha()), in ProcessShading() 1302 int orig_x = FXSYS_roundf(mtPattern2Device.e); in DrawTilingPattern() 1303 int orig_y = FXSYS_roundf(mtPattern2Device.f); in DrawTilingPattern() 1356 FXSYS_roundf(mtPattern2Device.e) + col * width - clip_box.left; in DrawTilingPattern() 1358 FXSYS_roundf(mtPattern2Device.f) + row * height - clip_box.top; in DrawTilingPattern() 1364 FXSYS_roundf(original.x + left_offset); in DrawTilingPattern() 1366 FXSYS_roundf(original.y + top_offset); in DrawTilingPattern() 1655 transfers[i] = FXSYS_roundf(results[0] * 255); in LoadSMask()
|
/external/pdfium/core/fxge/dib/ |
D | cfx_cmyk_to_srgb.cpp | 1743 ASSERT(c1 == FXSYS_roundf(c * 255)); in AdobeCMYK_to_sRGB() 1744 ASSERT(m1 == FXSYS_roundf(m * 255)); in AdobeCMYK_to_sRGB() 1745 ASSERT(y1 == FXSYS_roundf(y * 255)); in AdobeCMYK_to_sRGB() 1746 ASSERT(k1 == FXSYS_roundf(k * 255)); in AdobeCMYK_to_sRGB()
|
D | cfx_imagetransformer.cpp | 161 : a(FXSYS_roundf(src.a * kBase)), in CPDF_FixedMatrix() 162 b(FXSYS_roundf(src.b * kBase)), in CPDF_FixedMatrix() 163 c(FXSYS_roundf(src.c * kBase)), in CPDF_FixedMatrix() 164 d(FXSYS_roundf(src.d * kBase)), in CPDF_FixedMatrix() 165 e(FXSYS_roundf(src.e * kBase)), in CPDF_FixedMatrix() 166 f(FXSYS_roundf(src.f * kBase)) {} in CPDF_FixedMatrix()
|
D | cstretchengine.cpp | 75 FXSYS_roundf(static_cast<float>( in Calc() 94 int weight = FXSYS_roundf( in Calc() 201 pixel_weights.m_Weights[idx] = FXSYS_roundf(weight * 65536); in Calc()
|
/external/pdfium/core/fxge/win32/ |
D | fx_win32_device.cpp | 135 dashes[i] = FXSYS_roundf( in CreateExtPen() 161 CFX_Point screen(FXSYS_roundf(pos.x), FXSYS_roundf(pos.y)); in SetPathToDC() 179 lppt[1].x = FXSYS_roundf(pos.x); in SetPathToDC() 180 lppt[1].y = FXSYS_roundf(pos.y); in SetPathToDC() 186 lppt[2].x = FXSYS_roundf(pos.x); in SetPathToDC() 187 lppt[2].y = FXSYS_roundf(pos.y); in SetPathToDC() 950 MoveToEx(m_hDC, FXSYS_roundf(x1), FXSYS_roundf(y1), nullptr); in DrawLine() 951 LineTo(m_hDC, FXSYS_roundf(x2), FXSYS_roundf(y2)); in DrawLine() 1137 MoveToEx(m_hDC, FXSYS_roundf(ptMoveTo.x), FXSYS_roundf(ptMoveTo.y), nullptr); in DrawCosmeticLine() 1138 LineTo(m_hDC, FXSYS_roundf(ptLineTo.x), FXSYS_roundf(ptLineTo.y)); in DrawCosmeticLine()
|
D | fx_win32_print.cpp | 309 spacing[i] = FXSYS_roundf(fPixelSpacing); in DrawDeviceText() 641 if (m_SetOrigin && FXSYS_roundf(m_OriginY) != FXSYS_roundf(fOffsetY)) { in DrawDeviceText()
|
D | fx_win32_gdipext.cpp | 909 CallFunc(GdipDrawLineI)(pGraphics, pPen, FXSYS_roundf(points[v1].X), in DrawPath() 910 FXSYS_roundf(points[v1].Y), in DrawPath() 911 FXSYS_roundf(points[v2].X), in DrawPath() 912 FXSYS_roundf(points[v2].Y)); in DrawPath()
|
/external/pdfium/core/fpdfapi/page/ |
D | cpdf_dib.cpp | 718 m_MatteColor = ArgbEncode(0, FXSYS_roundf(R * 255), FXSYS_roundf(G * 255), in StartLoadMask() 719 FXSYS_roundf(B * 255)); in StartLoadMask() 798 FX_ARGB argb0 = ArgbEncode(255, FXSYS_roundf(R * 255), in LoadPalette() 799 FXSYS_roundf(G * 255), FXSYS_roundf(B * 255)); in LoadPalette() 804 FX_ARGB argb1 = ArgbEncode(255, FXSYS_roundf(R * 255), in LoadPalette() 805 FXSYS_roundf(G * 255), FXSYS_roundf(B * 255)); in LoadPalette() 841 SetPaletteArgb(i, ArgbEncode(255, FXSYS_roundf(R * 255), in LoadPalette() 842 FXSYS_roundf(G * 255), FXSYS_roundf(B * 255))); in LoadPalette()
|
/external/pdfium/xfa/fxgraphics/ |
D | cxfa_graphics.cpp | 199 FX_RECT(FXSYS_roundf(rect.left), FXSYS_roundf(rect.top), in SetClipRect() 200 FXSYS_roundf(rect.right()), FXSYS_roundf(rect.bottom()))); in SetClipRect()
|
/external/pdfium/xfa/fwl/ |
D | cfwl_checkbox.cpp | 119 FXSYS_roundf(m_pProperties->m_rtWidget.width); in Layout() 121 FXSYS_roundf(m_pProperties->m_rtWidget.height); in Layout()
|
/external/pdfium/core/fxcrt/css/ |
D | cfx_cssdeclaration.cpp | 125 ? FXSYS_roundf(fValue * 2.55f) in ParseCSSColor() 126 : FXSYS_roundf(fValue); in ParseCSSColor()
|
/external/pdfium/core/fxcodec/ |
D | progressivedecoder.cpp | 76 pixel_weights.m_Weights[1] = FXSYS_roundf( in Calc() 124 FXSYS_roundf((float)(weight * 65536)); in Calc() 142 int dest_col = FXSYS_roundf((float)dest_col_f); in Calc() 164 FXSYS_roundf((float)(((float)dest_col - (float)dest_col_index) / in Calc() 174 int src_col = FXSYS_roundf((float)src_col_f); in Calc() 232 FXSYS_roundf((float)(end_step - dest_row) / (float)length * 65536); in Calc()
|