Compare commits
162 Commits
gong_dev_g
...
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 | ||
|
d79dba045d | ||
|
0646c2c6a7 | ||
|
58ba80929b | ||
|
cf73d3218e | ||
f823f17bca | |||
d63cba7db1 | |||
a454a97c58 | |||
|
0937186c93 | ||
11e0d62dde | |||
f2ccf37022 | |||
eb90ae9e03 | |||
ec5f32cf1e | |||
ec5d4d77db | |||
0c74d81cc6 | |||
|
8e860b80d4 | ||
|
0f03a754c1 | ||
|
2b2fe90520 | ||
|
cbd99e0664 | ||
528647a0bc | |||
|
b4a4302cc7 | ||
|
09395b152e | ||
|
f5d8b7fed1 | ||
|
32257ce5a0 | ||
|
ca13774d87 | ||
|
e79741b297 | ||
238dfcc2d3 | |||
61b1101c3f | |||
daf881f6a7 | |||
38f3b721e0 | |||
04ae7eeacc | |||
d863c0af5a | |||
99c1037a15 | |||
|
3440b71229 | ||
50686957dc | |||
|
214e6f5d89 | ||
2d9e1cd685 | |||
60485deed5 | |||
7196ebd16e | |||
6eee7b9ede | |||
e0405e9c13 | |||
e8e0fc32f9 | |||
3d4ad99c99 | |||
a25e22b142 | |||
3aeabfa32b | |||
47da21351e | |||
451a875526 | |||
dc7b987eda | |||
fe28d3508b | |||
|
cb87974320 | ||
|
dbd684a6e2 | ||
abc37aa486 | |||
3349b2d7df | |||
97d636ddec | |||
3b8aedaa17 | |||
40ba4b8aa8 | |||
f7db0b0768 | |||
ed642f0137 | |||
d1512bc256 | |||
9f90040168 | |||
9ae6fedd8d | |||
516a068c25 | |||
63b7a18c0b | |||
|
6af48002bb | ||
79c730c1b7 | |||
c20a9804e9 | |||
|
96a6b05d03 | ||
ba8090eec7 | |||
e1fd4949b5 | |||
|
08c46a7684 | ||
1cde41f2d0 | |||
092d4cb914 | |||
21ae621343 | |||
048c66736f | |||
d3055d8fb2 | |||
|
b9164b6a08 | ||
|
67e5e4e02f | ||
|
2351618e5a | ||
|
b2e2ca7303 | ||
714e51b621 | |||
efa4c25c4b | |||
|
854cad8ec6 | ||
46fba9429d | |||
c67ed4b736 | |||
|
4a91aafb4b | ||
|
2b20782def | ||
|
152848a04f | ||
|
fe827482c9 | ||
7fc1c2e712 | |||
7a6dfe5a3d | |||
|
96c45820b0 | ||
ac18150503 | |||
|
22b208bcd9 | ||
|
484069dac7 | ||
ade837e85c | |||
12a1f24101 | |||
250d4832a3 | |||
|
93db808f8b | ||
|
59f0fa4acb | ||
8fe6130c81 | |||
9292e6f5c5 | |||
845b217c4d | |||
|
7edd75e223 | ||
|
eb9f615f70 | ||
9c38f40098 | |||
8cae89e7cd |
@ -33,7 +33,8 @@ android {
|
||||
versionName rootProject.ext.android.versionName
|
||||
manifestPlaceholders = rootProject.ext.manifestPlaceholders
|
||||
ndk {
|
||||
abiFilters "armeabi-v7a", "arm64-v8a","x86","x86_64"
|
||||
abiFilters "armeabi-v7a", "arm64-v8a"
|
||||
// abiFilters "armeabi-v7a", "arm64-v8a","x86","x86_64"
|
||||
}
|
||||
}
|
||||
aaptOptions {
|
||||
|
@ -0,0 +1,26 @@
|
||||
package com.yunbao.faceunity;
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
import androidx.test.platform.app.Instrimport com.yunbao.common.utils.MobclickAgent;ntationRegistry;
|
||||
import androidx.test.ext.junit.runners.AndroidJUnit4;
|
||||
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
import static org.junit.Assert.*;
|
||||
|
||||
/**
|
||||
* Instrumented test, which will execute on an Android device.
|
||||
*
|
||||
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
|
||||
*/
|
||||
@RunWith(AndroidJUnit4.class)
|
||||
public class ExampleInstrumentedTest {
|
||||
@Test
|
||||
public void useAppContext() {
|
||||
// Context of the app under test.
|
||||
Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
|
||||
assertEquals("com.yunbao.faceunity.test", appContext.getPackageName());
|
||||
}
|
||||
}
|
@ -38,9 +38,6 @@ import java.util.Locale;
|
||||
import java.util.Map;
|
||||
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 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里使用
|
||||
@ -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 |