From a7c47023e23cde120ce7f77986734bc3fd3a946f Mon Sep 17 00:00:00 2001 From: xufulong <839789740@qq.com> Date: Sat, 30 Nov 2019 20:43:09 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E6=BB=A4=E9=95=9C=E7=9A=84?= =?UTF-8?q?=E6=A8=A1=E7=B3=8A=E6=95=88=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 去掉滤镜的模糊效果 --- .../java/com/frank/ffmpeg/activity/FilterActivity.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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 d84068c..63268c3 100644 --- a/app/src/main/java/com/frank/ffmpeg/activity/FilterActivity.java +++ b/app/src/main/java/com/frank/ffmpeg/activity/FilterActivity.java @@ -46,7 +46,6 @@ public class FilterActivity extends BaseActivity implements SurfaceHolder.Callba "hue='h=60:s=-3'", "lutrgb='r=0:g=0'", "edgedetect=low=0.1:high=0.4", - "boxblur=2:1", "drawgrid=w=iw/3:h=ih/3:t=2:c=white@0.5", "colorbalance=bs=0.3", "drawbox=x=100:y=100:w=100:h=100:color=red@0.5'", @@ -58,7 +57,6 @@ public class FilterActivity extends BaseActivity implements SurfaceHolder.Callba "鲜明",//hue "暖蓝", "边缘", - "模糊", "九宫格", "均衡", "矩形", @@ -123,8 +121,7 @@ public class FilterActivity extends BaseActivity implements SurfaceHolder.Callba LinearLayoutManager linearLayoutManager = new LinearLayoutManager(this); linearLayoutManager.setOrientation(LinearLayoutManager.HORIZONTAL); recyclerView.setLayoutManager(linearLayoutManager); - List itemList = new ArrayList<>(); - itemList.addAll(Arrays.asList(txtArray)); + List itemList = new ArrayList<>(Arrays.asList(txtArray)); horizontalAdapter = new HorizontalAdapter(itemList); recyclerView.setAdapter(horizontalAdapter); @@ -220,7 +217,7 @@ public class FilterActivity extends BaseActivity implements SurfaceHolder.Callba void onSelectedFile(String filePath) { videoPath = filePath; //选择滤镜模式 - doFilterPlay(6); + doFilterPlay(5); //默认关闭声音 btnSound.setChecked(true); }