Home
last modified time | relevance | path

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

12

/external/pdfium/core/src/fxge/dib/
Ddib_int.h23 a = FXSYS_round(src.a * base); in CPDF_FixedMatrix()
24 b = FXSYS_round(src.b * base); in CPDF_FixedMatrix()
25 c = FXSYS_round(src.c * base); in CPDF_FixedMatrix()
26 d = FXSYS_round(src.d * base); in CPDF_FixedMatrix()
27 e = FXSYS_round(src.e * base); in CPDF_FixedMatrix()
28 f = FXSYS_round(src.f * base); in CPDF_FixedMatrix()
Dfx_dib_engine.cpp59 pixel_weights.m_Weights[1] = FXSYS_round( in Calc()
84 weight = FXSYS_round( in Calc()
210 FXSYS_round((FX_FLOAT)(weight * 65536)); in Calc()
/external/pdfium/core/src/fxge/ge/
Dfx_ge_device.cpp246 if (!CreateCompatibleBitmap(&bitmap, FXSYS_round(rect.Width() * fScaleX), in DrawPath()
247 FXSYS_round(rect.Height() * fScaleY))) { in DrawPath()
272 FX_RECT src_rect(0, 0, FXSYS_round(rect.Width() * fScaleX), in DrawPath()
273 FXSYS_round(rect.Height() * fScaleY)); in DrawPath()
368 FXSYS_round(left + pBitmap->GetWidth() / fScaleX), in SetDIBits()
369 FXSYS_round(top + pBitmap->GetHeight() / fScaleY)); in SetDIBits()
377 src_rect.left = FXSYS_round(src_rect.left * fScaleX); in SetDIBits()
378 src_rect.top = FXSYS_round(src_rect.top * fScaleY); in SetDIBits()
379 src_rect.right = FXSYS_round(src_rect.right * fScaleX); in SetDIBits()
380 src_rect.bottom = FXSYS_round(src_rect.bottom * fScaleY); in SetDIBits()
[all …]
Dfx_ge_text.cpp287 glyph.m_OriginX = FXSYS_round(glyph.m_fOriginX); in DrawNormalText()
291 glyph.m_OriginY = FXSYS_round(glyph.m_fOriginY); in DrawNormalText()
316 FX_RECT bmp_rect(FXSYS_round((FX_FLOAT)(bmp_rect1.left) / scale_x), in DrawNormalText()
317 FXSYS_round((FX_FLOAT)(bmp_rect1.top) / scale_y), in DrawNormalText()
318 FXSYS_round((FX_FLOAT)bmp_rect1.right / scale_x), in DrawNormalText()
319 FXSYS_round((FX_FLOAT)bmp_rect1.bottom / scale_y)); in DrawNormalText()
325 int pixel_width = FXSYS_round(bmp_rect.Width() * scale_x); in DrawNormalText()
326 int pixel_height = FXSYS_round(bmp_rect.Height() * scale_y); in DrawNormalText()
327 int pixel_left = FXSYS_round(bmp_rect.left * scale_x); in DrawNormalText()
328 int pixel_top = FXSYS_round(bmp_rect.top * scale_y); in DrawNormalText()
/external/pdfium/xfa/src/fdp/src/fde/
Dfde_gedevice.cpp434 FX_RECT rect(FXSYS_round(rectf.left), FXSYS_round(rectf.top), in FillHatchPath()
435 FXSYS_round(rectf.right), FXSYS_round(rectf.bottom)); in FillHatchPath()
480 FX_RECT rect(FXSYS_round(rectf.left), FXSYS_round(rectf.top), in WrapTexture()
481 FXSYS_round(rectf.right), FXSYS_round(rectf.bottom)); in WrapTexture()
560 bmp.Create(FXSYS_round(FXSYS_fabs(fDiagonal.x)), in FillLinearGradientPath()
561 FXSYS_round(FXSYS_fabs(fDiagonal.y)), FXDIB_Argb); in FillLinearGradientPath()
565 int32_t iSteps = FXSYS_round(FXSYS_ceil(fSteps)); in FillLinearGradientPath()
567 cr0 = ArgbEncode(FXSYS_round(a0), FXSYS_round(r0), FXSYS_round(g0), in FillLinearGradientPath()
568 FXSYS_round(b0)); in FillLinearGradientPath()
Dfde_gdidevice.cpp213 m_pGraphics->DrawImage(&bmp, (FXSYS_round(fx) + gm.gmptGlyphOrigin.x), in DrawString()
214 (FXSYS_round(fy) - gm.gmptGlyphOrigin.y)); in DrawString()
/external/pdfium/core/src/fxcrt/
Dfx_basic_coords.cpp58 extern "C" int FXSYS_round(FX_FLOAT d) { in FXSYS_round() function
425 return FXSYS_round(FXSYS_sqrt(fx * fx + fy * fy)); in TransformXDistance()
433 return FXSYS_round(FXSYS_sqrt(fx * fx + fy * fy)); in TransformYDistance()
441 return FXSYS_round(FXSYS_sqrt(fx * fx + fy * fy)); in TransformDistance()
454 v.x = FXSYS_round(fx); in TransformVector()
455 v.y = FXSYS_round(fy); in TransformVector()
463 points->x = FXSYS_round(fx); in TransformPoints()
464 points->y = FXSYS_round(fy); in TransformPoints()
486 x = FXSYS_round(fx); in TransformPoint()
487 y = FXSYS_round(fy); in TransformPoint()
[all …]
Dfx_basic_bstring.cpp1058 int scaled = FXSYS_round(d); in FX_ftoa()
1064 scaled = FXSYS_round(d * scale); in FX_ftoa()
/external/pdfium/core/src/fpdfdoc/
Ddoc_bookmark.cpp39 int r = FXSYS_round(pColor->GetNumber(0) * 255); in GetColorRef()
40 int g = FXSYS_round(pColor->GetNumber(1) * 255); in GetColorRef()
41 int b = FXSYS_round(pColor->GetNumber(2) * 255); in GetColorRef()
/external/pdfium/xfa/src/fxgraphics/src/
Dfx_graphics.cpp445 FX_RECT r(FXSYS_round(rect.left), FXSYS_round(rect.top), in SetClipRect()
446 FXSYS_round(rect.right()), FXSYS_round(rect.bottom())); in SetClipRect()
807 bmp.TransferBitmap(FXSYS_round(r.left), FXSYS_round(r.top), in RenderDeviceDrawImage()
808 FXSYS_round(r.Width()), FXSYS_round(r.Height()), bmp2, in RenderDeviceDrawImage()
809 FXSYS_round(r.left - left), FXSYS_round(r.top - top)); in RenderDeviceDrawImage()
845 bitmap->CompositeBitmap(FXSYS_round(r.left), FXSYS_round(r.top), in RenderDeviceStretchImage()
846 FXSYS_round(r.Width()), FXSYS_round(r.Height()), in RenderDeviceStretchImage()
847 bmp3, FXSYS_round(r.left - left), in RenderDeviceStretchImage()
848 FXSYS_round(r.top - top)); in RenderDeviceStretchImage()
908 int32_t xStep = FXSYS_round(pattern->_x1Step); in FillPathWithPattern()
[all …]
/external/pdfium/core/src/fpdfapi/fpdf_render/
Dfpdf_render_loadimage.cpp774 MatteColor = FXARGB_MAKE(0, FXSYS_round(R * 255), FXSYS_round(G * 255), in LoadMask()
775 FXSYS_round(B * 255)); in LoadMask()
799 m_MatteColor = FXARGB_MAKE(0, FXSYS_round(R * 255), FXSYS_round(G * 255), in StratLoadMask()
800 FXSYS_round(B * 255)); in StratLoadMask()
878 FX_ARGB argb0 = ArgbEncode(255, FXSYS_round(R * 255), FXSYS_round(G * 255), in LoadPalette()
879 FXSYS_round(B * 255)); in LoadPalette()
884 FX_ARGB argb1 = ArgbEncode(255, FXSYS_round(R * 255), FXSYS_round(G * 255), in LoadPalette()
885 FXSYS_round(B * 255)); in LoadPalette()
919 SetPaletteArgb(i, ArgbEncode(255, FXSYS_round(R * 255), in LoadPalette()
920 FXSYS_round(G * 255), FXSYS_round(B * 255))); in LoadPalette()
Dfpdf_render_text.cpp26 4, FXSYS_round(pMatrix->a * 10000), FXSYS_round(pMatrix->b * 10000), in LoadGlyph()
27 FXSYS_round(pMatrix->c * 10000), FXSYS_round(pMatrix->d * 10000)); in LoadGlyph()
63 int new_pos = FXSYS_round(pos); in _AdjustBlue()
153 (int)(FXSYS_round(image_matrix.a) * retinaScaleX), in RenderGlyph()
159 left = FXSYS_round(image_matrix.e + image_matrix.a); in RenderGlyph()
161 left = FXSYS_round(image_matrix.e); in RenderGlyph()
458 int origin_x = FXSYS_round(matrix.e); in ProcessType3Text()
459 int origin_y = FXSYS_round(matrix.f); in ProcessType3Text()
Dfpdf_render_pattern.cpp78 FXARGB_TODIB(FXARGB_MAKE(alpha, FXSYS_round(R * 255), in DrawAxialShading()
79 FXSYS_round(G * 255), FXSYS_round(B * 255))); in DrawAxialShading()
165 FXARGB_TODIB(FXARGB_MAKE(alpha, FXSYS_round(R * 255), in DrawRadialShading()
166 FXSYS_round(G * 255), FXSYS_round(B * 255))); in DrawRadialShading()
1090 int orig_x = FXSYS_round(mtPattern2Device.e); in DrawTilingPattern()
1091 int orig_y = FXSYS_round(mtPattern2Device.f); in DrawTilingPattern()
1144 start_x = FXSYS_round(mtPattern2Device.e) + col * width - clip_box.left; in DrawTilingPattern()
1145 start_y = FXSYS_round(mtPattern2Device.f) + row * height - clip_box.top; in DrawTilingPattern()
1150 start_x = FXSYS_round(orig_x + left_offset) - clip_box.left; in DrawTilingPattern()
1151 start_y = FXSYS_round(orig_y + top_offset) - clip_box.top; in DrawTilingPattern()
Dfpdf_render.cpp811 int width = FXSYS_round((FX_FLOAT)rect.Width() * scaleX); in ProcessTransparency()
812 int height = FXSYS_round((FX_FLOAT)rect.Height() * scaleY); in ProcessTransparency()
897 int width = FXSYS_round(bbox.Width() * scaleX); in GetBackdrop()
898 int height = FXSYS_round(bbox.Height() * scaleY); in GetBackdrop()
1225 int o = FXSYS_round(output[0] * 255); in GetTransferFunc()
1235 int o = FXSYS_round(output[0] * 255); in GetTransferFunc()
/external/pdfium/core/src/fxge/win32/
Dfx_win32_device.cpp739 pDash[i] = FXSYS_round( in _CreatePen()
769 int screen_x = FXSYS_round(posx), screen_y = FXSYS_round(posy); in _SetPathToDC()
788 lppt[1].x = FXSYS_round(posx); in _SetPathToDC()
789 lppt[1].y = FXSYS_round(posy); in _SetPathToDC()
795 lppt[2].x = FXSYS_round(posx); in _SetPathToDC()
796 lppt[2].y = FXSYS_round(posy); in _SetPathToDC()
835 MoveToEx(m_hDC, FXSYS_round(x1), FXSYS_round(y1), NULL); in DrawLine()
836 LineTo(m_hDC, FXSYS_round(x2), FXSYS_round(y2)); in DrawLine()
1027 MoveToEx(m_hDC, FXSYS_round(x1), FXSYS_round(y1), NULL); in DrawCosmeticLine()
1028 LineTo(m_hDC, FXSYS_round(x2), FXSYS_round(y2)); in DrawCosmeticLine()
Dfx_win32_gdipext.cpp1207 pGraphics, pPen, FXSYS_round(points[v1].X), FXSYS_round(points[v1].Y), in DrawPath()
1208 FXSYS_round(points[v2].X), FXSYS_round(points[v2].Y)); in DrawPath()
/external/pdfium/xfa/src/fgas/src/layout/
Dfx_rtfbreak.cpp68 m_iBoundaryStart = FXSYS_round(fLineStart * 20000.0f); in SetLineBoundary()
69 m_iBoundaryEnd = FXSYS_round(fLineEnd * 20000.0f); in SetLineBoundary()
74 int32_t iLinePos = FXSYS_round(fLinePos * 20000.0f); in SetLineStartPos()
112 int32_t iFontSize = FXSYS_round(fFontSize * 20.0f); in SetFontSize()
128 m_iTabWidth = FXSYS_round(fTabWidth * 20000.0f); in SetTabWidth()
132 int32_t iTabPos = FXSYS_round(fTabPos * 20000.0f) + m_iBoundaryStart; in AddPositionedTab()
160 iTabPos = FXSYS_round(tabs[i] * 20000.0f) + m_iBoundaryStart; in SetPositionedTabs()
195 m_iTolerance = FXSYS_round(fTolerance * 20000.0f); in SetLineBreakTolerance()
232 m_iCharSpace = FXSYS_round(fCharSpace * 20000.0f); in SetCharSpace()
236 m_iWordSpace = FXSYS_round(fWordSpace * 20000.0f); in SetWordSpace()
[all …]
Dfx_textbreak.cpp74 m_iLineWidth = FXSYS_round(fLineWidth * 20000.0f); in SetLineWidth()
78 int32_t iLinePos = FXSYS_round(fLinePos * 20000.0f); in SetLinePos()
117 int32_t iFontSize = FXSYS_round(fFontSize * 20.0f); in SetFontSize()
130 m_iTabWidth = FXSYS_round(fTabWidth * 20000.0f); in SetTabWidth()
155 m_iTolerance = FXSYS_round(fTolerance * 20000.0f); in SetLineBreakTolerance()
202 m_iCombWidth = FXSYS_round(fCombWidth * 20000.0f); in SetCombWidth()
245 m_iCharSpace = FXSYS_round(fCharSpace * 20000.0f); in SetCharSpace()
1191 int32_t iFontSize = FXSYS_round(fFontSize * 20.0f); in GetDisplayPos()
1566 int32_t iFontSize = FXSYS_round(fFontSize * 20.0f); in GetCharRects()
/external/pdfium/fpdfsdk/src/fpdfxfa/
Dfpdfxfa_page.cpp222 *device_x = FXSYS_round(device_x_f); in PageToDevice()
223 *device_y = FXSYS_round(device_y_f); in PageToDevice()
/external/pdfium/core/src/fxcodec/codec/
Dfx_codec_icc.cpp1971 uint8_t c1 = FXSYS_round(c * 255); in AdobeCMYK_to_sRGB()
1972 uint8_t m1 = FXSYS_round(m * 255); in AdobeCMYK_to_sRGB()
1973 uint8_t y1 = FXSYS_round(y * 255); in AdobeCMYK_to_sRGB()
1974 uint8_t k1 = FXSYS_round(k * 255); in AdobeCMYK_to_sRGB()
Dfx_codec_progress.cpp52 pixel_weights.m_Weights[1] = FXSYS_round( in Calc()
110 FXSYS_round((FX_FLOAT)(weight * 65536)); in Calc()
130 int des_col = FXSYS_round((FX_FLOAT)des_col_f); in Calc()
154 bInterpol ? FXSYS_round((FX_FLOAT)( in Calc()
166 int src_col = FXSYS_round((FX_FLOAT)src_col_f); in Calc()
219 pWeight->m_Weights[0] = FXSYS_round((FX_FLOAT)(end_step - des_row) / in Calc()
/external/pdfium/core/src/fpdfapi/fpdf_page/
Dfpdf_page_parser_old.cpp1057 FXSYS_round(m_pParser->GetType3Data()[0] * 1000); in Continue()
1059 FXSYS_round(m_pParser->GetType3Data()[2] * 1000); in Continue()
1061 FXSYS_round(m_pParser->GetType3Data()[3] * 1000); in Continue()
1063 FXSYS_round(m_pParser->GetType3Data()[4] * 1000); in Continue()
1065 FXSYS_round(m_pParser->GetType3Data()[5] * 1000); in Continue()
/external/pdfium/core/src/fpdfapi/fpdf_font/
Dfpdf_font.cpp1636 FXSYS_round(FXSYS_Mul(pWidthArray->GetNumber(i), xscale) * 1000); in _Load()
1699 rcBBox.left = FXSYS_round(char_rect.left * 1000); in LoadChar()
1700 rcBBox.right = FXSYS_round(char_rect.right * 1000); in LoadChar()
1701 rcBBox.top = FXSYS_round(char_rect.top * 1000); in LoadChar()
1702 rcBBox.bottom = FXSYS_round(char_rect.bottom * 1000); in LoadChar()
/external/pdfium/core/include/fxcrt/
Dfx_system.h273 int FXSYS_round(FX_FLOAT f);
/external/pdfium/xfa/src/fdp/src/css/
Dfde_cssdatatable.cpp763 ? FXSYS_round(fValue * 2.55f) in FDE_ParseCSSColor()
764 : FXSYS_round(fValue); in FDE_ParseCSSColor()

12