pub struct Config {
pub decode_pool_size: usize,
pub decoder_view: usize,
pub decoders: usize,
pub filterers: usize,
pub output_width: usize,
pub output_height: usize,
pub output_pix_fmt: String,
pub encoder: Option<EncoderConfig>,
pub format: Option<String>,
}Expand description
Config for a spesific run of a vidformer spec
This is a collection of settings that are used to execute a spec. This combines information about the output with internal performance knobs.
The max number of frames in memory is roughly decoders + decode_pool_size + decoder_view
Fields§
§decode_pool_size: usizeThe number of frames which can be fit in the decode pool
decoder_view: usizeHow many output frames can be active at once This also limits how many frames can be in the filters + encode buffer at once
decoders: usizeHow many decoders can be active at once
filterers: usizeHow many filter threads to run
output_width: usize§output_height: usize§output_pix_fmt: String§encoder: Option<EncoderConfig>Configuration to use for output encoder
format: Option<String>The name of the format to use for output. If None, the format will be inferred from the output path.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Config
impl<'de> Deserialize<'de> for Config
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)