diff --git a/app/src/main/java/com/frank/ffmpeg/activity/FilterActivity.java b/app/src/main/java/com/frank/ffmpeg/activity/FilterActivity.java
index ee14460..dab3edd 100644
--- a/app/src/main/java/com/frank/ffmpeg/activity/FilterActivity.java
+++ b/app/src/main/java/com/frank/ffmpeg/activity/FilterActivity.java
@@ -52,6 +52,8 @@ public class FilterActivity extends BaseActivity implements SurfaceHolder.Callba
"colorbalance=bs=0.3",
"drawbox=x=100:y=100:w=100:h=100:color=red@0.5'",
"hflip",
+ //adjust the coefficient of sigma to control the blur
+ "gblur=sigma=2:steps=1:planes=1:sigmaV=1",
"rotate=180*PI/180",
"unsharp"
};
@@ -64,6 +66,7 @@ public class FilterActivity extends BaseActivity implements SurfaceHolder.Callba
FFmpegApplication.getInstance().getString(R.string.filter_equalize),
FFmpegApplication.getInstance().getString(R.string.filter_rectangle),
FFmpegApplication.getInstance().getString(R.string.filter_flip),
+ FFmpegApplication.getInstance().getString(R.string.filter_blur),
FFmpegApplication.getInstance().getString(R.string.filter_rotate),
FFmpegApplication.getInstance().getString(R.string.filter_sharpening)
};
diff --git a/app/src/main/res/layout/activity_filter.xml b/app/src/main/res/layout/activity_filter.xml
index 7aa0b56..a0477f5 100644
--- a/app/src/main/res/layout/activity_filter.xml
+++ b/app/src/main/res/layout/activity_filter.xml
@@ -5,8 +5,8 @@
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content" />
equalize
rectangle
flip
+ blur
rotate
sharpen
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index daccb26..2bda7e7 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -81,6 +81,7 @@
均衡
矩形
镜像
+ 模糊
旋转
锐化