Compare commits

..

1 Commits

Author SHA1 Message Date
老皮
e50fbefdc1 替换融云IM key 2024-10-14 09:46:08 +08:00
4752 changed files with 61447 additions and 3526 deletions
FaceUnity
build.gradle
src/main
java/com/yunbao/faceunity
res/mipmap-xxhdpi
ico_home_animoji.pngico_home_animoji.webpico_home_beauty.pngico_home_beauty.webpico_home_beauty_body.pngico_home_beauty_body.webpico_home_big_head.pngico_home_big_head.webpico_home_fine_sticker.pngico_home_fine_sticker.webpico_home_makeup.pngico_home_makeup.webpico_home_sticker.pngico_home_sticker.webpicon_animoji_baihu.pngicon_animoji_baihu.webpicon_animoji_baimao.pngicon_animoji_baimao.webpicon_animoji_cartoon_princess.pngicon_animoji_cartoon_princess.webpicon_animoji_douniuquan.pngicon_animoji_douniuquan.webpicon_animoji_frog_st.pngicon_animoji_frog_st.webpicon_animoji_hashiqi.pngicon_animoji_hashiqi.webpicon_animoji_hetun.pngicon_animoji_hetun.webpicon_animoji_huangya.pngicon_animoji_huangya.webpicon_animoji_kaola.pngicon_animoji_kaola.webpicon_animoji_kuloutou.pngicon_animoji_kuloutou.webpicon_animoji_qgirl.pngicon_animoji_qgirl.webpicon_animoji_wuxia.pngicon_animoji_wuxia.webpicon_ar_baozi.pngicon_ar_baozi.webpicon_ar_bluebird.pngicon_ar_bluebird.webpicon_ar_fenhudie.pngicon_ar_fenhudie.webpicon_ar_lanhudie.pngicon_ar_lanhudie.webpicon_ar_tiger.pngicon_ar_tiger.webpicon_ar_tiger_bai.pngicon_ar_tiger_bai.webpicon_ar_tiger_huang.pngicon_ar_tiger_huang.webpicon_ar_xiongmao.pngicon_ar_xiongmao.webpicon_avatar_female.pngicon_avatar_female.webpicon_avatar_male.pngicon_avatar_male.webpicon_beauty_box_angle_close_checked.pngicon_beauty_box_angle_close_checked.webpicon_beauty_box_angle_close_normal.pngicon_beauty_box_angle_close_normal.webpicon_beauty_box_angle_open_checked.pngicon_beauty_box_angle_open_checked.webpicon_beauty_box_angle_open_normal.pngicon_beauty_box_angle_open_normal.webpicon_beauty_box_brow_height_close_checked.pngicon_beauty_box_brow_height_close_checked.webpicon_beauty_box_brow_height_close_normal.pngicon_beauty_box_brow_height_close_normal.webpicon_beauty_box_brow_height_open_checked.pngicon_beauty_box_brow_height_open_checked.webpicon_beauty_box_brow_height_open_normal.pngicon_beauty_box_brow_height_open_normal.webpicon_beauty_box_brow_space_close_checked.pngicon_beauty_box_brow_space_close_checked.webpicon_beauty_box_brow_space_close_normal.pngicon_beauty_box_brow_space_close_normal.webpicon_beauty_box_brow_space_open_checked.pngicon_beauty_box_brow_space_open_checked.webpicon_beauty_box_brow_space_open_normal.pngicon_beauty_box_brow_space_open_normal.webpicon_beauty_box_buffing_close_checked.pngicon_beauty_box_buffing_close_checked.webpicon_beauty_box_buffing_close_normal.pngicon_beauty_box_buffing_close_normal.webpicon_beauty_box_buffing_open_checked.pngicon_beauty_box_buffing_open_checked.webpicon_beauty_box_buffing_open_normal.pngicon_beauty_box_buffing_open_normal.webpicon_beauty_box_cheek_bones_close_checked.pngicon_beauty_box_cheek_bones_close_checked.webpicon_beauty_box_cheek_bones_close_normal.pngicon_beauty_box_cheek_bones_close_normal.webpicon_beauty_box_cheek_bones_open_checked.pngicon_beauty_box_cheek_bones_open_checked.webpicon_beauty_box_cheek_bones_open_normal.pngicon_beauty_box_cheek_bones_open_normal.webp

@ -33,8 +33,7 @@ android {
versionName rootProject.ext.android.versionName
manifestPlaceholders = rootProject.ext.manifestPlaceholders
ndk {
abiFilters "armeabi-v7a", "arm64-v8a"
// abiFilters "armeabi-v7a", "arm64-v8a","x86","x86_64"
abiFilters "armeabi-v7a", "arm64-v8a","x86","x86_64"
}
}
aaptOptions {

@ -38,6 +38,9 @@ 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;
/**
* 美颜模块管理类
@ -175,6 +178,44 @@ 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里使用
@ -237,6 +278,12 @@ public class FaceManager implements SensorEventListener {
}
/**
* 离开渲染界面时注销融云监听器不然会绿屏
*/
public void onClose() {
RCRTCEngine.getInstance().getDefaultVideoStream().setVideoFrameListener(null);
}
/**
* 释放资源

Binary file not shown.

After

(image error) Size: 3.8 KiB

Binary file not shown.

Before

(image error) Size: 2.5 KiB

Binary file not shown.

After

(image error) Size: 2.3 KiB

Binary file not shown.

Before

(image error) Size: 1.3 KiB

Binary file not shown.

After

(image error) Size: 3.0 KiB

Binary file not shown.

Before

(image error) Size: 1.8 KiB

Binary file not shown.

After

(image error) Size: 3.6 KiB

Binary file not shown.

Before

(image error) Size: 2.4 KiB

Binary file not shown.

After

(image error) Size: 3.3 KiB

Binary file not shown.

Before

(image error) Size: 2.2 KiB

Binary file not shown.

After

(image error) Size: 3.1 KiB

Binary file not shown.

Before

(image error) Size: 1.9 KiB

Binary file not shown.

After

(image error) Size: 3.1 KiB

Binary file not shown.

Before

(image error) Size: 1.9 KiB

Binary file not shown.

After

(image error) Size: 276 KiB

Binary file not shown.

Before

(image error) Size: 58 KiB

Binary file not shown.

After

(image error) Size: 12 KiB

Binary file not shown.

Before

(image error) Size: 11 KiB

Binary file not shown.

After

(image error) Size: 163 KiB

Binary file not shown.

Before

(image error) Size: 131 KiB

Binary file not shown.

After

(image error) Size: 11 KiB

Binary file not shown.

Before

(image error) Size: 8.8 KiB

Binary file not shown.

After

(image error) Size: 8.9 KiB

Binary file not shown.

Before

(image error) Size: 7.9 KiB

Binary file not shown.

After

(image error) Size: 14 KiB

Binary file not shown.

Before

(image error) Size: 11 KiB

Binary file not shown.

After

(image error) Size: 12 KiB

Binary file not shown.

Before

(image error) Size: 9.1 KiB

Binary file not shown.

After

(image error) Size: 11 KiB

Binary file not shown.

Before

(image error) Size: 8.5 KiB

Binary file not shown.

After

(image error) Size: 16 KiB

Binary file not shown.

Before

(image error) Size: 14 KiB

Binary file not shown.

After

(image error) Size: 11 KiB

Binary file not shown.

Before

(image error) Size: 9.8 KiB

Binary file not shown.

After

(image error) Size: 78 KiB

Binary file not shown.

Before

(image error) Size: 5.8 KiB

Binary file not shown.

After

(image error) Size: 128 KiB

Binary file not shown.

Before

(image error) Size: 107 KiB

Binary file not shown.

After

(image error) Size: 19 KiB

Binary file not shown.

Before

(image error) Size: 19 KiB

Binary file not shown.

After

(image error) Size: 26 KiB

Binary file not shown.

Before

(image error) Size: 8.7 KiB

Binary file not shown.

After

(image error) Size: 27 KiB

Binary file not shown.

Before

(image error) Size: 9.5 KiB

Binary file not shown.

After

(image error) Size: 27 KiB

Binary file not shown.

Before

(image error) Size: 9.5 KiB

Binary file not shown.

After

(image error) Size: 20 KiB

Binary file not shown.

Before

(image error) Size: 19 KiB

Binary file not shown.

After

(image error) Size: 29 KiB

Binary file not shown.

Before

(image error) Size: 11 KiB

Binary file not shown.

After

(image error) Size: 28 KiB

Binary file not shown.

Before

(image error) Size: 11 KiB

Binary file not shown.

After

(image error) Size: 17 KiB

Binary file not shown.

Before

(image error) Size: 16 KiB

Binary file not shown.

After

(image error) Size: 13 KiB

Binary file not shown.

Before

(image error) Size: 11 KiB

Binary file not shown.

After

(image error) Size: 10 KiB

Binary file not shown.

Before

(image error) Size: 9.3 KiB

Binary file not shown.

After

(image error) Size: 3.7 KiB

Binary file not shown.

Before

(image error) Size: 2.9 KiB

Binary file not shown.

After

(image error) Size: 3.5 KiB

Binary file not shown.

Before

(image error) Size: 2.5 KiB

Binary file not shown.

After

(image error) Size: 3.8 KiB

Binary file not shown.

Before

(image error) Size: 2.9 KiB

Binary file not shown.

After

(image error) Size: 3.5 KiB

Binary file not shown.

Before

(image error) Size: 2.6 KiB

Binary file not shown.

After

(image error) Size: 2.8 KiB

Binary file not shown.

Before

(image error) Size: 1.9 KiB

Binary file not shown.

After

(image error) Size: 2.3 KiB

Binary file not shown.

Before

(image error) Size: 1.6 KiB

Binary file not shown.

After

(image error) Size: 2.9 KiB

Binary file not shown.

Before

(image error) Size: 2.1 KiB

Binary file not shown.

After

(image error) Size: 2.5 KiB

Binary file not shown.

Before

(image error) Size: 1.7 KiB

Binary file not shown.

After

(image error) Size: 2.8 KiB

Binary file not shown.

Before

(image error) Size: 2.0 KiB

Binary file not shown.

After

(image error) Size: 2.4 KiB

Binary file not shown.

Before

(image error) Size: 1.6 KiB

Binary file not shown.

After

(image error) Size: 2.9 KiB

Binary file not shown.

Before

(image error) Size: 2.1 KiB

Binary file not shown.

After

(image error) Size: 2.6 KiB

Binary file not shown.

Before

(image error) Size: 1.8 KiB

Binary file not shown.

After

(image error) Size: 3.7 KiB

Binary file not shown.

Before

(image error) Size: 2.7 KiB

Binary file not shown.

After

(image error) Size: 3.6 KiB

Binary file not shown.

Before

(image error) Size: 2.4 KiB

Binary file not shown.

After

(image error) Size: 3.8 KiB

Binary file not shown.

Before

(image error) Size: 2.8 KiB

Binary file not shown.

After

(image error) Size: 3.7 KiB

Binary file not shown.

Before

(image error) Size: 2.6 KiB

Binary file not shown.

After

(image error) Size: 3.6 KiB

Binary file not shown.

Before

(image error) Size: 2.7 KiB

Binary file not shown.

After

(image error) Size: 3.4 KiB

Binary file not shown.

Before

(image error) Size: 2.3 KiB

Binary file not shown.

After

(image error) Size: 3.7 KiB

Binary file not shown.

Before

(image error) Size: 2.8 KiB

Binary file not shown.

After

(image error) Size: 3.5 KiB

Binary file not shown.

Before

(image error) Size: 2.4 KiB

Some files were not shown because too many files have changed in this diff Show More