Home
last modified time | relevance | path

Searched refs:FXSYS_roundf (Results 1 – 25 of 34) sorted by relevance

12

/external/pdfium/core/fxcrt/
Dfx_system_unittest.cpp77 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 …]
Dfx_coordinates.cpp268 return FX_RECT(FXSYS_roundf(left), FXSYS_roundf(top), FXSYS_roundf(right), in ToRoundedFxRect()
269 FXSYS_roundf(bottom)); in ToRoundedFxRect()
Dfx_string.cpp150 return ToString<float>(f, FXSYS_roundf, buf); in FloatToString()
Dfx_system.h190 int FXSYS_roundf(float f);
Dfx_system.cpp91 int FXSYS_roundf(float f) { in FXSYS_roundf() function
/external/pdfium/core/fpdfapi/font/
Dcpdf_type3char.cpp54 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()
Dcpdf_type3font.cpp86 FXSYS_roundf(CPDF_Type3Char::TextUnitToGlyphUnit( in Load()
/external/pdfium/xfa/fgas/layout/
Dcfx_break.cpp64 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()
Dcfx_rtfbreak.cpp34 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()
Dcfx_txtbreak.cpp37 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/
Dcpdf_type3cache.cpp96 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()
Dcpdf_docrenderdata.cpp101 size_t o = FXSYS_roundf(output[0] * 255); in CreateTransferFunc()
110 size_t o = FXSYS_roundf(output[0] * 255); in CreateTransferFunc()
Dcpdf_type3glyphmap.cpp32 int new_pos = FXSYS_roundf(pos); in AdjustBlueHelper()
Dcpdf_renderstatus.cpp1059 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/
Dcfx_cmyk_to_srgb.cpp1743 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()
Dcfx_imagetransformer.cpp161 : 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()
Dcstretchengine.cpp75 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/
Dfx_win32_device.cpp135 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()
Dfx_win32_print.cpp309 spacing[i] = FXSYS_roundf(fPixelSpacing); in DrawDeviceText()
641 if (m_SetOrigin && FXSYS_roundf(m_OriginY) != FXSYS_roundf(fOffsetY)) { in DrawDeviceText()
Dfx_win32_gdipext.cpp909 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/
Dcpdf_dib.cpp718 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/
Dcxfa_graphics.cpp199 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/
Dcfwl_checkbox.cpp119 FXSYS_roundf(m_pProperties->m_rtWidget.width); in Layout()
121 FXSYS_roundf(m_pProperties->m_rtWidget.height); in Layout()
/external/pdfium/core/fxcrt/css/
Dcfx_cssdeclaration.cpp125 ? FXSYS_roundf(fValue * 2.55f) in ParseCSSColor()
126 : FXSYS_roundf(fValue); in ParseCSSColor()
/external/pdfium/core/fxcodec/
Dprogressivedecoder.cpp76 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()

12