MCPcopy Create free account
hub / github.com/BabitMF/bmf / PYBIND11_MODULE

Function PYBIND11_MODULE

bmf/python/py_bmf.cpp:30–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28#endif
29
30PYBIND11_MODULE(_bmf, m) {
31 m.doc() = "Bytedance Media Framework";
32
33 auto sdk = m.def_submodule("sdk");
34 module_sdk_bind(sdk);
35
36 auto engine = m.def_submodule("engine");
37 engine_bind(engine);
38
39 m.def("get_version", []() { return BMF_BUILD_VERSION; });
40
41 m.def("get_commit", []() { return BMF_BUILD_COMMIT; });
42
43#ifdef BMF_ENABLE_FFMPEG
44 bmf_ffmpeg_bind(sdk);
45#endif
46}

Callers

nothing calls this directly

Calls 3

module_sdk_bindFunction · 0.85
engine_bindFunction · 0.85
bmf_ffmpeg_bindFunction · 0.85

Tested by

no test coverage detected