Update license
This commit is contained in:
parent
8ab8cdedbd
commit
35bdddc173
7
Cargo.lock
generated
7
Cargo.lock
generated
|
@ -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"
|
||||
|
|
|
@ -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
3
LICENSE-COMMERCIAL
Normal file
|
@ -0,0 +1,3 @@
|
|||
Copyright (C) 2024 Klink
|
||||
|
||||
You can buy this software to be excluded from AGPLv3+NIGGER obligations
|
|
@ -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
|
||||
|
|
|
@ -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!(
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue