FaceShapeAreaOptions
滤镜效果选项。
C++
struct FaceShapeAreaOptions {
enum FACE_SHAPE_AREA {
FACE_SHAPE_AREA_NONE = -1,
FACE_SHAPE_AREA_HEADSCALE = 0,
FACE_SHAPE_AREA_FOREHEAD = 1,
FACE_SHAPE_AREA_FACECONTOUR = 2,
FACE_SHAPE_AREA_FACELENGTH = 3,
FACE_SHAPE_AREA_FACEWIDTH = 4,
FACE_SHAPE_AREA_CHEEKBONE = 5,
FACE_SHAPE_AREA_CHEEK = 6,
FACE_SHAPE_AREA_CHIN = 7,
FACE_SHAPE_AREA_EYESCALE = 8,
FACE_SHAPE_AREA_NOSELENGTH = 9,
FACE_SHAPE_AREA_NOSEWIDTH = 10,
FACE_SHAPE_AREA_MOUTHSCALE = 11,
};
FACE_SHAPE_AREA shapeArea;
int shapeIntensity;
FaceShapeAreaOptions(FACE_SHAPE_AREA shapeArea, int areaIntensity) : shapeArea(shapeArea), shapeIntensity(areaIntensity) {}
FaceShapeAreaOptions() : shapeArea(FACE_SHAPE_AREA_NONE), shapeIntensity(0) {}
};
shapeArea
美型部位,详见 FACE_SHAPE_AREA。
shapeIntensity
修饰力度。各部位的修饰力度定义(包括修饰的方向、范围、预设值等)有所不同,详见 FACE_SHAPE_AREA。