Home
last modified time | relevance | path

Searched refs:FXSYS_round (Results 1 – 25 of 35) sorted by relevance

12

/external/pdfium/core/fpdfapi/font/
Dcpdf_type3char.cpp73 m_Width = FXSYS_round(TextUnitToGlyphUnit(pData[0])); in InitializeFromStreamData()
74 m_BBox.left = FXSYS_round(TextUnitToGlyphUnit(pData[2])); in InitializeFromStreamData()
75 m_BBox.bottom = FXSYS_round(TextUnitToGlyphUnit(pData[3])); in InitializeFromStreamData()
76 m_BBox.right = FXSYS_round(TextUnitToGlyphUnit(pData[4])); in InitializeFromStreamData()
77 m_BBox.top = FXSYS_round(TextUnitToGlyphUnit(pData[5])); in InitializeFromStreamData()
Dcpdf_type3font.cpp73 FXSYS_round(CPDF_Type3Char::TextUnitToGlyphUnit( in Load()
/external/pdfium/core/fpdfapi/render/
Dcpdf_type3cache.cpp92 4, FXSYS_round(pMatrix->a * 10000), FXSYS_round(pMatrix->b * 10000), in LoadGlyph()
93 FXSYS_round(pMatrix->c * 10000), FXSYS_round(pMatrix->d * 10000)); in LoadGlyph()
148 static_cast<int>(FXSYS_round(image_matrix.a) * retinaScaleX), in RenderGlyph()
156 left = FXSYS_round(image_matrix.e + image_matrix.a); in RenderGlyph()
158 left = FXSYS_round(image_matrix.e); in RenderGlyph()
Dcpdf_dibsource.cpp697 m_MatteColor = FXARGB_MAKE(0, FXSYS_round(R * 255), FXSYS_round(G * 255), in StartLoadMask()
698 FXSYS_round(B * 255)); in StartLoadMask()
768 FX_ARGB argb0 = ArgbEncode(255, FXSYS_round(R * 255), FXSYS_round(G * 255), in LoadPalette()
769 FXSYS_round(B * 255)); in LoadPalette()
774 FX_ARGB argb1 = ArgbEncode(255, FXSYS_round(R * 255), FXSYS_round(G * 255), in LoadPalette()
775 FXSYS_round(B * 255)); in LoadPalette()
808 SetPaletteArgb(i, ArgbEncode(255, FXSYS_round(R * 255), in LoadPalette()
809 FXSYS_round(G * 255), FXSYS_round(B * 255))); in LoadPalette()
Dcpdf_docrenderdata.cpp103 int o = FXSYS_round(output[0] * 255); in GetTransferFunc()
116 int o = FXSYS_round(output[0] * 255); in GetTransferFunc()
Dcpdf_renderstatus.cpp159 FXARGB_TODIB(FXARGB_MAKE(alpha, FXSYS_round(R * 255), in DrawAxialShading()
160 FXSYS_round(G * 255), FXSYS_round(B * 255))); in DrawAxialShading()
241 FXARGB_TODIB(FXARGB_MAKE(alpha, FXSYS_round(R * 255), in DrawRadialShading()
242 FXSYS_round(G * 255), FXSYS_round(B * 255))); in DrawRadialShading()
1571 int width = FXSYS_round((float)rect.Width() * scaleX); in ProcessTransparency()
1572 int height = FXSYS_round((float)rect.Height() * scaleY); in ProcessTransparency()
1668 int width = FXSYS_round(bbox.Width() * scaleX); in GetBackdrop()
1669 int height = FXSYS_round(bbox.Height() * scaleY); in GetBackdrop()
1950 CFX_Point origin(FXSYS_round(matrix.e), FXSYS_round(matrix.f)); in ProcessType3Text()
2186 FXSYS_round(255 * (bStroke ? pPageObj->m_GeneralState.GetStrokeAlpha() in DrawShadingPattern()
[all …]
Dcpdf_type3glyphs.cpp30 int new_pos = FXSYS_round(pos); in _AdjustBlue()
/external/pdfium/xfa/fgas/layout/
Dcfx_break.cpp87 int32_t iFontSize = FXSYS_round(fFontSize * 20.0f); in SetFontSize()
124 m_iTabWidth = std::max(FXSYS_round(fTabWidth * 20000.0f), kMinimumTabWidth); in SetTabWidth()
147 m_iTolerance = FXSYS_round(fTolerance * 20000.0f); in SetLineBreakTolerance()
151 m_iCharSpace = FXSYS_round(fCharSpace * 20000.0f); in SetCharSpace()
158 m_iLineStart = FXSYS_round(fLineStart * 20000.0f); in SetLineBoundary()
159 m_iLineWidth = FXSYS_round(fLineEnd * 20000.0f); in SetLineBoundary()
Dcfx_txtbreak.cpp36 m_iLineWidth = FXSYS_round(fLineWidth * 20000.0f); in SetLineWidth()
47 m_iCombWidth = FXSYS_round(fCombWidth * 20000.0f); in SetCombWidth()
659 int32_t iFontSize = FXSYS_round(fFontSize * 20.0f); in GetDisplayPos()
910 int32_t iFontSize = FXSYS_round(fFontSize * 20.0f); in GetCharRects()
Dcfx_rtfbreak.cpp29 int32_t iLinePos = FXSYS_round(fLinePos * 20000.0f); in SetLineStartPos()
37 std::min(FXSYS_round(fTabPos * 20000.0f) + m_iLineStart, m_iLineWidth); in AddPositionedTab()
677 int32_t iFontSize = FXSYS_round(fFontSize * 20.0f); in GetDisplayPos()
/external/pdfium/xfa/fxgraphics/
Dcxfa_graphics.cpp223 FX_RECT(FXSYS_round(rect.left), FXSYS_round(rect.top), in SetClipRect()
224 FXSYS_round(rect.right()), FXSYS_round(rect.bottom()))); in SetClipRect()
288 FX_RECT rect(FXSYS_round(rectf.left), FXSYS_round(rectf.top), in FillPathWithPattern()
289 FXSYS_round(rectf.right), FXSYS_round(rectf.bottom)); in FillPathWithPattern()
/external/pdfium/core/fpdfdoc/
Dcpdf_bookmark.cpp33 int r = FXSYS_round(pColor->GetNumberAt(0) * 255); in GetColorRef()
34 int g = FXSYS_round(pColor->GetNumberAt(1) * 255); in GetColorRef()
35 int b = FXSYS_round(pColor->GetNumberAt(2) * 255); in GetColorRef()
/external/pdfium/core/fxge/
Dcfx_renderdevice.cpp643 if (!CreateCompatibleBitmap(bitmap, FXSYS_round(rect.Width() * fScaleX), in DrawFillStrokePath()
644 FXSYS_round(rect.Height() * fScaleY))) { in DrawFillStrokePath()
671 FX_RECT src_rect(0, 0, FXSYS_round(rect.Width() * fScaleX), in DrawFillStrokePath()
672 FXSYS_round(rect.Height() * fScaleY)); in DrawFillStrokePath()
741 FXSYS_round(left + pBitmap->GetWidth() / fScaleX), in SetDIBitsWithBlend()
742 FXSYS_round(top + pBitmap->GetHeight() / fScaleY)); in SetDIBitsWithBlend()
750 src_rect.left = FXSYS_round(src_rect.left * fScaleX); in SetDIBitsWithBlend()
751 src_rect.top = FXSYS_round(src_rect.top * fScaleY); in SetDIBitsWithBlend()
752 src_rect.right = FXSYS_round(src_rect.right * fScaleX); in SetDIBitsWithBlend()
753 src_rect.bottom = FXSYS_round(src_rect.bottom * fScaleY); in SetDIBitsWithBlend()
[all …]
/external/pdfium/core/fxge/win32/
Dfx_win32_device.cpp149 dashes[i] = FXSYS_round( in CreatePen()
178 CFX_Point screen(FXSYS_round(pos.x), FXSYS_round(pos.y)); in SetPathToDC()
196 lppt[1].x = FXSYS_round(pos.x); in SetPathToDC()
197 lppt[1].y = FXSYS_round(pos.y); in SetPathToDC()
203 lppt[2].x = FXSYS_round(pos.x); in SetPathToDC()
204 lppt[2].y = FXSYS_round(pos.y); in SetPathToDC()
962 MoveToEx(m_hDC, FXSYS_round(x1), FXSYS_round(y1), nullptr); in DrawLine()
963 LineTo(m_hDC, FXSYS_round(x2), FXSYS_round(y2)); in DrawLine()
1140 MoveToEx(m_hDC, FXSYS_round(ptMoveTo.x), FXSYS_round(ptMoveTo.y), nullptr); in DrawCosmeticLine()
1141 LineTo(m_hDC, FXSYS_round(ptLineTo.x), FXSYS_round(ptLineTo.y)); in DrawCosmeticLine()
Dfx_win32_print.cpp307 spacing[i] = FXSYS_round(fPixelSpacing); in DrawDeviceText()
617 FXSYS_round(m_OriginY) != FXSYS_round(pObject2Device->f * kScaleFactor)) { in DrawDeviceText()
/external/pdfium/fpdfsdk/fpdfxfa/
Dcpdfxfa_page.cpp163 *device_x = FXSYS_round(pos.x); in PageToDevice()
164 *device_y = FXSYS_round(pos.y); in PageToDevice()
/external/pdfium/core/fxcrt/
Dfx_string.cpp199 int scaled = FXSYS_round(d); in FX_ftoa()
205 scaled = FXSYS_round(d * scale); in FX_ftoa()
Dfx_coordinates.cpp198 return FX_RECT(FXSYS_round(left), FXSYS_round(top), FXSYS_round(right), in ToRoundedFxRect()
199 FXSYS_round(bottom)); in ToRoundedFxRect()
Dfx_system.cpp85 int FXSYS_round(float d) { in FXSYS_round() function
Dfx_system.h227 int FXSYS_round(float f);
/external/pdfium/core/fxcodec/codec/
Dfx_codec.cpp1829 ASSERT(c1 == FXSYS_round(c * 255)); in AdobeCMYK_to_sRGB()
1830 ASSERT(m1 == FXSYS_round(m * 255)); in AdobeCMYK_to_sRGB()
1831 ASSERT(y1 == FXSYS_round(y * 255)); in AdobeCMYK_to_sRGB()
1832 ASSERT(k1 == FXSYS_round(k * 255)); in AdobeCMYK_to_sRGB()
Dfx_codec_progress.cpp83 pixel_weights.m_Weights[1] = FXSYS_round( in Calc()
134 FXSYS_round((float)(weight * 65536)); in Calc()
153 int des_col = FXSYS_round((float)des_col_f); in Calc()
175 FXSYS_round((float)(((float)des_col - (float)des_col_index) / in Calc()
185 int src_col = FXSYS_round((float)src_col_f); in Calc()
244 FXSYS_round((float)(end_step - des_row) / (float)length * 65536); in Calc()
/external/pdfium/core/fxge/dib/
Dcfx_imagetransformer.cpp161 : a(FXSYS_round(src.a * kBase)), in CPDF_FixedMatrix()
162 b(FXSYS_round(src.b * kBase)), in CPDF_FixedMatrix()
163 c(FXSYS_round(src.c * kBase)), in CPDF_FixedMatrix()
164 d(FXSYS_round(src.d * kBase)), in CPDF_FixedMatrix()
165 e(FXSYS_round(src.e * kBase)), in CPDF_FixedMatrix()
166 f(FXSYS_round(src.f * kBase)) {} in CPDF_FixedMatrix()
Dcstretchengine.cpp73 FXSYS_round(static_cast<float>( in Calc()
92 int weight = FXSYS_round( in Calc()
199 pixel_weights.m_Weights[idx] = FXSYS_round(weight * 65536); in Calc()
/external/pdfium/xfa/fwl/
Dcfwl_checkbox.cpp125 FXSYS_round(m_pProperties->m_rtWidget.width); in Layout()
127 FXSYS_round(m_pProperties->m_rtWidget.height); in Layout()

12