示例#1
0
  @Override
  public void process(Photo src, Photo dst) {
    float radius = Math.max(MIN_RADIUS, RADIUS_RATIO * Math.min(src.width(), src.height()));

    PointF[] a = new PointF[redeyePositions.size()];
    ImageUtils.nativeRedEye(
        src.bitmap(), dst.bitmap(), redeyePositions.toArray(a), radius, DEFAULT_RED_INTENSITY);
  }
示例#2
0
 @Override
 public void process(Photo src, Photo dst) {
   ImageUtils.nativeFisheye(src.bitmap(), dst.bitmap(), 0.5f, 0.5f, scale);
 }
示例#3
0
 @Override
 public void process(Photo src, Photo dst) {
   ImageUtils.nativeWarmify(src.bitmap(), dst.bitmap());
 }