Linux 说明
- 分发
libfacebetter.so。设置LD_LIBRARY_PATH、rpath 或ldconfig。 - 用
./scripts/build_linux.sh编译 SDK(产物在build/linux/release),或使用 CMake。 resource_path必须是resource.fbd文件。- 没有
SetRenderView。 external_context = true使用调用线程的当前 GL 上下文(GLFW / EGL / OSMesa)。
日志
Create 之前调用 SetLogConfig。
引擎
EngineConfig
皮肤
美型
Reshape 列表见 参数枚举。
美体
BodyReshape 列表见 参数枚举。需要 resource_body.fbd,见 可选资源包。
美妆
色度键与虚拟背景
滤镜与贴纸
路径或编码后的.fbd 字节。没有注册 / ID 接口。在下一次 ProcessImage 后生效。
统计、回调、处理
frame->type 设为 FrameType::Image 或 FrameType::Video。
事件
图像
CreateWithFile、Create、CreateWithRGBA/BGRA/RGB/BGR、CreateWithI420/NV12/NV21、CreateWithTexture。
操作: Rotate、Mirror("horizontal"|"vertical"|"both")、SetMirror、Convert、ToFile。
访问器: Width/Height/Stride/Size/GetFormat/Data、YUV 平面、Texture()、Buffer()。字段:FrameType type。
错误码
将
ProcessImage 串行化到同一线程。Data() 像素指针只读。
