Searched refs:dx (Results 1 - 25 of 73) sorted by relevance

123

/frameworks/base/graphics/java/android/graphics/
H A DLayerRasterizer.java29 public void addLayer(Paint paint, float dx, float dy) { argument
30 nativeAddLayer(native_instance, paint.mNativePaint, dx, dy);
38 private static native void nativeAddLayer(int native_layer, int native_paint, float dx, float dy); argument
H A DPath.java193 * @param dx The amount to add to the x-coordinate of the end of the
198 public void rMoveTo(float dx, float dy) { argument
199 native_rMoveTo(mNativePath, dx, dy);
219 * @param dx The amount to add to the x-coordinate of the previous point on
224 public void rLineTo(float dx, float dy) { argument
225 native_rLineTo(mNativePath, dx, dy);
445 * Add a copy of src to the path, offset by (dx,dy)
448 * @param dx The amount to translate the path in X as it is added
450 public void addPath(Path src, float dx, float dy) { argument
451 native_addPath(mNativePath, src.mNativePath, dx, d
480 offset(float dx, float dy, Path dst) argument
494 offset(float dx, float dy) argument
504 setLastPoint(float dx, float dy) argument
557 native_rMoveTo(int nPath, float dx, float dy) argument
559 native_rLineTo(int nPath, float dx, float dy) argument
583 native_addPath(int nPath, int src, float dx, float dy) argument
587 native_offset(int nPath, float dx, float dy, int dst_path) argument
589 native_offset(int nPath, float dx, float dy) argument
590 native_setLastPoint(int nPath, float dx, float dy) argument
[all...]
H A DPoint.java56 * Offset the point's coordinates by dx, dy
58 public final void offset(int dx, int dy) { argument
59 x += dx;
H A DPointF.java62 public final void offset(float dx, float dy) { argument
63 x += dx;
H A DCamera.java41 public native float dotWithNormal(float dx, float dy, float dz); argument
/frameworks/base/graphics/java/com/android/internal/graphics/
H A DNativeUtils.java35 * @param dx horizontal offset
39 int dx, int dy);
38 nativeScrollRect(Canvas canvas, Rect src, int dx, int dy) argument
/frameworks/base/awt/java/awt/image/
H A DReplicateScaleFilter.java138 int sx, sy, dx, dy;
141 dx = dstX;
143 while ((dx < destWidth) && ((sx = srccols[dx]) < x + w)) {
144 buff[dx] = pixels[srcOff + (sx - x)];
145 dx++;
148 consumer.setPixels(dstX, dy, dx - dstX, 1, model, buff, dstX, destWidth);
173 int sx, sy, dx, dy;
176 dx = dstX;
178 while ((dx < destWidt
[all...]
H A DAreaAveragingScaleFilter.java170 int srcX, srcY, dx, dy;
193 dx = 0;
218 sum_a[dx] += a * avg;
219 sum_r[dx] += r * avg;
220 sum_g[dx] += g * avg;
221 sum_b[dx] += b * avg;
232 dx++;
/frameworks/base/core/jni/android/graphics/
H A DLayerRasterizer.cpp10 static void addLayer(JNIEnv* env, jobject, SkLayerRasterizer* layer, const SkPaint* paint, float dx, float dy) { argument
13 layer->addLayer(*paint, SkFloatToScalar(dx), SkFloatToScalar(dy));
/frameworks/base/include/ui/
H A DRegion.h79 Region& translateSelf(int dx, int dy);
80 Region& orSelf(const Region& rhs, int dx, int dy);
81 Region& andSelf(const Region& rhs, int dx, int dy);
82 Region& subtractSelf(const Region& rhs, int dx, int dy);
85 const Region translate(int dx, int dy) const;
86 const Region merge(const Region& rhs, int dx, int dy) const;
87 const Region intersect(const Region& rhs, int dx, int dy) const;
88 const Region subtract(const Region& rhs, int dx, int dy) const;
135 Region& operationSelf(const Region& r, int dx, int dy, int op);
138 const Region operation(const Region& rhs, int dx, in
[all...]
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DPath.java219 * @param dx The amount to add to the x-coordinate of the end of the
224 public void rMoveTo(float dx, float dy) { argument
225 dx += mLastX;
227 mPath.moveTo(mLastX = dx, mLastY = dy);
247 * @param dx The amount to add to the x-coordinate of the previous point on
252 public void rLineTo(float dx, float dy) { argument
256 dx += mLastX;
258 mPath.lineTo(mLastX = dx, mLastY = dy);
518 * Add a copy of src to the path, offset by (dx,dy)
521 * @param dx Th
523 addPath(Path src, float dx, float dy) argument
555 offset(float dx, float dy, Path dst) argument
575 offset(float dx, float dy) argument
585 setLastPoint(float dx, float dy) argument
[all...]
H A DSweepGradient.java108 float dx = x + ix - mCx;
111 if (dx == 0) {
114 angle = (float) (dx < 0 ? Math.PI : 0);
116 angle = (float) Math.atan(dy / dx);
117 if (dx > 0) {
/frameworks/base/include/private/ui/
H A DRegionHelper.h52 TYPE dx; member in struct:android::region_operator::region
55 : rects(rhs.rects), count(rhs.count), dx(rhs.dx), dy(rhs.dy) { }
57 : rects(r), count(c), dx(), dy() { }
58 inline region(RECT const* r, size_t c, TYPE dx, TYPE dy) argument
59 : rects(r), count(c), dx(dx), dy(dy) { }
224 SpannerBase::lhs_head = lhs.rects->left + lhs.dx;
225 SpannerBase::lhs_tail = lhs.rects->right + lhs.dx;
231 SpannerBase::rhs_head = rhs.rects->left + rhs.dx;
[all...]
/frameworks/base/core/jni/
H A Dcom_android_internal_graphics_NativeUtils.cpp37 static jboolean scrollRect(JNIEnv* env, jobject graphics2D, jobject canvas, jobject rect, int dx, int dy) { argument
50 return bitmap.scrollRect(srcPtr, dx, dy, NULL);
/frameworks/base/libs/ui/
H A DRegion.cpp201 Region& Region::orSelf(const Region& rhs, int dx, int dy) {
202 return operationSelf(rhs, dx, dy, op_or);
204 Region& Region::andSelf(const Region& rhs, int dx, int dy) {
205 return operationSelf(rhs, dx, dy, op_and);
207 Region& Region::subtractSelf(const Region& rhs, int dx, int dy) {
208 return operationSelf(rhs, dx, dy, op_nand);
210 Region& Region::operationSelf(const Region& rhs, int dx, int dy, int op) {
212 boolean_operation(op, *this, lhs, rhs, dx, dy);
218 const Region Region::merge(const Region& rhs, int dx, int dy) const {
219 return operation(rhs, dx, d
[all...]
/frameworks/base/libs/rs/java/Film/res/raw/
H A Dfilmimage.c16 int dx, dy, idx; local
44 dx = scriptRand(con, 0x10000) - 0x8000;
48 storeI32(con, 2, idx, dx);
66 dx = loadI32(con, 2, srcIdx);
95 posx = posx + dx;
100 //storeI32(con, 2, srcIdx, dx);
/frameworks/base/awt/org/apache/harmony/awt/gl/render/
H A DJavaLineRasterizer.java150 int dx, dy, adx, ady, sx, sy; field in class:JavaLineRasterizer.Line.Diag
157 dx = x2 - x1;
160 if (dx > 0) {
161 adx = dx;
164 adx = -dx;
171 return (float)Math.sqrt(dx * dx + dy * dy);
197 rasterize(dx > 0 ? nx2 - nx1 : nx1 - nx2);
396 newx1 = clipY(dx, dy, newy1, true);
401 newx1 = clipY(dx, d
464 int dx; field in class:JavaLineRasterizer.Line.Ortog.Hor
679 clipX(int dx, int dy, int cy, boolean top) argument
686 clipY(int dx, int dy, int cx, boolean top) argument
[all...]
/frameworks/base/media/libstagefright/codecs/m4v_h263/dec/src/
H A Dpp_semaphore_chroma_inter.cpp29 dx = horizontal component of the motion vector (int)
116 int dx, /* i */
188 if (((dx&0xF) != 0) && (mmvx + 1 < (mvwidth >> 1) - 1))
189 { /* dx is not a multiple of 16 */
199 { /* dx is a multiple of 16 */
111 pp_semaphore_chroma_inter( int xpred, int ypred, uint8 *pp_dec_u, uint8 *pstprcTypPrv, int dx, int dy, int mvwidth, int height, int32 size, int mv_loc, uint8 msk_deblock ) argument
H A Dpp_semaphore_luma.cpp33 dx = horizontal component of the motion vector (int)
119 int dx, /* i */
165 if ((dx&0xF) != 0)
166 { /* dx is not a multiple of 16 */
190 { /* dx is a multiple of 16 */
289 if (((dx&0xF) != 0) && (mmvx + 1 < mvwidth - 1))
290 { /* dx is not a multiple of 16 and the block */
324 { /* dx is a multiple of 16 or the block x */
112 pp_semaphore_luma( int xpred, int ypred, uint8 *pp_dec_y, uint8 *pstprcTypPrv, int *ll, int *mv_loc, int dx, int dy, int mvwidth, int width, int height ) argument
H A Dmb_motion_comp.cpp146 /* Motion vector (dx,dy) in half-pel resolution */
147 int dx, dy; local
195 dx = px[0] = px[1] = px[2] = px[3] = video->motX[imv];
197 if ((dx & 3) == 0)
199 dx = dx >> 1;
204 dx = (dx >> 1) | 1;
226 dx = PV_SIGN(xsum) * (roundtab16[(PV_ABS(xsum)) & 0xF] +
416 video->pstprcTypPrv, dx, d
[all...]
/frameworks/base/awt/java/awt/
H A DGradientPaintContext.java75 int dx; field in class:GradientPaintContext
117 dx = dy = delta = 0;
122 dx = (int)(by.getX() * mult);
176 int c = x * dy - y * dx - delta;
178 int cy = - w * dy - dx;
H A DPoint.java197 * position given by (x+dx, x+dy) coordinates.
199 * @param dx
206 public void translate(int dx, int dy) { argument
207 x += dx;
/frameworks/base/media/libstagefright/codecs/avc/dec/src/
H A Davcdec_lib.h107 \param "dx" "Fraction of x_pos in quarter pel."
122 int blkwidth, int blkheight, int dx);
125 int blkwidth, int blkheight, int dx);
150 void ChromaBorderMC(uint8 *ref, int picwidth, int dx, int dy,
152 void ChromaDiagonalMC(uint8 *ref, int picwidth, int dx, int dy,
158 void ChromaBorderMCOutside(uint8 *ref, int picwidth, int dx, int dy,
162 int dx, int dy, uint8 *pred, int pred_pitch,
166 void ChromaDiagonalMC_SIMD(uint8 *pRef, int srcPitch, int dx, int dy,
169 void ChromaHorizontalMC_SIMD(uint8 *pRef, int srcPitch, int dx, int dy,
172 void ChromaVerticalMC_SIMD(uint8 *pRef, int srcPitch, int dx, in
[all...]
H A Dpred_inter.cpp24 /* (blkwidth << 2) + (dy << 1) + dx */
244 int dx, dy; local
249 dx = x_pos & 3;
255 if (dx == 0 && dy == 0)
276 HorzInterp1MC(ref, picwidth, pred, pred_pitch, blkwidth, blkheight, dx);
282 HorzInterp1MC(&temp[0][2], 24, pred, pred_pitch, blkwidth, blkheight, dx);
285 else if (dx == 0)
310 HorzInterp2MC(&temp2[0][2], 21, pred, pred_pitch, blkwidth, blkheight, dx);
318 HorzInterp2MC(&temp2[0][2], 21, pred, pred_pitch, blkwidth, blkheight, dx);
321 else if (dx
547 HorzInterp1MC(uint8 *in, int inpitch, uint8 *out, int outpitch, int blkwidth, int blkheight, int dx) argument
837 HorzInterp2MC(int *in, int inpitch, uint8 *out, int outpitch, int blkwidth, int blkheight, int dx) argument
1985 int dx, dy; local
2016 ChromaDiagonalMC_SIMD(uint8 *pRef, int srcPitch, int dx, int dy, uint8 *pOut, int predPitch, int blkwidth, int blkheight) argument
2108 ChromaHorizontalMC_SIMD(uint8 *pRef, int srcPitch, int dx, int dy, uint8 *pOut, int predPitch, int blkwidth, int blkheight) argument
2156 ChromaVerticalMC_SIMD(uint8 *pRef, int srcPitch, int dx, int dy, uint8 *pOut, int predPitch, int blkwidth, int blkheight) argument
2198 ChromaDiagonalMC2_SIMD(uint8 *pRef, int srcPitch, int dx, int dy, uint8 *pOut, int predPitch, int blkwidth, int blkheight) argument
2240 ChromaHorizontalMC2_SIMD(uint8 *pRef, int srcPitch, int dx, int dy, uint8 *pOut, int predPitch, int blkwidth, int blkheight) argument
2261 ChromaVerticalMC2_SIMD(uint8 *pRef, int srcPitch, int dx, int dy, uint8 *pOut, int predPitch, int blkwidth, int blkheight) argument
2286 ChromaFullMC_SIMD(uint8 *pRef, int srcPitch, int dx, int dy, uint8 *pOut, int predPitch, int blkwidth, int blkheight) argument
[all...]
/frameworks/base/libs/rs/java/Film/src/com/android/film/
H A DFilmStripMesh.java69 float dx = v1.x - v2.x;
72 float len = (float)java.lang.Math.sqrt(dx*dx + dy*dy + dz*dz);
73 dx /= len;
77 nx = dx * dz;
79 nz = (float)java.lang.Math.sqrt(dx*dx + dy*dy);

Completed in 412 milliseconds

123