use crate::Result;
pub struct PreviewOutput {
outputs: Vec<String>,
}
impl PreviewOutput {
#[must_use]
pub fn new() -> Self {
Self {
outputs: Vec::new(),
}
}
pub fn add_output(&mut self, name: String) {
self.outputs.push(name);
}
pub fn send(&mut self, _frame: &[u8], _width: usize, _height: usize) -> Result<()> {
Ok(())
}
}
impl Default for PreviewOutput {
fn default() -> Self {
Self::new()
}
}