SDK 2.0.0. Namespace
facebetter. Same public C++ API as Windows. Headers: facebetter/*.h. Enums: Parameter enums. Auth: Auth & License.Linux notes
- Ship
libfacebetter.so. SetLD_LIBRARY_PATH, rpath, orldconfig. - Build the SDK with
./scripts/build_linux.sh(outputbuild/linux/release) or CMake. resource_pathmust be theresource.fbdfile.SetRenderViewis not available.external_context = trueuses the calling thread’s current GL context (GLFW / EGL / OSMesa).
Logging
SetLogConfig before Create.
Engine
EngineConfig
Skin
Reshape
Reshape list: Parameter enums.
Body reshape
BodyReshape list: Parameter enums. Requires resource_body.fbd. See Optional resource packs.
Makeup
Chroma key and virtual background
Filter and sticker
Path or encoded.fbd bytes. No register / ID API. Takes effect on the next ProcessImage.
resource_3d.fbd before 3D stickers, resource_body.fbd before body reshape). See Optional resource packs.
Stats, callbacks, process
frame->type to FrameType::Image or FrameType::Video.
Events
Image
CreateWithFile, Create, CreateWithRGBA/BGRA/RGB/BGR, CreateWithI420/NV12/NV21, CreateWithTexture.
Ops: Rotate, Mirror("horizontal"|"vertical"|"both"), SetMirror, Convert, ToFile.
Accessors: Width/Height/Stride/Size/GetFormat/Data, YUV planes, Texture(), Buffer(). Field: FrameType type.
Error codes
Serialize
ProcessImage on one thread. Pixel Data() pointers are read-only.
