Skip to main content

scal_core/
settings.rs

1#![allow(missing_docs)]
2//! Internal settings types read from Config.toml for each animation.
3use serde::{Deserialize, Serialize};
4
5#[derive(Clone, Copy, Debug, Serialize, Deserialize)]
6pub struct RenderingSettings {
7    pub width: u32,
8    pub height: u32,
9    pub fps: u32,
10    pub buffer_count: u32,
11    pub text_resolution_multiplier: f32,
12}
13
14#[derive(Clone, Debug, Serialize, Deserialize)]
15pub struct EncodingSettings {
16    pub output_path: String,
17    pub codec_type: CodecType,
18}
19
20#[derive(Debug, Clone, Copy, Serialize, Deserialize, PartialEq, Eq)]
21pub enum CodecType {
22    H264,
23    H264Nvenc,
24    H264Amf,
25    H264Qsv,
26    H264Videotoolbox,
27    PRORES,
28}