Skip to main content
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. Set LD_LIBRARY_PATH, rpath, or ldconfig.
  • Build the SDK with ./scripts/build_linux.sh (output build/linux/release) or CMake.
  • resource_path must be the resource.fbd file.
  • SetRenderView is not available.
  • external_context = true uses the calling thread’s current GL context (GLFW / EGL / OSMesa).

Logging

Call SetLogConfig before Create.

Engine

EngineConfig


Skin

Reshape

Full Reshape list: Parameter enums.

Body reshape

Full BodyReshape list: Parameter enums. Requires resource_body.fbd. See Optional resource packs.

Makeup

Lipstick is Color only; pupil is Color only; contour is Style only. Values: Parameter enums.

Chroma key and virtual background

Filter and sticker

Path or encoded .fbd bytes. No register / ID API. Takes effect on the next ProcessImage.
Load optional packs first (resource_3d.fbd before 3D stickers, resource_body.fbd before body reshape). See Optional resource packs.

Stats, callbacks, process

Set frame->type to FrameType::Image or FrameType::Video.

Events


Image

Factories: 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.