aboutsummaryrefslogtreecommitdiff
path: root/evc/src/refsampler.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2022-12-07 17:16:40 +0100
committermetamuffin <metamuffin@disroot.org>2022-12-07 17:16:40 +0100
commit85d20c4f4cf3656fbf7c27b6b8bbf9536e3ae04d (patch)
tree06497577894131a66f3f4874a9865da5b814fe17 /evc/src/refsampler.rs
parenta713143ef9c1187c37004043b1d3322d773f9ea0 (diff)
downloadvideo-codec-experiments-85d20c4f4cf3656fbf7c27b6b8bbf9536e3ae04d.tar
video-codec-experiments-85d20c4f4cf3656fbf7c27b6b8bbf9536e3ae04d.tar.bz2
video-codec-experiments-85d20c4f4cf3656fbf7c27b6b8bbf9536e3ae04d.tar.zst
refactor, matrix math
Diffstat (limited to 'evc/src/refsampler.rs')
-rw-r--r--evc/src/refsampler.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/evc/src/refsampler.rs b/evc/src/refsampler.rs
new file mode 100644
index 0000000..95e123b
--- /dev/null
+++ b/evc/src/refsampler.rs
@@ -0,0 +1,14 @@
+use crate::{helpers::{matrix::Mat2, vector::Vec2}, frame::Frame};
+
+pub struct Sampler {
+ translation: Vec2<f32>,
+ transform: Mat2<f32>,
+
+ value_scale: f32,
+}
+
+impl Sampler {
+ pub fn sample(&self, frame: &Frame, p: Vec2<f32>) {
+
+ }
+}