Compare commits
71 Commits
v6.8.1-上架版
...
master
Author | SHA1 | Date | |
---|---|---|---|
|
d1e55f54e4 | ||
|
f9d0ce9411 | ||
|
cc67c9cacb | ||
|
f00dff9ca3 | ||
|
101973bdff | ||
|
7b53729849 | ||
|
95128b64ea | ||
|
151abf13e8 | ||
|
fb340a152b | ||
|
8d0cf94d46 | ||
|
e526964b11 | ||
|
fa4ad7f32d | ||
|
befc4e7833 | ||
|
92228b64bb | ||
|
096ee7ee68 | ||
|
82ce3a282f | ||
|
7ca1ee2aad | ||
|
a753526571 | ||
|
ddcb757dc7 | ||
|
aa0a2e38a7 | ||
|
a95068e7e5 | ||
|
c1ef54e7b1 | ||
|
800e1382a4 | ||
|
bfaa175e10 | ||
|
81cdd97fc4 | ||
|
6e0094e653 | ||
|
14a3eeebf2 | ||
|
ef09d9c58a | ||
|
99bc3cd71c | ||
|
81d390f82e | ||
|
4244272d00 | ||
|
9ab0e4ad8d | ||
|
684106bc59 | ||
|
9d2814c36f | ||
|
9475acd585 | ||
|
98343a2177 | ||
|
f60915194a | ||
|
6ffe601060 | ||
|
f52d7452f0 | ||
|
55bc6f917f | ||
|
69b868f535 | ||
|
ee8f744ed2 | ||
|
265e360670 | ||
|
4029392dad | ||
|
299e109c3d | ||
|
168d4a37b7 | ||
|
03a3c64a86 | ||
|
2e84e799d4 | ||
|
e69796e158 | ||
|
80892b14e4 | ||
|
9b4a2bd5e5 | ||
|
b300541ce9 | ||
|
13a373c73b | ||
|
6678dbb6d6 | ||
|
5f4bae667b | ||
|
b23b975edd | ||
|
03b05d0de0 | ||
|
cf73d3218e | ||
f823f17bca | |||
f2ccf37022 | |||
|
0f03a754c1 | ||
|
2b2fe90520 | ||
|
cbd99e0664 | ||
528647a0bc | |||
|
b4a4302cc7 | ||
|
09395b152e | ||
|
f5d8b7fed1 | ||
|
32257ce5a0 | ||
|
ca13774d87 | ||
|
e79741b297 | ||
238dfcc2d3 |
@ -33,7 +33,8 @@ android {
|
|||||||
versionName rootProject.ext.android.versionName
|
versionName rootProject.ext.android.versionName
|
||||||
manifestPlaceholders = rootProject.ext.manifestPlaceholders
|
manifestPlaceholders = rootProject.ext.manifestPlaceholders
|
||||||
ndk {
|
ndk {
|
||||||
abiFilters "armeabi-v7a", "arm64-v8a","x86","x86_64"
|
abiFilters "armeabi-v7a", "arm64-v8a"
|
||||||
|
// abiFilters "armeabi-v7a", "arm64-v8a","x86","x86_64"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
aaptOptions {
|
aaptOptions {
|
||||||
|
@ -38,9 +38,6 @@ import java.util.Locale;
|
|||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
|
||||||
import cn.rongcloud.rtc.api.RCRTCEngine;
|
|
||||||
import cn.rongcloud.rtc.api.callback.IRCRTCVideoOutputFrameListener;
|
|
||||||
import cn.rongcloud.rtc.base.RCRTCVideoFrame;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 美颜模块管理类
|
* 美颜模块管理类
|
||||||
@ -178,44 +175,6 @@ public class FaceManager implements SensorEventListener {
|
|||||||
private static final int CAMERA_SWITCH_SKIP_FRAME = 0;
|
private static final int CAMERA_SWITCH_SKIP_FRAME = 0;
|
||||||
private volatile boolean mSkip;
|
private volatile boolean mSkip;
|
||||||
|
|
||||||
/**
|
|
||||||
* 渲染融云视频帧
|
|
||||||
*/
|
|
||||||
public void drawRongFrame(Context context) {
|
|
||||||
RCRTCEngine.getInstance().getDefaultVideoStream().setVideoFrameListener(new IRCRTCVideoOutputFrameListener() {
|
|
||||||
@Override
|
|
||||||
public RCRTCVideoFrame processVideoFrame(RCRTCVideoFrame callVideoFrame) {
|
|
||||||
//Log.i(TAG, "processVideoFrame: egl context " + EGL14.eglGetCurrentContext());
|
|
||||||
if (pauseFace) {
|
|
||||||
return callVideoFrame;
|
|
||||||
}
|
|
||||||
int width = callVideoFrame.getWidth();
|
|
||||||
int height = callVideoFrame.getHeight();
|
|
||||||
|
|
||||||
if (mIsFirstFrame) {
|
|
||||||
mIsFirstFrame = false;
|
|
||||||
//initCsvUtil(context);
|
|
||||||
mFURenderer.prepareRenderer(mFURendererListener);
|
|
||||||
}
|
|
||||||
//long start = System.nanoTime();
|
|
||||||
mFURenderer.setInputOrientation(callVideoFrame.getRotation());
|
|
||||||
FURenderOutputData data = mFURenderer.onDrawFrameInputWithReturn(callVideoFrame.getData(), width, height);
|
|
||||||
/* long time = System.nanoTime() - start;
|
|
||||||
if (mCSVUtils != null) {
|
|
||||||
mCSVUtils.writeCsv(null, time);
|
|
||||||
}*/
|
|
||||||
if (mSkippedFrames > 0 || mSkip) {
|
|
||||||
--mSkippedFrames;
|
|
||||||
return callVideoFrame;
|
|
||||||
}
|
|
||||||
if (data != null && data.getImage() != null && data.getImage().getBuffer() != null) {
|
|
||||||
callVideoFrame.setData(data.getImage().getBuffer());
|
|
||||||
}
|
|
||||||
return callVideoFrame;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 记录渲染工具,调试用,在processVideoFrame里使用
|
* 记录渲染工具,调试用,在processVideoFrame里使用
|
||||||
@ -278,12 +237,6 @@ public class FaceManager implements SensorEventListener {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 离开渲染界面时注销融云监听器,不然会绿屏
|
|
||||||
*/
|
|
||||||
public void onClose() {
|
|
||||||
RCRTCEngine.getInstance().getDefaultVideoStream().setVideoFrameListener(null);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 释放资源
|
* 释放资源
|
||||||
|
Before Width: | Height: | Size: 3.8 KiB |
BIN
FaceUnity/src/main/res/mipmap-xxhdpi/ico_home_animoji.webp
Normal file
After Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 2.3 KiB |
BIN
FaceUnity/src/main/res/mipmap-xxhdpi/ico_home_beauty.webp
Normal file
After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 3.0 KiB |
BIN
FaceUnity/src/main/res/mipmap-xxhdpi/ico_home_beauty_body.webp
Normal file
After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 3.6 KiB |
BIN
FaceUnity/src/main/res/mipmap-xxhdpi/ico_home_big_head.webp
Normal file
After Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 3.3 KiB |
BIN
FaceUnity/src/main/res/mipmap-xxhdpi/ico_home_fine_sticker.webp
Normal file
After Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 3.1 KiB |
BIN
FaceUnity/src/main/res/mipmap-xxhdpi/ico_home_makeup.webp
Normal file
After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 3.1 KiB |
BIN
FaceUnity/src/main/res/mipmap-xxhdpi/ico_home_sticker.webp
Normal file
After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 276 KiB |
BIN
FaceUnity/src/main/res/mipmap-xxhdpi/icon_animoji_baihu.webp
Normal file
After Width: | Height: | Size: 58 KiB |
Before Width: | Height: | Size: 12 KiB |
BIN
FaceUnity/src/main/res/mipmap-xxhdpi/icon_animoji_baimao.webp
Normal file
After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 163 KiB |
After Width: | Height: | Size: 131 KiB |
Before Width: | Height: | Size: 11 KiB |
After Width: | Height: | Size: 8.8 KiB |
Before Width: | Height: | Size: 8.9 KiB |
BIN
FaceUnity/src/main/res/mipmap-xxhdpi/icon_animoji_frog_st.webp
Normal file
After Width: | Height: | Size: 7.9 KiB |
Before Width: | Height: | Size: 14 KiB |
BIN
FaceUnity/src/main/res/mipmap-xxhdpi/icon_animoji_hashiqi.webp
Normal file
After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 12 KiB |
BIN
FaceUnity/src/main/res/mipmap-xxhdpi/icon_animoji_hetun.webp
Normal file
After Width: | Height: | Size: 9.1 KiB |
Before Width: | Height: | Size: 11 KiB |
BIN
FaceUnity/src/main/res/mipmap-xxhdpi/icon_animoji_huangya.webp
Normal file
After Width: | Height: | Size: 8.5 KiB |
Before Width: | Height: | Size: 16 KiB |
BIN
FaceUnity/src/main/res/mipmap-xxhdpi/icon_animoji_kaola.webp
Normal file
After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 11 KiB |
BIN
FaceUnity/src/main/res/mipmap-xxhdpi/icon_animoji_kuloutou.webp
Normal file
After Width: | Height: | Size: 9.8 KiB |
Before Width: | Height: | Size: 78 KiB |
BIN
FaceUnity/src/main/res/mipmap-xxhdpi/icon_animoji_qgirl.webp
Normal file
After Width: | Height: | Size: 5.8 KiB |
Before Width: | Height: | Size: 128 KiB |
BIN
FaceUnity/src/main/res/mipmap-xxhdpi/icon_animoji_wuxia.webp
Normal file
After Width: | Height: | Size: 107 KiB |
Before Width: | Height: | Size: 19 KiB |
BIN
FaceUnity/src/main/res/mipmap-xxhdpi/icon_ar_baozi.webp
Normal file
After Width: | Height: | Size: 19 KiB |
Before Width: | Height: | Size: 26 KiB |
BIN
FaceUnity/src/main/res/mipmap-xxhdpi/icon_ar_bluebird.webp
Normal file
After Width: | Height: | Size: 8.7 KiB |
Before Width: | Height: | Size: 27 KiB |
BIN
FaceUnity/src/main/res/mipmap-xxhdpi/icon_ar_fenhudie.webp
Normal file
After Width: | Height: | Size: 9.5 KiB |
Before Width: | Height: | Size: 27 KiB |
BIN
FaceUnity/src/main/res/mipmap-xxhdpi/icon_ar_lanhudie.webp
Normal file
After Width: | Height: | Size: 9.5 KiB |
Before Width: | Height: | Size: 20 KiB |
BIN
FaceUnity/src/main/res/mipmap-xxhdpi/icon_ar_tiger.webp
Normal file
After Width: | Height: | Size: 19 KiB |
Before Width: | Height: | Size: 29 KiB |
BIN
FaceUnity/src/main/res/mipmap-xxhdpi/icon_ar_tiger_bai.webp
Normal file
After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 28 KiB |
BIN
FaceUnity/src/main/res/mipmap-xxhdpi/icon_ar_tiger_huang.webp
Normal file
After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 17 KiB |
BIN
FaceUnity/src/main/res/mipmap-xxhdpi/icon_ar_xiongmao.webp
Normal file
After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 13 KiB |
BIN
FaceUnity/src/main/res/mipmap-xxhdpi/icon_avatar_female.webp
Normal file
After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 10 KiB |
BIN
FaceUnity/src/main/res/mipmap-xxhdpi/icon_avatar_male.webp
Normal file
After Width: | Height: | Size: 9.3 KiB |
Before Width: | Height: | Size: 3.7 KiB |
After Width: | Height: | Size: 2.9 KiB |
Before Width: | Height: | Size: 3.5 KiB |
After Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 3.8 KiB |
After Width: | Height: | Size: 2.9 KiB |
Before Width: | Height: | Size: 3.5 KiB |
After Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 2.8 KiB |
After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 2.9 KiB |
After Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 2.5 KiB |
After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 2.8 KiB |
After Width: | Height: | Size: 2.0 KiB |
Before Width: | Height: | Size: 2.4 KiB |
After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 2.9 KiB |
After Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 2.6 KiB |
After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 3.7 KiB |
After Width: | Height: | Size: 2.7 KiB |
Before Width: | Height: | Size: 3.6 KiB |
After Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 3.8 KiB |
After Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 3.7 KiB |
After Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 3.6 KiB |
After Width: | Height: | Size: 2.7 KiB |
Before Width: | Height: | Size: 3.4 KiB |
After Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 3.7 KiB |
After Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 3.5 KiB |
After Width: | Height: | Size: 2.4 KiB |