summaryrefslogtreecommitdiffstats
path: root/nihav-core/src/scale/kernel.rs
diff options
context:
space:
mode:
authorKostya Shishkov <[email protected]>2019-02-14 16:14:06 +0100
committerKostya Shishkov <[email protected]>2019-04-29 14:55:10 +0200
commit03accf760cf79bc56d7c6dc6e82cd885fb7e1e13 (patch)
treecfebedfeebe47530c9f3c5c0480c7f79c043d2ed /nihav-core/src/scale/kernel.rs
parentc7d8d94809fd5cdebc191c2ff86aa9c0c2d77dbf (diff)
scaler initial work
Diffstat (limited to 'nihav-core/src/scale/kernel.rs')
-rw-r--r--nihav-core/src/scale/kernel.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/nihav-core/src/scale/kernel.rs b/nihav-core/src/scale/kernel.rs
new file mode 100644
index 0000000..84a69b4
--- /dev/null
+++ b/nihav-core/src/scale/kernel.rs
@@ -0,0 +1,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);
+}