use moq_net::path::RelativeOwned;
use crate::Ladder;
#[derive(Clone, Debug, Default)]
#[non_exhaustive]
pub struct Config {
pub ladder: Ladder,
pub source: Option<RelativeOwned>,
pub encoder: moq_video::encode::Kind,
pub decoder: moq_video::decode::Kind,
pub resize: moq_video::resize::Config,
}
impl Config {
pub(crate) fn feed_decoder(&self) -> moq_video::decode::Config {
let mut decoder = moq_video::decode::Config::new();
decoder.kind = self.decoder.clone();
decoder.output = self.resize.output;
decoder
}
}