View source on GitHub
|
Stores the ctypes signature information for a C function.
mp.tasks.vision.drawing_styles.face_landmarker.mediapipe_c_utils.CFunction(
func_name: str, argtypes: list[Any], restype: Any
)
Attributes | |
|---|---|
func_name
|
The name of the C function. |
argtypes
|
The ctypes types for the function arguments. |
restype
|
The ctypes type for the function's return value. |
Methods
create_python_wrapper
create_python_wrapper(
lib: ctypes.CDLL, executor: concurrent.futures.Executor
) -> Callable[..., Any]
Creates a callable wrapper that executes the C function on the executor.
| Args | |
|---|---|
lib
|
The ctypes shared library. |
executor
|
The executor to use for the C function. |
| Returns | |
|---|---|
| A callable that executes the C function on the executor. |
__eq__
__eq__(
other
)
View source on GitHub