aboutsummaryrefslogtreecommitdiff
path: root/evc/src/pixel.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2022-12-06 17:45:26 +0100
committermetamuffin <metamuffin@disroot.org>2022-12-06 17:45:26 +0100
commite3c742ff04a665c70c029f266aa0fe72e12ac72c (patch)
treee6a262a223d151afd804359e243cc5d0301e732f /evc/src/pixel.rs
parent849c3769fbd38940c9bfa73bcea160848a38d9b6 (diff)
downloadvideo-codec-experiments-e3c742ff04a665c70c029f266aa0fe72e12ac72c.tar
video-codec-experiments-e3c742ff04a665c70c029f266aa0fe72e12ac72c.tar.bz2
video-codec-experiments-e3c742ff04a665c70c029f266aa0fe72e12ac72c.tar.zst
vec2 everywhere
Diffstat (limited to 'evc/src/pixel.rs')
-rw-r--r--evc/src/pixel.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/evc/src/pixel.rs b/evc/src/pixel.rs
index aaf8d83..b3ef841 100644
--- a/evc/src/pixel.rs
+++ b/evc/src/pixel.rs
@@ -19,6 +19,7 @@ impl Ser for Pixel {
}
impl Pixel {
+ pub const BLACK: Pixel = Pixel { r: 0, g: 0, b: 0 };
#[inline]
pub fn distance(a: Pixel, b: Pixel) -> f64 {
let (rd, gd, bd) = (