#ltc #synchronization #decoding #audio-video #wrapper #x42ltc #libltc

sys x42ltc-sys

FFI crate for x42’s libltc (Linear/Longitudinal Time Code library)

2 releases

0.0.6 Dec 9, 2023
0.0.5 Sep 5, 2020

#1926 in Encoding

34 downloads per month
Used in x42ltc

LGPL-3.0-or-later

125KB
2.5K SLoC

C 1.5K SLoC // 0.2% comments Rust 1K SLoC // 0.0% comments Shell 94 SLoC // 0.1% comments Automake 63 SLoC // 0.0% comments

Contains (obscure autoconf code, 3KB) vendor/configure.ac

Build Status

Rust wrapper crates for x42’s libltc

This repository holds the sources for the x42ltc and x42ltc-sys crates. x42ltc-sys provides the FFI bindings to the C library, while x42ltc provides a safe Rust wrapper.

libltc by Robin Gareus (a.k.a. x42) supports the decoding and encoding of Linear/Longitudinal Time Code (LTC) signals, which are used for synchronisation in audio/video workflows.

Naming

The name x42ltc was chosen, because the name ltc has already been taken by another project, which seems to be working on a pure Rust LTC library.


lib.rs:

bindgen commandline

The following commandline was used to create the initial bindings:

bindgen vendor/src/ltc.h -o src/bindings.rs --with-derive-defaults

No runtime deps