Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions crates/gliff-server/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@ struct Cli {
/// GLIFF_CAPTURE environment variable.
#[arg(long, value_parser = ["auto", "dmabuf", "shm"])]
capture: Option<String>,
/// Bits per pixel per frame (per stream) the frame rate is chosen for:
/// the stream runs at the highest frame rate the link pays for at this
/// quality, up to the session's ceiling. Higher is sharper and slower.
#[arg(long, default_value_t = rate::QUALITY_BPP)]
quality_bpp: f64,
}

fn main() -> Result<()> {
Expand Down Expand Up @@ -105,6 +110,7 @@ fn main() -> Result<()> {
video: gliff_sw::VideoMode::resolve(cli.video.as_deref()),
full_chroma: cli.full_chroma,
capture: hypr_capture::CaptureMode::resolve(cli.capture.as_deref()),
quality_bpp: cli.quality_bpp,
};

let rt = tokio::runtime::Builder::new_current_thread()
Expand Down
Loading