phonto 0.3.2

GPU-accelerated video wallpaper program for wayland compositors & MacOS
1
2
3
4
5
6
7
8
9
10
11
12
13
use clap::ValueEnum;

#[derive(Copy, Clone, Debug, ValueEnum)]
pub enum ScaleMode {
    /// Distort the video to fill the screen exactly. Aspect not preserved.
    Stretch,
    /// Preserve aspect, fit entire video inside the screen with letterbox bars.
    Fit,
    /// Preserve aspect, fill the screen by cropping overflow.
    Fill,
    /// Render at native pixel size, centered. Cropped if larger than screen.
    Center,
}