补充美颜模型和美颜配置
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
package com.yunbao.faceunity.entity;
|
||||
|
||||
public class AnimationFilterBean {
|
||||
private int style=0;
|
||||
private int iconId;
|
||||
|
||||
public AnimationFilterBean(int style, int iconId) {
|
||||
this.style = style;
|
||||
this.iconId = iconId;
|
||||
}
|
||||
|
||||
public int getStyle() {
|
||||
return style;
|
||||
}
|
||||
|
||||
public void setStyle(int style) {
|
||||
this.style = style;
|
||||
}
|
||||
|
||||
public int getIconId() {
|
||||
return iconId;
|
||||
}
|
||||
|
||||
public void setIconId(int iconId) {
|
||||
this.iconId = iconId;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package com.yunbao.faceunity.entity
|
||||
|
||||
/**
|
||||
* 道具
|
||||
* @property iconId Int 图标
|
||||
* @property path String? Animoji 道具路径
|
||||
* @constructor
|
||||
*/
|
||||
data class AnimojiBean(val iconId: Int, val path: String?)
|
||||
@@ -0,0 +1,10 @@
|
||||
package com.yunbao.faceunity.entity
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* DESC:
|
||||
* Created on 2020/12/4
|
||||
*
|
||||
*/
|
||||
data class AvatarBean(val iconId: Int, val des: String)
|
||||
@@ -0,0 +1,11 @@
|
||||
package com.yunbao.faceunity.entity
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* DESC:
|
||||
* Created on 2020/12/4
|
||||
*
|
||||
*/
|
||||
|
||||
data class BgSegGreenBackgroundBean(val desRes: Int, val iconRes: Int, val filePath: String? = null)
|
||||
@@ -0,0 +1,18 @@
|
||||
package com.yunbao.faceunity.entity
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* DESC:
|
||||
* Created on 2020/12/4
|
||||
*
|
||||
*/
|
||||
|
||||
data class BgSegGreenBean(val key: String, val desRes: Int, val closeRes: Int, val openRes: Int, val type: ButtonType) {
|
||||
enum class ButtonType{
|
||||
NORMAL1_BUTTON,//普通一号按钮
|
||||
NORMAL2_BUTTON,//普通二号按钮
|
||||
BACK_BUTTON,//返回按钮
|
||||
SWITCH_BUTTON//切换按钮,切换整个按钮功能
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
package com.yunbao.faceunity.entity
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* DESC:
|
||||
* Created on 2020/12/4
|
||||
*
|
||||
*/
|
||||
|
||||
data class BgSegGreenSafeAreaBean(val iconRes: Int, val type: ButtonType, val filePath: String? = null,val isAssetFile: Boolean = true) {
|
||||
|
||||
constructor(iconRes: Int, type: ButtonType) : this(
|
||||
iconRes,
|
||||
type,
|
||||
null,
|
||||
true
|
||||
)
|
||||
|
||||
constructor(iconRes: Int, type: ButtonType, filePath :String) : this(
|
||||
iconRes,
|
||||
type,
|
||||
filePath,
|
||||
true
|
||||
)
|
||||
enum class ButtonType{
|
||||
NORMAL1_BUTTON,//普通一号按钮,普通安全区域按钮
|
||||
NORMAL2_BUTTON,//普通二号按钮,用于自定义按钮
|
||||
BACK_BUTTON,//返回按钮
|
||||
NONE_BUTTON,//不选择按钮
|
||||
}
|
||||
}
|
||||
@@ -1,70 +0,0 @@
|
||||
package com.yunbao.faceunity.entity;
|
||||
|
||||
/**
|
||||
* DESC:美颜
|
||||
* Created on 2021/4/26
|
||||
*/
|
||||
public class FaceBeautyBean {
|
||||
|
||||
private String key;//名称标识
|
||||
private int desRes;//描述
|
||||
private int closeRes;//图片
|
||||
private int openRes;//图片
|
||||
private int toastDesRes;
|
||||
private boolean canUseFunction;
|
||||
private ButtonType buttonType=ButtonType.NORMAL_BUTTON;
|
||||
|
||||
public FaceBeautyBean(String key, int desRes, int closeRes, int openRes) {
|
||||
this.key = key;
|
||||
this.desRes = desRes;
|
||||
this.closeRes = closeRes;
|
||||
this.openRes = openRes;
|
||||
}
|
||||
|
||||
public FaceBeautyBean(String key, int desRes, int closeRes, int openRes, int toastDesRes, boolean canUseFunction) {
|
||||
this.key = key;
|
||||
this.desRes = desRes;
|
||||
this.closeRes = closeRes;
|
||||
this.openRes = openRes;
|
||||
this.toastDesRes = toastDesRes;
|
||||
this.canUseFunction = canUseFunction;
|
||||
this.buttonType = buttonType;
|
||||
}
|
||||
|
||||
public String getKey() {
|
||||
return key;
|
||||
}
|
||||
|
||||
public void setKey(String key) {
|
||||
this.key = key;
|
||||
}
|
||||
|
||||
public int getDesRes() {
|
||||
return desRes;
|
||||
}
|
||||
|
||||
public void setDesRes(int desRes) {
|
||||
this.desRes = desRes;
|
||||
}
|
||||
|
||||
public int getCloseRes() {
|
||||
return closeRes;
|
||||
}
|
||||
|
||||
public void setCloseRes(int closeRes) {
|
||||
this.closeRes = closeRes;
|
||||
}
|
||||
|
||||
public int getOpenRes() {
|
||||
return openRes;
|
||||
}
|
||||
|
||||
public void setOpenRes(int openRes) {
|
||||
this.openRes = openRes;
|
||||
}
|
||||
enum ButtonType{
|
||||
NORMAL_BUTTON,
|
||||
BACK_BUTTON,
|
||||
SUB_ITEM_BUTTON
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
package com.yunbao.faceunity.entity
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @property key String 名称标识
|
||||
* @property desRes Int 描述
|
||||
* @property closeRes Int 图片
|
||||
* @property openRes Int 图片
|
||||
* @property buttonType 按钮类型
|
||||
* @constructor
|
||||
*/
|
||||
data class FaceBeautyBean(
|
||||
val key: String,
|
||||
val desRes: Int,
|
||||
val closeRes: Int,
|
||||
val openRes: Int,
|
||||
val toastDesRes: Int,
|
||||
val canUseFunction:Boolean = true,
|
||||
val buttonType: ButtonType = ButtonType.NORMAL_BUTTON//定义一项按钮功能 普通按钮 返回按钮 子项按钮
|
||||
) {
|
||||
constructor(key: String, desRes: Int, closeRes: Int, openRes: Int) : this(
|
||||
key,
|
||||
desRes,
|
||||
closeRes,
|
||||
openRes,
|
||||
0,
|
||||
true,
|
||||
ButtonType.NORMAL_BUTTON
|
||||
)
|
||||
|
||||
constructor(key: String, desRes: Int, closeRes: Int, openRes: Int,toastDesRes: Int,canUseFunction: Boolean) : this(
|
||||
key,
|
||||
desRes,
|
||||
closeRes,
|
||||
openRes,
|
||||
toastDesRes,
|
||||
canUseFunction,
|
||||
ButtonType.NORMAL_BUTTON
|
||||
)
|
||||
|
||||
enum class ButtonType{
|
||||
NORMAL_BUTTON,
|
||||
BACK_BUTTON,
|
||||
SUB_ITEM_BUTTON
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package com.yunbao.faceunity.entity
|
||||
|
||||
/**
|
||||
* 滤镜
|
||||
* @property key String 名称标识
|
||||
* @property imageRes Int 图片
|
||||
* @property desRes Int 描述
|
||||
* @constructor
|
||||
*/
|
||||
data class FaceBeautyStyleBean @JvmOverloads constructor(val key: String, val imageRes: Int, val desRes: Int)
|
||||
@@ -0,0 +1,25 @@
|
||||
package com.yunbao.faceunity.entity;
|
||||
|
||||
public class FunctionEnum {
|
||||
public final static int FACE_BEAUTY = 1;
|
||||
public final static int MAKE_UP = 2;
|
||||
public final static int STICKER = 3;
|
||||
public final static int ANIMOJI = 4;
|
||||
public final static int HAIR_BEAUTY = 5;
|
||||
public final static int LIGHT_MAKEUP = 6;
|
||||
public final static int AR_MASK = 7;
|
||||
public final static int BIG_HEAD = 8;
|
||||
public final static int POSTER_CHANGE = 9;
|
||||
public final static int EXPRESSION_RECOGNITION = 10;
|
||||
public final static int MUSIC_FILTER = 11;
|
||||
public final static int FACE_WARP = 12;
|
||||
public final static int BODY_BEAUTY = 13;
|
||||
public final static int AVATAR = 14;
|
||||
public final static int ACTION_RECOGNITION = 15;
|
||||
public final static int PORTRAIT_SEGMENT = 16;
|
||||
public final static int GESTURE_RECOGNITION = 17;
|
||||
public final static int BG_SEG_GREEN = 18;
|
||||
public final static int HUMAN_OUTLINE = 19;
|
||||
public final static int BG_SEG_CUSTOM = 20;
|
||||
public final static int FINE_STICKER = 21;
|
||||
}
|
||||
@@ -0,0 +1,67 @@
|
||||
package com.yunbao.faceunity.entity;
|
||||
|
||||
public class LightMakeupBean {
|
||||
int nameRes;
|
||||
int iconRes;
|
||||
String key;
|
||||
double intensity;
|
||||
String filterName;
|
||||
double filterIntensity;
|
||||
|
||||
public LightMakeupBean(int nameRes, int iconRes, String key, double intensity, String filterName, double filterIntensity) {
|
||||
this.nameRes = nameRes;
|
||||
this.iconRes = iconRes;
|
||||
this.key = key;
|
||||
this.intensity = intensity;
|
||||
this.filterName = filterName;
|
||||
this.filterIntensity = filterIntensity;
|
||||
}
|
||||
|
||||
public int getNameRes() {
|
||||
return nameRes;
|
||||
}
|
||||
|
||||
public void setNameRes(int nameRes) {
|
||||
this.nameRes = nameRes;
|
||||
}
|
||||
|
||||
public int getIconRes() {
|
||||
return iconRes;
|
||||
}
|
||||
|
||||
public void setIconRes(int iconRes) {
|
||||
this.iconRes = iconRes;
|
||||
}
|
||||
|
||||
public String getKey() {
|
||||
return key;
|
||||
}
|
||||
|
||||
public void setKey(String key) {
|
||||
this.key = key;
|
||||
}
|
||||
|
||||
public double getIntensity() {
|
||||
return intensity;
|
||||
}
|
||||
|
||||
public void setIntensity(double intensity) {
|
||||
this.intensity = intensity;
|
||||
}
|
||||
|
||||
public String getFilterName() {
|
||||
return filterName;
|
||||
}
|
||||
|
||||
public void setFilterName(String filterName) {
|
||||
this.filterName = filterName;
|
||||
}
|
||||
|
||||
public double getFilterIntensity() {
|
||||
return filterIntensity;
|
||||
}
|
||||
|
||||
public void setFilterIntensity(double filterIntensity) {
|
||||
this.filterIntensity = filterIntensity;
|
||||
}
|
||||
}
|
||||
@@ -1,51 +0,0 @@
|
||||
package com.yunbao.faceunity.entity;
|
||||
|
||||
/**
|
||||
* 模型单项补充模型
|
||||
*/
|
||||
public class ModelAttributeData {
|
||||
private double defaultV = 0.0;//默认值
|
||||
private double standV = 0.0;//无变化时候的基准值
|
||||
private double minRange = 0.0;//范围最小值
|
||||
private double maxRange = 1.0;//范围最大值
|
||||
|
||||
public ModelAttributeData(double defaultV, double standV, double minRange, double maxRange) {
|
||||
this.defaultV = defaultV;
|
||||
this.standV = standV;
|
||||
this.minRange = minRange;
|
||||
this.maxRange = maxRange;
|
||||
}
|
||||
|
||||
|
||||
public double getDefaultV() {
|
||||
return defaultV;
|
||||
}
|
||||
|
||||
public void setDefaultV(double defaultV) {
|
||||
this.defaultV = defaultV;
|
||||
}
|
||||
|
||||
public double getStandV() {
|
||||
return standV;
|
||||
}
|
||||
|
||||
public void setStandV(double standV) {
|
||||
this.standV = standV;
|
||||
}
|
||||
|
||||
public double getMinRange() {
|
||||
return minRange;
|
||||
}
|
||||
|
||||
public void setMinRange(double minRange) {
|
||||
this.minRange = minRange;
|
||||
}
|
||||
|
||||
public double getMaxRange() {
|
||||
return maxRange;
|
||||
}
|
||||
|
||||
public void setMaxRange(double maxRange) {
|
||||
this.maxRange = maxRange;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package com.yunbao.faceunity.entity
|
||||
|
||||
|
||||
/**
|
||||
* 模型单项补充模型
|
||||
* @property default Double 默认值
|
||||
* @property stand Double 无变化时候的基准值
|
||||
* @property minRange Double 范围最小值
|
||||
* @property maxRange Double 范围最大值
|
||||
* @constructor
|
||||
*/
|
||||
data class ModelAttributeData(val default: Double=0.0, val stand: Double = 0.0, val minRange: Double = 0.0, val maxRange: Double = 1.0)
|
||||
@@ -1,32 +0,0 @@
|
||||
package com.yunbao.faceunity.entity;
|
||||
|
||||
/**
|
||||
* DESC:道具
|
||||
* Created on 2021/4/26
|
||||
*/
|
||||
public class PropBean {
|
||||
private int iconId;
|
||||
private String path;
|
||||
|
||||
|
||||
public PropBean(int iconId, String path) {
|
||||
this.iconId = iconId;
|
||||
this.path = path;
|
||||
}
|
||||
|
||||
public int getIconId() {
|
||||
return iconId;
|
||||
}
|
||||
|
||||
public void setIconId(int iconId) {
|
||||
this.iconId = iconId;
|
||||
}
|
||||
|
||||
public String getPath() {
|
||||
return path;
|
||||
}
|
||||
|
||||
public void setPath(String path) {
|
||||
this.path = path;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package com.yunbao.faceunity.entity
|
||||
|
||||
/**
|
||||
* 道具
|
||||
* @property iconId Int 图标
|
||||
* @property path String 道具路径
|
||||
* @property descId Int 道具提示
|
||||
* @constructor
|
||||
*/
|
||||
data class PropBean @JvmOverloads constructor(
|
||||
val iconId: Int,
|
||||
val path: String?,
|
||||
val descId: Int = 0
|
||||
)
|
||||
@@ -0,0 +1,18 @@
|
||||
package com.yunbao.faceunity.entity
|
||||
|
||||
/**
|
||||
* 道具
|
||||
* @property iconId Int 图标
|
||||
* @property path String 道具路径
|
||||
* @property descId Int 道具提示
|
||||
* @property descId Int 类型 -2 为添加事件 -1为空 其他多道具类型
|
||||
* @property iconPath 图标路径
|
||||
* @constructor
|
||||
*/
|
||||
data class PropCustomBean @JvmOverloads constructor(
|
||||
val iconId: Int,
|
||||
val path: String?,
|
||||
val type: Int = -1,
|
||||
val descId: Int = 0,
|
||||
val iconPath: String? = null
|
||||
)
|
||||
Reference in New Issue
Block a user