/external/pdfium/core/src/fxge/agg/agg23/ |
D | agg_curves.h | 23 FX_FLOAT cp[8]; 25 curve4_points(FX_FLOAT x1, FX_FLOAT y1, in curve4_points() 26 FX_FLOAT x2, FX_FLOAT y2, in curve4_points() 27 FX_FLOAT x3, FX_FLOAT y3, in curve4_points() 28 FX_FLOAT x4, FX_FLOAT y4) in curve4_points() 39 void init(FX_FLOAT x1, FX_FLOAT y1, in init() 40 FX_FLOAT x2, FX_FLOAT y2, in init() 41 FX_FLOAT x3, FX_FLOAT y3, in init() 42 FX_FLOAT x4, FX_FLOAT y4) in init() 53 FX_FLOAT operator [] (unsigned i) const [all …]
|
D | agg_math.h | 24 const FX_FLOAT intersection_epsilon = 1.0e-30f; 25 AGG_INLINE FX_FLOAT calc_point_location(FX_FLOAT x1, FX_FLOAT y1, in calc_point_location() 26 FX_FLOAT x2, FX_FLOAT y2, in calc_point_location() 27 FX_FLOAT x, FX_FLOAT y) in calc_point_location() 31 AGG_INLINE FX_FLOAT calc_distance(FX_FLOAT x1, FX_FLOAT y1, FX_FLOAT x2, FX_FLOAT y2) in calc_distance() 33 FX_FLOAT dx = x2 - x1; in calc_distance() 34 FX_FLOAT dy = y2 - y1; in calc_distance() 37 AGG_INLINE FX_FLOAT calc_line_point_distance(FX_FLOAT x1, FX_FLOAT y1, in calc_line_point_distance() 38 FX_FLOAT x2, FX_FLOAT y2, in calc_line_point_distance() 39 FX_FLOAT x, FX_FLOAT y) in calc_line_point_distance() [all …]
|
D | fx_agg_curves.cpp | 26 const FX_FLOAT curve_collinearity_epsilon = 1e-30f; 28 void curve4_div::init(FX_FLOAT x1, FX_FLOAT y1, in init() 29 FX_FLOAT x2, FX_FLOAT y2, in init() 30 FX_FLOAT x3, FX_FLOAT y3, in init() 31 FX_FLOAT x4, FX_FLOAT y4) in init() 39 void curve4_div::recursive_bezier(FX_FLOAT x1, FX_FLOAT y1, in recursive_bezier() 40 FX_FLOAT x2, FX_FLOAT y2, in recursive_bezier() 41 FX_FLOAT x3, FX_FLOAT y3, in recursive_bezier() 42 FX_FLOAT x4, FX_FLOAT y4, in recursive_bezier() 48 FX_FLOAT x12 = (x1 + x2) / 2; in recursive_bezier() [all …]
|
D | agg_path_storage.h | 39 unsigned vertex(FX_FLOAT* x, FX_FLOAT* y) in vertex() 51 unsigned last_vertex(FX_FLOAT* x, FX_FLOAT* y) const; 52 unsigned prev_vertex(FX_FLOAT* x, FX_FLOAT* y) const; 53 void move_to(FX_FLOAT x, FX_FLOAT y); 54 void line_to(FX_FLOAT x, FX_FLOAT y); 55 void curve4(FX_FLOAT x_ctrl1, FX_FLOAT y_ctrl1, 56 FX_FLOAT x_ctrl2, FX_FLOAT y_ctrl2, 57 FX_FLOAT x_to, FX_FLOAT y_to); 63 FX_FLOAT x, y; 78 FX_FLOAT x, y; [all …]
|
D | agg_vcgen_dash.h | 41 void add_dash(FX_FLOAT dash_len, FX_FLOAT gap_len); 42 void dash_start(FX_FLOAT ds); 43 void shorten(FX_FLOAT s) in shorten() 52 void add_vertex(FX_FLOAT x, FX_FLOAT y, unsigned cmd); 54 unsigned vertex(FX_FLOAT* x, FX_FLOAT* y); 58 void calc_dash_start(FX_FLOAT ds); 59 FX_FLOAT m_dashes[max_dashes]; 60 FX_FLOAT m_total_dash_len; 62 FX_FLOAT m_dash_start; 63 FX_FLOAT m_shorten; [all …]
|
D | agg_vcgen_stroke.h | 64 void width(FX_FLOAT w) in width() 68 void miter_limit(FX_FLOAT ml) in miter_limit() 72 void miter_limit_theta(FX_FLOAT t); 73 void inner_miter_limit(FX_FLOAT ml) in inner_miter_limit() 77 void approximation_scale(FX_FLOAT as) in approximation_scale() 81 FX_FLOAT width() const in width() 85 FX_FLOAT miter_limit() const in miter_limit() 89 FX_FLOAT inner_miter_limit() const in inner_miter_limit() 93 FX_FLOAT approximation_scale() const in approximation_scale() 98 void add_vertex(FX_FLOAT x, FX_FLOAT y, unsigned cmd); [all …]
|
D | agg_clip_liang_barsky.h | 38 const FX_FLOAT nearzero = 1e-30f; in clip_liang_barsky() 39 FX_FLOAT deltax = (FX_FLOAT)(x2 - x1); in clip_liang_barsky() 40 FX_FLOAT deltay = (FX_FLOAT)(y2 - y1); in clip_liang_barsky() 45 FX_FLOAT xin, xout; in clip_liang_barsky() 47 xin = (FX_FLOAT)clip_box.x1; in clip_liang_barsky() 48 xout = (FX_FLOAT)clip_box.x2; in clip_liang_barsky() 50 xin = (FX_FLOAT)clip_box.x2; in clip_liang_barsky() 51 xout = (FX_FLOAT)clip_box.x1; in clip_liang_barsky() 53 FX_FLOAT tinx = FXSYS_Div(xin - x1, deltax); in clip_liang_barsky() 57 FX_FLOAT yin, yout; in clip_liang_barsky() [all …]
|
D | agg_math_stroke.h | 44 const FX_FLOAT stroke_theta = 1.0f / 1000.0f; 47 FX_FLOAT x, FX_FLOAT y, in stroke_calc_arc() 48 FX_FLOAT dx1, FX_FLOAT dy1, in stroke_calc_arc() 49 FX_FLOAT dx2, FX_FLOAT dy2, in stroke_calc_arc() 50 FX_FLOAT width, in stroke_calc_arc() 51 FX_FLOAT approximation_scale) in stroke_calc_arc() 54 FX_FLOAT a1 = FXSYS_atan2(dy1, dx1); in stroke_calc_arc() 55 FX_FLOAT a2 = FXSYS_atan2(dy2, dx2); in stroke_calc_arc() 56 FX_FLOAT da = a1 - a2; in stroke_calc_arc() 93 FX_FLOAT dx1, FX_FLOAT dy1, in stroke_calc_miter() [all …]
|
D | fx_agg_path_storage.cpp | 33 FX_FLOAT** coord_blk = m_coord_blocks + m_total_blocks - 1; in ~path_storage() 53 FX_FLOAT** new_coords = in allocate_block() 54 FX_Alloc2D(FX_FLOAT*, m_max_blocks + block_pool, 2); in allocate_block() 60 m_max_blocks * sizeof(FX_FLOAT*)); in allocate_block() 71 FX_Alloc( FX_FLOAT, block_size * 2 + in allocate_block() 73 (sizeof(FX_FLOAT) / sizeof(unsigned char))); in allocate_block() 82 void path_storage::curve4(FX_FLOAT x_ctrl1, FX_FLOAT y_ctrl1, in curve4() 83 FX_FLOAT x_ctrl2, FX_FLOAT y_ctrl2, in curve4() 84 FX_FLOAT x_to, FX_FLOAT y_to) in curve4()
|
/external/pdfium/core/src/fpdftext/ |
D | txtproc.h | 13 FX_FLOAT m_AvgPos; 21 FX_FLOAT m_Left; 22 FX_FLOAT m_Right; 23 FX_FLOAT m_SpaceWidth; 24 FX_FLOAT m_Top; 25 FX_FLOAT m_Bottom; 26 FX_FLOAT m_FontSizeV; 34 void InsertTextBox(FX_FLOAT leftx, FX_FLOAT rightx, FX_FLOAT topy, FX_FLOAT bottomy, 35 FX_FLOAT spacew, FX_FLOAT fontsize_v, const CFX_WideString& str); 36 FX_BOOL GetWidth(FX_FLOAT& leftx, FX_FLOAT& rightx); [all …]
|
/external/pdfium/core/src/fpdfapi/fpdf_page/ |
D | fpdf_page_colors.cpp | 12 void sRGB_to_AdobeCMYK(FX_FLOAT R, FX_FLOAT G, FX_FLOAT B, FX_FLOAT& c, FX_FLOAT& m, FX_FLOAT& y, F… in sRGB_to_AdobeCMYK() 36 FX_BOOL CPDF_DeviceCS::GetRGB(FX_FLOAT* pBuf, FX_FLOAT& R, FX_FLOAT& G, FX_FLOAT& B) const in GetRGB() 69 FX_FLOAT k = pBuf[3]; in GetRGB() 81 FX_BOOL CPDF_DeviceCS::v_GetCMYK(FX_FLOAT* pBuf, FX_FLOAT& c, FX_FLOAT& m, FX_FLOAT& y, FX_FLOAT& k… in v_GetCMYK() 92 FX_BOOL CPDF_DeviceCS::SetRGB(FX_FLOAT* pBuf, FX_FLOAT R, FX_FLOAT G, FX_FLOAT B) const in SetRGB() 112 FX_BOOL CPDF_DeviceCS::v_SetCMYK(FX_FLOAT* pBuf, FX_FLOAT c, FX_FLOAT m, FX_FLOAT y, FX_FLOAT k) co… in v_SetCMYK() 211 static FX_FLOAT RGB_Conversion(FX_FLOAT colorComponent) in RGB_Conversion() 232 static void XYZ_to_sRGB(FX_FLOAT X, FX_FLOAT Y, FX_FLOAT Z, FX_FLOAT& R, FX_FLOAT& G, FX_FLOAT& B) in XYZ_to_sRGB() 234 FX_FLOAT R1 = 3.2410f * X - 1.5374f * Y - 0.4986f * Z; in XYZ_to_sRGB() 235 FX_FLOAT G1 = -0.9692f * X + 1.8760f * Y + 0.0416f * Z; in XYZ_to_sRGB() [all …]
|
D | pageint.h | 109 FX_FLOAT m_Float; 152 FX_FLOAT GetNumber(FX_DWORD index); 153 FX_FLOAT GetNumber16(FX_DWORD index); 170 FX_FLOAT m_DefFontSize; 171 …void AddTextObject(CFX_ByteString* pText, FX_FLOAT fInitKerning, FX_FLOAT* pKerning, int count); 173 void ConvertUserSpace(FX_FLOAT& x, FX_FLOAT& y); 174 void ConvertTextSpace(FX_FLOAT& x, FX_FLOAT& y); 182 FX_FLOAT m_PathStartX, m_PathStartY; 183 FX_FLOAT m_PathCurrentX, m_PathCurrentY; 185 void AddPathPoint(FX_FLOAT x, FX_FLOAT y, int flag); [all …]
|
D | fpdf_page_func.cpp | 48 void Push(FX_FLOAT value); 51 Push((FX_FLOAT)value); in Push() 53 FX_FLOAT Pop(); 59 FX_FLOAT m_Stack[PSENGINE_STACKSIZE]; 71 FX_Free((FX_FLOAT*)m_Operators[i + 1]); in ~CPDF_PSProc() 84 pEngine->Push(*(FX_FLOAT*)m_Operators[i + 1]); in Execute() 116 void CPDF_PSEngine::Push(FX_FLOAT v) in Push() 123 FX_FLOAT CPDF_PSEngine::Pop() in Pop() 184 FX_FLOAT* pd = FX_Alloc(FX_FLOAT, 1); in Parse() 196 FX_FLOAT d1, d2; in DoOperator() [all …]
|
/external/pdfium/fpdfsdk/include/pdfwindow/ |
D | PWL_ScrollBar.h | 21 FX_FLOAT fContentMin; 22 FX_FLOAT fContentMax; 23 FX_FLOAT fPlateWidth; 24 FX_FLOAT fBigStep; 25 FX_FLOAT fSmallStep; 67 PWL_FLOATRANGE(FX_FLOAT min,FX_FLOAT max); 69 void Set(FX_FLOAT min,FX_FLOAT max); 70 FX_BOOL In(FX_FLOAT x) const; 71 FX_FLOAT GetWidth() const; 73 FX_FLOAT fMin,fMax; [all …]
|
D | PWL_Utils.h | 22 #define PWL_WIN2PDF(color) ((FX_FLOAT)((FX_FLOAT)color/255.0f)) 77 CPWL_Point(FX_FLOAT fx, FX_FLOAT fy) : CPDF_Point(fx,fy) {} in CPWL_Point() 110 static CPDF_Rect InflateRect(const CPDF_Rect& rcRect, FX_FLOAT fSize); 111 static CPDF_Rect DeflateRect(const CPDF_Rect& rcRect, FX_FLOAT fSize); 114 static CPDF_Rect ScaleRect(const CPDF_Rect& rcRect,FX_FLOAT fScale); 117 static CPWL_Color SubstractColor(const CPWL_Color & sColor,FX_FLOAT fColorSub); 118 static CPWL_Color DevideColor(const CPWL_Color & sColor,FX_FLOAT fColorDevide); 120 static CPDF_Rect OffsetRect(const CPDF_Rect & rect,FX_FLOAT x,FX_FLOAT y); 121 static CPDF_Point OffsetPoint(const CPDF_Point & point,FX_FLOAT x,FX_FLOAT y); 127 static CFX_ByteString GetBorderAppStream(const CPDF_Rect & rect, FX_FLOAT fWidth, [all …]
|
D | PWL_Icon.h | 21 virtual void GetScale(FX_FLOAT & fHScale,FX_FLOAT & fVScale); 22 virtual void GetImageOffset(FX_FLOAT & x,FX_FLOAT & y); 27 void GetImageSize(FX_FLOAT & fWidth,FX_FLOAT & fHeight); 45 virtual void GetScale(FX_FLOAT & fHScale,FX_FLOAT & fVScale); 46 virtual void GetImageOffset(FX_FLOAT & x,FX_FLOAT & y); 50 void GetIconPosition(FX_FLOAT & fLeft, FX_FLOAT & fBottom);
|
D | PWL_ListBox.h | 24 void IOnSetScrollInfoX(FX_FLOAT fPlateMin, FX_FLOAT fPlateMax, in IOnSetScrollInfoX() 25 FX_FLOAT fContentMin, FX_FLOAT fContentMax, in IOnSetScrollInfoX() 26 FX_FLOAT fSmallStep, FX_FLOAT fBigStep){} in IOnSetScrollInfoX() 27 void IOnSetScrollInfoY(FX_FLOAT fPlateMin, FX_FLOAT fPlateMax, 28 FX_FLOAT fContentMin, FX_FLOAT fContentMax, 29 FX_FLOAT fSmallStep, FX_FLOAT fBigStep); 30 void IOnSetScrollPosX(FX_FLOAT fx){} in IOnSetScrollPosX() 31 void IOnSetScrollPosY(FX_FLOAT fy); 65 virtual void SetFontSize(FX_FLOAT fFontSize); 66 virtual FX_FLOAT GetFontSize() const; [all …]
|
/external/pdfium/core/src/fxcrt/ |
D | fx_basic_coords.cpp | 45 FX_BOOL GetIntersection(FX_FLOAT low1, FX_FLOAT high1, FX_FLOAT low2, FX_FLOAT high2, in GetIntersection() 46 FX_FLOAT& interlow, FX_FLOAT& interhigh) in GetIntersection() 55 extern "C" int FXSYS_round(FX_FLOAT d) in FXSYS_round() 57 if (d < (FX_FLOAT)INT_MIN) { in FXSYS_round() 60 if (d > (FX_FLOAT)INT_MAX) { in FXSYS_round() 68 left = (FX_FLOAT)(rect.left); in CFX_FloatRect() 69 right = (FX_FLOAT)(rect.right); in CFX_FloatRect() 70 bottom = (FX_FLOAT)(rect.top); in CFX_FloatRect() 71 top = (FX_FLOAT)(rect.bottom); in CFX_FloatRect() 75 FX_FLOAT temp; in Normalize() [all …]
|
/external/pdfium/core/src/reflow/ |
D | reflowedpage.h | 35 …void Init(FX_FLOAT TopIndent, FX_FLOAT fWidth, FX_FLOAT fHeight, CPDF_ReflowedPage* pReflowedPage,… 42 void ProcessElement(IPDF_LayoutElement* pElement, FX_FLOAT reflowWidth); 43 FX_FLOAT GetElmWidth(IPDF_LayoutElement* pElement); 45 void ProcessTable(FX_FLOAT dx); 46 void ProcessObjs(IPDF_LayoutElement* pElement, FX_FLOAT reflowWidth); 47 void ProcessObject(CPDF_PageObject* pObj, FX_FLOAT reflowWidth, CFX_AffineMatrix objMatrix); 48 void ProcessTextObject(CPDF_TextObject *pObj, FX_FLOAT reflowWidth, CFX_AffineMatrix objMatrix); 49 void ProcessPathObject(CPDF_PathObject *pObj, FX_FLOAT reflowWidth); 50 …void ProcessUnitaryObjs(CPDF_PageObjects *pObjs, FX_FLOAT reflowWidth, CFX_AffineMatrix objMatrix); 60 …CRF_CharState* GetCharState(CPDF_TextObject* pObj, CPDF_Font* pFont, FX_FLOAT fHeight, FX_ARGB co… [all …]
|
D | reflowedtextpage.h | 42 int GetIndexAtPos(CPDF_Point point, FX_FLOAT xTorelance, FX_FLOAT yTorelance) const; 44 int GetIndexAtPos(FX_FLOAT x, FX_FLOAT y, FX_FLOAT xTorelance, FX_FLOAT yTorelance) const; 55 …virtual void GetRect(int rectIndex, FX_FLOAT& left, FX_FLOAT& top, FX_FLOAT& right, FX_FLOAT &bo… 59 …virtual int CountBoundedSegments(FX_FLOAT left, FX_FLOAT top, FX_FLOAT right, FX_FLOAT bottom, …
|
/external/pdfium/core/include/fxcrt/ |
D | fx_coordinates.h | 117 typedef CFX_PSVTemplate<FX_FLOAT> CFX_PointF; 119 typedef CFX_PSVTemplate<FX_FLOAT> CFX_SizeF; 123 typedef CFX_PSVTemplate<FX_FLOAT> * FX_LPPOINTF; 125 typedef CFX_PSVTemplate<FX_FLOAT> const * FX_LPCPOINTF; 162 FX_FLOAT fLen = FXSYS_sqrt(FXT_PSV::x * FXT_PSV::x + FXT_PSV::y * FXT_PSV::y); in Normalize() 203 void Rotate(FX_FLOAT fRadian) in Rotate() 205 FX_FLOAT xx = (FX_FLOAT)FXT_PSV::x; in Rotate() 206 FX_FLOAT yy = (FX_FLOAT)FXT_PSV::y; in Rotate() 207 FX_FLOAT cosValue = FXSYS_cos(fRadian); in Rotate() 208 FX_FLOAT sinValue = FXSYS_sin(fRadian); in Rotate() [all …]
|
/external/pdfium/core/include/fpdfapi/ |
D | fpdf_pageobj.h | 51 FX_FLOAT GetPointX(int index) in GetPointX() 56 FX_FLOAT GetPointY(int index) in GetPointY() 75 CFX_FloatRect GetBoundingBox(FX_FLOAT line_width, FX_FLOAT miter_limit) const in GetBoundingBox() 90 void AppendRect(FX_FLOAT left, FX_FLOAT bottom, FX_FLOAT right, FX_FLOAT top) in AppendRect() 194 void SetFillColor(CPDF_ColorSpace* pCS, FX_FLOAT* pValue, int nValues); 196 void SetStrokeColor(CPDF_ColorSpace* pCS, FX_FLOAT* pValue, int nValues); 198 void SetFillPattern(CPDF_Pattern* pattern, FX_FLOAT* pValue, int nValues); 200 void SetStrokePattern(CPDF_Pattern* pattern, FX_FLOAT* pValue, int nValues); 202 …void SetColor(CPDF_Color& color, FX_DWORD& rgb, CPDF_ColorSpace* pCS, FX_FLOAT* pValue, int nVa… 223 FX_FLOAT m_FontSize; [all …]
|
/external/pdfium/fpdfsdk/src/pdfwindow/ |
D | PWL_Icon.cpp | 31 FX_FLOAT fHScale = 1.0f; in GetImageAppStream() 32 FX_FLOAT fVScale = 1.0f; in GetImageAppStream() 35 FX_FLOAT fx = 0.0f; in GetImageAppStream() 36 FX_FLOAT fy = 0.0f; in GetImageAppStream() 64 void CPWL_Image::GetImageSize(FX_FLOAT & fWidth,FX_FLOAT & fHeight) in GetImageSize() 117 void CPWL_Image::GetScale(FX_FLOAT & fHScale,FX_FLOAT & fVScale) in GetScale() 124 void CPWL_Image::GetImageOffset(FX_FLOAT & x,FX_FLOAT & y) in GetImageOffset() 156 void CPWL_Icon::GetIconPosition(FX_FLOAT & fLeft, FX_FLOAT & fBottom) in GetIconPosition() 186 void CPWL_Icon::GetScale(FX_FLOAT & fHScale,FX_FLOAT & fVScale) in GetScale() 193 FX_FLOAT fImageWidth,fImageHeight; in GetScale() [all …]
|
/external/pdfium/core/src/fpdfdoc/ |
D | pdf_vt.h | 39 CPVT_Size(FX_FLOAT x, FX_FLOAT y) in CPVT_Size() 44 FX_FLOAT x, y; 53 CPVT_FloatRect(FX_FLOAT left, FX_FLOAT top, in CPVT_FloatRect() 54 FX_FLOAT right, FX_FLOAT bottom) in CPVT_FloatRect() 72 FX_FLOAT Height() const in Height() 133 FX_FLOAT fLineX; 134 FX_FLOAT fLineY; 135 FX_FLOAT fLineWidth; 136 FX_FLOAT fLineAscent; 137 FX_FLOAT fLineDescent; [all …]
|
/external/pdfium/core/include/fpdftext/ |
D | fpdf_text.h | 40 FX_FLOAT m_FontSize; 41 FX_FLOAT m_OriginX; 42 FX_FLOAT m_OriginY; 99 …virtual int GetIndexAtPos(CPDF_Point point, FX_FLOAT xTorelance, FX_FLOAT yTorelance) const = 0; 101 …virtual int GetIndexAtPos(FX_FLOAT x, FX_FLOAT y, FX_FLOAT xTorelance, FX_FLOAT yTorelance) con… 112 …virtual void GetRect(int rectIndex, FX_FLOAT& left, FX_FLOAT& top, FX_FLOAT& right, FX_FLOAT &bo… 118 …virtual int CountBoundedSegments(FX_FLOAT left, FX_FLOAT top, FX_FLOAT right, FX_FLOAT bottom, …
|