/external/opencv/cvaux/src/ |
D | cvlines.cpp | 49 int dx = end.x - start.x, dy = end.y - start.y; 63 dy = -dy; 70 i = dy >> 31; 71 dy = (dy ^ i) - i; 74 if( dx > dy ) 84 dy += dy; 87 int mask = (err -= dy) < 0 ? -1 : 0; 101 if( *dst_num <= dy ) 103 *dst_num = dy + 1; 105 err = dy; [all …]
|
/external/skia/gm/ |
D | spritebitmap.cpp | 25 int dx, int dy, SkImageFilter* filter = NULL) { in draw_2_bitmaps() argument 30 SkIntToScalar(dy), in draw_2_bitmaps() 41 canvas->drawSprite(bm, dx, dy, &paint); in draw_2_bitmaps() 52 canvas->drawBitmap(bm, SkIntToScalar(dx), SkIntToScalar(dy), &paint); in draw_2_bitmaps() 79 int dy = 10; in onDraw() local 84 draw_2_bitmaps(canvas, bm, false, dx, dy); in onDraw() 85 dy += bm.height() + 20; in onDraw() 86 draw_2_bitmaps(canvas, bm, false, dx, dy, filter); in onDraw() 87 dy += bm.height() + 20; in onDraw() 88 draw_2_bitmaps(canvas, bm, true, dx, dy); in onDraw() [all …]
|
D | rrect.cpp | 13 typedef void (*InsetProc)(const SkRRect&, SkScalar dx, SkScalar dy, SkRRect*); 15 static void inset0(const SkRRect& src, SkScalar dx, SkScalar dy, SkRRect* dst) { in inset0() argument 18 r.inset(dx, dy); in inset0() 30 radii[i].fY -= dy; in inset0() 35 static void inset1(const SkRRect& src, SkScalar dx, SkScalar dy, SkRRect* dst) { in inset1() argument 38 r.inset(dx, dy); in inset1() 51 static void inset2(const SkRRect& src, SkScalar dx, SkScalar dy, SkRRect* dst) { in inset2() argument 54 r.inset(dx, dy); in inset2() 69 radii[i].fY -= dy; in inset2() 79 static void inset3(const SkRRect& src, SkScalar dx, SkScalar dy, SkRRect* dst) { in inset3() argument [all …]
|
/external/freetype/src/autofit/ |
D | afangles.c | 106 FT_Fixed dy ) 110 FT_Fixed ay = dy; 124 angle = ( AF_ANGLE_PI2 * dy ) / ( ax + ay ); 185 FT_Fixed dy ) in af_angle_atan() argument 191 if ( dy == 0 ) in af_angle_atan() 201 if ( dy < 0 ) in af_angle_atan() 210 dy = -dy; in af_angle_atan() 214 if ( dy < 0 ) in af_angle_atan() 220 dx = -dy; in af_angle_atan() 221 dy = tmp; in af_angle_atan() [all …]
|
/external/chromium_org/third_party/freetype/src/autofit/ |
D | afangles.c | 106 FT_Fixed dy ) 110 FT_Fixed ay = dy; 124 angle = ( AF_ANGLE_PI2 * dy ) / ( ax + ay ); 185 FT_Fixed dy ) in af_angle_atan() argument 191 if ( dy == 0 ) in af_angle_atan() 201 if ( dy < 0 ) in af_angle_atan() 210 dy = -dy; in af_angle_atan() 214 if ( dy < 0 ) in af_angle_atan() 220 dx = -dy; in af_angle_atan() 221 dy = tmp; in af_angle_atan() [all …]
|
/external/chromium_org/third_party/skia/src/core/ |
D | SkBitmap_scroll.cpp | 11 bool SkBitmap::scrollRect(const SkIRect* subset, int dx, int dy, in scrollRect() argument 23 tmp.scrollRect(NULL, dx, dy, inval); in scrollRect() 49 if ((dx | dy) == 0 || width <= 0 || height <= 0) { in scrollRect() 64 r.offset(dx, dy); in scrollRect() 87 if (dy <= 0) { in scrollRect() 88 src -= dy * rowBytes; in scrollRect() 89 height += dy; in scrollRect() 91 dst += dy * rowBytes; in scrollRect() 92 height -= dy; in scrollRect()
|
D | SkEdge.cpp | 75 const int dy = SkEdge_Compute_DY(top, y0); in setLine() local 77 fX = SkFDot6ToFixed(x0 + SkFixedMul(slope, dy)); // + SK_Fixed1/2 in setLine() 116 const int dy = SkEdge_Compute_DY(top, y0); in updateLine() local 118 fX = SkFDot6ToFixed(x0 + SkFixedMul(slope, dy)); // + SK_Fixed1/2 in updateLine() 150 static inline SkFDot6 cheap_distance(SkFDot6 dx, SkFDot6 dy) in cheap_distance() argument 153 dy = SkAbs32(dy); in cheap_distance() 155 if (dx > dy) in cheap_distance() 156 dx += dy >> 1; in cheap_distance() 158 dx = dy + (dx >> 1); in cheap_distance() 162 static inline int diff_to_shift(SkFDot6 dx, SkFDot6 dy) in diff_to_shift() argument [all …]
|
/external/skia/src/core/ |
D | SkBitmap_scroll.cpp | 11 bool SkBitmap::scrollRect(const SkIRect* subset, int dx, int dy, in scrollRect() argument 23 tmp.scrollRect(NULL, dx, dy, inval); in scrollRect() 49 if ((dx | dy) == 0 || width <= 0 || height <= 0) { in scrollRect() 64 r.offset(dx, dy); in scrollRect() 87 if (dy <= 0) { in scrollRect() 88 src -= dy * rowBytes; in scrollRect() 89 height += dy; in scrollRect() 91 dst += dy * rowBytes; in scrollRect() 92 height -= dy; in scrollRect()
|
D | SkEdge.cpp | 75 const int dy = SkEdge_Compute_DY(top, y0); in setLine() local 77 fX = SkFDot6ToFixed(x0 + SkFixedMul(slope, dy)); // + SK_Fixed1/2 in setLine() 116 const int dy = SkEdge_Compute_DY(top, y0); in updateLine() local 118 fX = SkFDot6ToFixed(x0 + SkFixedMul(slope, dy)); // + SK_Fixed1/2 in updateLine() 150 static inline SkFDot6 cheap_distance(SkFDot6 dx, SkFDot6 dy) in cheap_distance() argument 153 dy = SkAbs32(dy); in cheap_distance() 155 if (dx > dy) in cheap_distance() 156 dx += dy >> 1; in cheap_distance() 158 dx = dy + (dx >> 1); in cheap_distance() 162 static inline int diff_to_shift(SkFDot6 dx, SkFDot6 dy) in diff_to_shift() argument [all …]
|
/external/opencv/cv/src/ |
D | cvdominants.cpp | 144 float dx, dy; in icvFindDominantPointsIPAN() local 159 dy = (float) (ptInf[i].pt.y - ptInf[ind].pt.y); in icvFindDominantPointsIPAN() 160 dist_r = dx * dx + dy * dy; in icvFindDominantPointsIPAN() 165 float dx, dy; in icvFindDominantPointsIPAN() local 183 dy = (float) (ptInf[i].pt.y - ptInf[ind].pt.y); in icvFindDominantPointsIPAN() 184 dist_r = dx * dx + dy * dy; in icvFindDominantPointsIPAN() 191 float dx, dy; in icvFindDominantPointsIPAN() local 208 dy = (float) (ptInf[i].pt.y - ptInf[ind].pt.y); in icvFindDominantPointsIPAN() 209 dist_l = dx * dx + dy * dy; in icvFindDominantPointsIPAN() 215 float dx, dy; in icvFindDominantPointsIPAN() local [all …]
|
D | cvapprox.cpp | 172 int dx, dy; in icvApproximateChainTC89() local 184 dy = array[i2].pt.y - array[i1].pt.y; in icvApproximateChainTC89() 187 lk = dx * dx + dy * dy; in icvApproximateChainTC89() 190 dk_num = (pt0.x - array[i1].pt.x) * dy - (pt0.y - array[i1].pt.y) * dx; in icvApproximateChainTC89() 581 int dx, dy, dist; in icvApproxPolyDP_32s() local 585 dy = pt.y - start_pt.y; in icvApproxPolyDP_32s() 587 dist = dx * dx + dy * dy; in icvApproxPolyDP_32s() 630 int dx, dy, dist, max_dist = 0; in icvApproxPolyDP_32s() local 633 dy = end_pt.y - start_pt.y; in icvApproxPolyDP_32s() 635 assert( dx != 0 || dy != 0 ); in icvApproxPolyDP_32s() [all …]
|
D | cvpgh.cpp | 193 double dx, dy; in icvCalcPGH() local 198 dy = pt2.y - pt1.y; in icvCalcPGH() 199 buffer[i] = (float)(1./sqrt(dx * dx + dy * dy)); in icvCalcPGH() 215 int dx, dy; in icvCalcPGH() local 221 dy = pt2.y - pt1.y; in icvCalcPGH() 223 if( (dx | dy) != 0 ) in icvCalcPGH() 242 int d1 = (pt3.y - pt1.y) * dx - (pt3.x - pt1.x) * dy; in icvCalcPGH() 243 int d2 = (pt4.y - pt1.y) * dx - (pt2.x - pt1.x) * dy; in icvCalcPGH() 249 int dp = (pt4.x - pt3.x) * dx + (pt4.y - pt3.y) * dy; in icvCalcPGH()
|
/external/skia/tools/lua/ |
D | skia.lua | 73 function Sk.Rect:offset(dx, dy) 74 dy = dy or dx 77 self.top = self.top + dy 79 self.bottom = self.bottom + dy 82 function Sk.Rect:inset(dx, dy) 83 dy = dy or dx 86 self.top = self.top + dy 88 self.bottom = self.bottom - dy
|
/external/jmonkeyengine/engine/src/core/com/jme3/input/event/ |
D | MouseMotionEvent.java | 44 private int x, y, dx, dy, wheel, deltaWheel; field in MouseMotionEvent 46 public MouseMotionEvent(int x, int y, int dx, int dy, int wheel, int deltaWheel) { in MouseMotionEvent() argument 50 this.dy = dy; in MouseMotionEvent() 78 return dy; in getDY() 107 return "MouseMotion(X="+x+", Y="+y+", DX="+dx+", DY="+dy+")"; in toString()
|
/external/chromium_org/third_party/WebKit/Source/platform/geometry/ |
D | FloatQuad.h | 121 void move(float dx, float dy) in move() argument 123 m_p1.move(dx, dy); in move() 124 m_p2.move(dx, dy); in move() 125 m_p3.move(dx, dy); in move() 126 m_p4.move(dx, dy); in move() 129 void scale(float dx, float dy) in scale() argument 131 m_p1.scale(dx, dy); in scale() 132 m_p2.scale(dx, dy); in scale() 133 m_p3.scale(dx, dy); in scale() 134 m_p4.scale(dx, dy); in scale()
|
/external/pixman/pixman/ |
D | pixman-linear-gradient.c | 44 pixman_fixed_48_16_t dx, dy; in linear_gradient_is_horizontal() local 69 dy = linear->p2.y - linear->p1.y; in linear_gradient_is_horizontal() 71 l = dx * dx + dy * dy; in linear_gradient_is_horizontal() 81 (dx * v.vector[0] + dy * v.vector[1]) / in linear_gradient_is_horizontal() 103 pixman_fixed_48_16_t dx, dy; in linear_get_scanline_narrow() local 133 dy = linear->p2.y - linear->p1.y; in linear_get_scanline_narrow() 135 l = dx * dx + dy * dy; in linear_get_scanline_narrow() 155 t = ((dx * v.vector[0] + dy * v.vector[1]) - in linear_get_scanline_narrow() 156 (dx * linear->p1.x + dy * linear->p1.y) * v2) * invden; in linear_get_scanline_narrow() 157 inc = (dx * unit.vector[0] + dy * unit.vector[1]) * invden; in linear_get_scanline_narrow() [all …]
|
/external/chromium_org/third_party/WebKit/Source/platform/graphics/filters/ |
D | FEOffset.cpp | 37 FEOffset::FEOffset(Filter* filter, float dx, float dy) in FEOffset() argument 40 , m_dy(dy) in FEOffset() 44 PassRefPtr<FEOffset> FEOffset::create(Filter* filter, float dx, float dy) in create() argument 46 return adoptRef(new FEOffset(filter, dx, dy)); in create() 59 float FEOffset::dy() const in dy() function in WebCore::FEOffset 64 void FEOffset::setDy(float dy) in setDy() argument 66 m_dy = dy; in setDy() 120 ts << " dx=\"" << dx() << "\" dy=\"" << dy() << "\"]\n"; in externalRepresentation()
|
/external/chromium_org/third_party/WebKit/PerformanceTests/SunSpider/tests/sunspider-0.9.1/ |
D | access-nbody.js | 96 var dx, dy, dz, distance, mag; 104 dy = bodyi.y - bodyj.y; 107 distance = Math.sqrt(dx*dx + dy*dy + dz*dz); 111 bodyi.vy -= dy * bodyj.mass * mag; 115 bodyj.vy += dy * bodyi.mass * mag; 129 var dx, dy, dz, distance; 144 dy = bodyi.y - bodyj.y; 147 distance = Math.sqrt(dx*dx + dy*dy + dz*dz);
|
/external/chromium_org/third_party/WebKit/PerformanceTests/SunSpider/tests/sunspider-0.9/ |
D | access-nbody.js | 96 var dx, dy, dz, distance, mag; 104 dy = bodyi.y - bodyj.y; 107 distance = Math.sqrt(dx*dx + dy*dy + dz*dz); 111 bodyi.vy -= dy * bodyj.mass * mag; 115 bodyj.vy += dy * bodyi.mass * mag; 129 var dx, dy, dz, distance; 144 dy = bodyi.y - bodyj.y; 147 distance = Math.sqrt(dx*dx + dy*dy + dz*dz);
|
/external/chromium_org/third_party/WebKit/PerformanceTests/SunSpider/tests/sunspider-1.0/ |
D | access-nbody.js | 96 var dx, dy, dz, distance, mag; 104 dy = bodyi.y - bodyj.y; 107 distance = Math.sqrt(dx*dx + dy*dy + dz*dz); 111 bodyi.vy -= dy * bodyj.mass * mag; 115 bodyj.vy += dy * bodyi.mass * mag; 129 var dx, dy, dz, distance; 144 dy = bodyi.y - bodyj.y; 147 distance = Math.sqrt(dx*dx + dy*dy + dz*dz);
|
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/llvmpipe/ |
D | lp_setup_line.c | 45 float dy; member 87 float dady = da21 * info->dy * info->oneoverarea; in linear_coef() 119 float dady = da21 * info->dy * info->oneoverarea; in perspective_coef() 305 float dx, dy; in try_setup_line() local 325 dy = v1[0][1] - v2[0][1]; in try_setup_line() 326 area = (dx * dx + dy * dy); in try_setup_line() 334 info.dy = dy; in try_setup_line() 340 if (fabsf(dx) >= fabsf(dy)) { in try_setup_line() 341 float dydx = dy / dx; in try_setup_line() 348 if (y2diff==-0.5 && dy<0){ in try_setup_line() [all …]
|
/external/mesa3d/src/gallium/drivers/llvmpipe/ |
D | lp_setup_line.c | 45 float dy; member 87 float dady = da21 * info->dy * info->oneoverarea; in linear_coef() 119 float dady = da21 * info->dy * info->oneoverarea; in perspective_coef() 305 float dx, dy; in try_setup_line() local 325 dy = v1[0][1] - v2[0][1]; in try_setup_line() 326 area = (dx * dx + dy * dy); in try_setup_line() 334 info.dy = dy; in try_setup_line() 340 if (fabsf(dx) >= fabsf(dy)) { in try_setup_line() 341 float dydx = dy / dx; in try_setup_line() 348 if (y2diff==-0.5 && dy<0){ in try_setup_line() [all …]
|
/external/chromium_org/third_party/skia/src/effects/gradients/ |
D | SkRadialGradient.cpp | 87 SkFixed dy = SkScalarToFixed(sdy) >> 1; in shadeSpan16_radial_clamp() local 90 if (dy == 0) { in shadeSpan16_radial_clamp() 109 fy += dy; in shadeSpan16_radial_clamp() 118 void shadeSpan16_radial(SkScalar fx, SkScalar dx, SkScalar fy, SkScalar dy, in shadeSpan16_radial() argument 128 fy += dy; in shadeSpan16_radial() 132 void shadeSpan16_radial_mirror(SkScalar fx, SkScalar dx, SkScalar fy, SkScalar dy, in shadeSpan16_radial_mirror() argument 135 shadeSpan16_radial<mirror_tileproc_nonstatic>(fx, dx, fy, dy, dstC, cache, toggle, count); in shadeSpan16_radial_mirror() 138 void shadeSpan16_radial_repeat(SkScalar fx, SkScalar dx, SkScalar fy, SkScalar dy, in shadeSpan16_radial_repeat() argument 141 shadeSpan16_radial<repeat_tileproc_nonstatic>(fx, dx, fy, dy, dstC, cache, toggle, count); in shadeSpan16_radial_repeat() 256 inline bool radial_completely_pinned(int fx, int dx, int fy, int dy) { in radial_completely_pinned() argument [all …]
|
/external/skia/src/effects/gradients/ |
D | SkRadialGradient.cpp | 87 SkFixed dy = SkScalarToFixed(sdy) >> 1; in shadeSpan16_radial_clamp() local 90 if (dy == 0) { in shadeSpan16_radial_clamp() 109 fy += dy; in shadeSpan16_radial_clamp() 118 void shadeSpan16_radial(SkScalar fx, SkScalar dx, SkScalar fy, SkScalar dy, in shadeSpan16_radial() argument 128 fy += dy; in shadeSpan16_radial() 132 void shadeSpan16_radial_mirror(SkScalar fx, SkScalar dx, SkScalar fy, SkScalar dy, in shadeSpan16_radial_mirror() argument 135 shadeSpan16_radial<mirror_tileproc_nonstatic>(fx, dx, fy, dy, dstC, cache, toggle, count); in shadeSpan16_radial_mirror() 138 void shadeSpan16_radial_repeat(SkScalar fx, SkScalar dx, SkScalar fy, SkScalar dy, in shadeSpan16_radial_repeat() argument 141 shadeSpan16_radial<repeat_tileproc_nonstatic>(fx, dx, fy, dy, dstC, cache, toggle, count); in shadeSpan16_radial_repeat() 256 inline bool radial_completely_pinned(int fx, int dx, int fy, int dy) { in radial_completely_pinned() argument [all …]
|
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/softpipe/ |
D | sp_setup.c | 56 float dy; /**< Y(v1) - Y(v0), used only during setup */ member 346 setup->ebot.dy = setup->vmid[0][1] - setup->vmin[0][1]; in setup_sort_vertices() 348 setup->emaj.dy = setup->vmax[0][1] - setup->vmin[0][1]; in setup_sort_vertices() 350 setup->etop.dy = setup->vmax[0][1] - setup->vmid[0][1]; in setup_sort_vertices() 363 const float area = (setup->emaj.dx * setup->ebot.dy - in setup_sort_vertices() 364 setup->ebot.dx * setup->emaj.dy); in setup_sort_vertices() 489 float a = setup->ebot.dy * majda - botda * setup->emaj.dy; in tri_linear_coeff() 547 float a = setup->ebot.dy * majda - botda * setup->emaj.dy; in tri_persp_coeff() 687 setup->emaj.dxdy = setup->emaj.dy ? setup->emaj.dx / setup->emaj.dy : .0f; in setup_tri_edges() 692 setup->etop.dxdy = setup->etop.dy ? setup->etop.dx / setup->etop.dy : .0f; in setup_tri_edges() [all …]
|