Add new option: x264-crf ( #330

Fix typo in x264-profile option handle
This commit is contained in:
2023-03-14 12:57:59 +00:00
committed by GitHub
parent ed3df5a337
commit 66eaae2a32
7 changed files with 94 additions and 5 deletions

8
src/opt/crf.rs Normal file
View File

@@ -0,0 +1,8 @@
use json::JsonValue;
pub fn check_crf(obj: &JsonValue) -> bool {
match obj.as_f32() {
Some(crf) => crf >= -1f32,
None => false,
}
}

View File

@@ -1,5 +1,8 @@
/// Author name filters
pub mod author_name_filter;
#[cfg(feature = "ugoira")]
/// libx264 Constant Rate Factor settings
pub mod crf;
/// Proxy settings
pub mod proxy;
pub mod size;