Home
last modified time | relevance | path

Searched refs:radius (Results 1 – 8 of 8) sorted by relevance

/gdk/samples/PhotoEditor/jni/
Dredeye.cpp34 jobjectArray redeye_positions, jfloat radius, jfloat intensity) { in Java_com_android_photoeditor_filters_ImageUtils_nativeRedEye() argument
36 return f(env, obj, src_bitmap, dst_bitmap, redeye_positions, radius, intensity); in Java_com_android_photoeditor_filters_ImageUtils_nativeRedEye()
41 jobjectArray redeye_positions, jfloat radius, jfloat intensity) { in RedEye() argument
72 uint32_t bound_y = y + radius; in RedEye()
76 uint32_t start_x = (x > radius) ? x - radius: 0; in RedEye()
77 uint32_t bound_x = x + radius; in RedEye()
81 uint32_t dst_y = (y > radius) ? y - radius : 0; in RedEye()
88 if (hypotf(dst_x - x, dst_y - y) <= radius) { in RedEye()
D_jni.h18 …ct src_bitmap, jobject dst_bitmap, jobjectArray redeye_positions, jfloat radius, jfloat intensity);
43 …ct src_bitmap, jobject dst_bitmap, jobjectArray redeye_positions, jfloat radius, jfloat intensity);
/gdk/samples/PhotoEditor/src/com/android/photoeditor/filters/
DRedEyeFilter.java43 float radius = Math.max(MIN_RADIUS, RADIUS_RATIO * Math.min(src.width(), src.height())); in process() local
47 redeyePositions.toArray(a), radius, DEFAULT_RED_INTENSITY); in process() local
DImageUtils.java53 float radius, float intensity); in nativeRedEye() argument
/gdk/samples/PhotoEditor/src/com/android/photoeditor/
DRectUtils.java47 float radius = (float) Math.hypot(w, h); in getStraightenMatrix() local
48 float scaleX = (float) Math.abs(radius * Math.cos(adjustAngle)) / w; in getStraightenMatrix()
49 float scaleY = (float) Math.abs(radius * Math.sin(adjustAngle)) / h; in getStraightenMatrix()
/gdk/samples/PhotoEditor/src/com/android/photoeditor/actions/
DScaleWheel.java131 float radius = (progress * innerRadius) / maxProgress; in onDraw() local
132 canvas.drawCircle(centerXY, centerXY, radius, circlePaint); in onDraw()
172 double radius = Math.sqrt((x * x) + (y * y)); in isHittingThumbArea() local
173 return (radius > innerRadius) && (radius < centerXY); in isHittingThumbArea()
DRotateView.java111 float radius = (float) Math.hypot(centerX, centerY); in setGridBounds() local
112 delta = radius - centerX; in setGridBounds()
116 delta = radius - centerY; in setGridBounds()
DColorWheel.java290 final float radius = (float) Math.sqrt((x * x) + (y * y)); in isHittingThumbArea() local
291 return (radius > innerRadius) && (radius < centerXY); in isHittingThumbArea()