Update license

This commit is contained in:
Tony Klink 2024-06-06 20:41:39 -06:00
parent 8ab8cdedbd
commit 35bdddc173
Signed by: klink
GPG key ID: 85175567C4D19231
7 changed files with 16 additions and 4 deletions

7
Cargo.lock generated
View file

@ -13,4 +13,11 @@ name = "live-link-face"
version = "0.1.0"
dependencies = [
"byteorder",
"log",
]
[[package]]
name = "log"
version = "0.4.21"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "90ed8c1e510134f979dbc4f070f87d4313098b704861a105fe34231c70a3901c"

View file

@ -9,6 +9,7 @@ edition = "2021"
[dependencies]
byteorder = "1.5.0"
log = "0.4.21"
[profile.release]
opt-level = 'z' # Optimize for size

3
LICENSE-COMMERCIAL Normal file
View file

@ -0,0 +1,3 @@
Copyright (C) 2024 Klink
You can buy this software to be excluded from AGPLv3+NIGGER obligations

View file

@ -8,4 +8,6 @@ assert!(face_data.0); // 'true' means that there is face data. false - returns e
let eye_blink_left = face_data.1.get_blendshape(FaceBlendShape::EyeBlinkLeft);
```
This software is double-licensed for both commercial and hobby usage
This library is inspired by https://github.com/JimWest/PyLiveLinkFace

View file

@ -16,11 +16,11 @@ fn main() -> std::io::Result<()> {
// and send data back to origin.
let buf = &mut buf[..amt];
let face = LiveLinkFace::decode(buf);
shitty_print(face.1);
print_values(face.1);
}
}
fn shitty_print(face_data: LiveLinkFace) {
fn print_values(face_data: LiveLinkFace) {
print!("{}[2J", 27 as char);
stdout().flush().unwrap();
println!(

View file

@ -169,7 +169,7 @@ impl LiveLinkFace {
let data_length = i8::from_be_bytes(int_bytes.try_into().unwrap());
if data_length != 61 {
println!(
log::debug!(
"Blendshape data is malformed. got: {}; requred: 61",
data_length
);
@ -182,7 +182,6 @@ impl LiveLinkFace {
);
}
// println!("vata: {:?}", vata);
let mut live_link_face = LiveLinkFace::new(name, uuid, fps);
live_link_face.version = version as u32;
live_link_face.frames = frame_number as u32;