Crates.io | xmf-sys |
lib.rs | xmf-sys |
version | 0.2.0 |
source | src |
created_at | 2024-07-26 09:20:28.199862 |
updated_at | 2024-07-28 17:27:03.150906 |
description | Bindings to XMF native library: eXtreme Media Foundation |
homepage | https://github.com/Devolutions/cadeau |
repository | https://github.com/Devolutions/cadeau |
max_upload_size | |
id | 1315956 |
size | 14,174 |
Low-level and unidiomatic bindings to the XMF library.
It’s possible to choose between dynamically loading the library and regular static / dynamic linking at build-time for a total of three options.
XMF_DYNAMIC
The shared library is not required when building the binary, but is required when executing it.
static
XMF_STATIC
The static library is required when building the binary, and no additional dependency is required when executing the binary.
You can specify a search path for the static library using XMF_SEARCH_PATH
env variable.
dlopen
The shared library is not required when building the binary, and is not required when executing the binary either.
However, you need to programmatically load the file before using any FFI function by using the init
function.
The rest of the API is identical except for this init
function.
You can check dynamically if the library has been loaded using the is_init
function.
This function is annotated with #[inline]
and compiles down to true
when the dlopen
feature is not enabled.
Available at the release page of the GitHub repository.