From c4c986c0ef27efa5e4f056f356ae9bdb97b5ec96 Mon Sep 17 00:00:00 2001 From: Brendan Zabarauskas Date: Thu, 11 Jul 2013 16:41:43 +1000 Subject: [PATCH] Remove yuv module --- src/color/color.rs | 2 -- src/color/yuv.rs | 26 -------------------------- 2 files changed, 28 deletions(-) delete mode 100644 src/color/yuv.rs diff --git a/src/color/color.rs b/src/color/color.rs index 09e6c57..56306f6 100644 --- a/src/color/color.rs +++ b/src/color/color.rs @@ -20,14 +20,12 @@ pub use self::hsv::{HSV, ToHSV, HSVA, ToHSVA}; pub use self::rgb::{RGB, ToRGB, RGBA, ToRGBA}; pub use self::srgb::{SRGB, SRGBA}; pub use self::ycbcr::YCbCr; -pub use self::yuv::YUV; pub mod channel; pub mod hsv; pub mod rgb; pub mod srgb; pub mod ycbcr; -pub mod yuv; pub trait Color { pub fn clamp(&self, lo: T, hi: T) -> Self; diff --git a/src/color/yuv.rs b/src/color/yuv.rs deleted file mode 100644 index 6eccf18..0000000 --- a/src/color/yuv.rs +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright 2013 The Lmath Developers. For a full listing of the authors, -// refer to the AUTHORS file at the top-level directory of this distribution. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// http://en.wikipedia.org/wiki/YUV - -#[deriving(Clone, Eq)] -pub struct YUV { y: T, u: T, v: T } - -impl YUV { - #[inline] - pub fn new(y: T, u: T, v: T) -> YUV { - YUV { y: y, u: u, v: v } - } -}