aboutsummaryrefslogtreecommitdiffstats
path: root/nihav-core/src/scale/kernel.rs
blob: 84a69b49a14d08a3c86f3fea1c93f8f824380443 (plain) (blame)
1
2
3
4
5
6
7
use crate::frame::*;
use super::{ScaleInfo, ScaleResult};

pub trait Kernel {
    fn init(&mut self, in_fmt: &ScaleInfo, dest_fmt: &ScaleInfo) -> ScaleResult<NABufferType>;
    fn process(&mut self, pic_in: &NABufferType, pic_out: &mut NABufferType);
}