??沒做demo,基本就是上面的原理,模糊的背景的話就上面的高斯模糊,寬、高分別做模糊計算,代碼結構像這樣:
//當前視頻幀
EasyGlUtils.bindFrameTexture(fFrame[0], fTexture[0]);
mVerBuffer.clear();
mVerBuffer.put(pos).position(0);
draw();
EasyGlUtils.unBindFrameBuffer();
// 模糊width方向
widthBlurFilter.setTextureId(fTexture[0]);
EasyGlUtils.bindFrameTexture(fFrame[0], fTexture[1]);
widthBlurFilter.draw();
EasyGlUtils.unBindFrameBuffer();
// 模糊height方向
heightBlurFilter.setTextureId(fTexture[1]);
EasyGlUtils.bindFrameTexture(fFrame[0], fTexture[0]);
heightBlurFilter.draw();
mVerBuffer.clear();
mVerBuffer.put(cube).position(0);
draw();// 繪畫視頻的幀
EasyGlUtils.unBindFrameBuffer();
opengles 圖片、視頻背景虛化模糊視頻編輯的時候,為了顯示主體內容的突出,一般是在背景中加上模糊背景并且降暗度。類似這種效果 用opengl要怎樣去實現呢,那么需要這幾步去分解1、根據視頻的顯示比例,如果1:...