mirror of
https://github.com/lifegpc/pixiv_downloader.git
synced 2026-07-08 01:32:41 +08:00
8
src/opt/crf.rs
Normal file
8
src/opt/crf.rs
Normal 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,
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user