diff --git a/ffimage-yuv/src/lib.rs b/ffimage-yuv/src/lib.rs index 3a97e13..c8daad9 100644 --- a/ffimage-yuv/src/lib.rs +++ b/ffimage-yuv/src/lib.rs @@ -1,2 +1,4 @@ +#![no_std] + pub mod yuv; pub mod yuv422; diff --git a/ffimage-yuv/src/yuv.rs b/ffimage-yuv/src/yuv.rs index 5c49abe..773d1b6 100644 --- a/ffimage-yuv/src/yuv.rs +++ b/ffimage-yuv/src/yuv.rs @@ -9,7 +9,6 @@ use ffimage::color::rgb::*; use ffimage::Pixel; /// YUV pixel -#[repr(C)] #[derive(Debug, Default, Clone, Copy, PartialEq, Eq)] pub struct Yuv(pub [T; 3]); diff --git a/ffimage-yuv/src/yuv422.rs b/ffimage-yuv/src/yuv422.rs index 62d2fd5..b931548 100644 --- a/ffimage-yuv/src/yuv422.rs +++ b/ffimage-yuv/src/yuv422.rs @@ -8,7 +8,6 @@ use crate::yuv::*; pub type Yuyv = Yuv422; pub type Uyvy = Yuv422; -#[repr(C)] #[derive(Default, Debug, Copy, Clone, PartialEq, Eq)] pub struct Yuv422< T, diff --git a/ffimage/src/color/gray.rs b/ffimage/src/color/gray.rs index fb2473c..caa421e 100644 --- a/ffimage/src/color/gray.rs +++ b/ffimage/src/color/gray.rs @@ -5,7 +5,6 @@ use num::FromPrimitive; use crate::{color::rgb::Rgb, Pixel}; /// Grayscale pixel -#[repr(C)] #[derive(Debug, Default, Clone, Copy, PartialEq, Eq)] pub struct Gray(pub [T; 1]); diff --git a/ffimage/src/color/rgb.rs b/ffimage/src/color/rgb.rs index 0ec9b8c..4f10c44 100644 --- a/ffimage/src/color/rgb.rs +++ b/ffimage/src/color/rgb.rs @@ -5,7 +5,6 @@ use num::FromPrimitive; use crate::Pixel; /// RGB pixel -#[repr(C)] #[derive(Debug, Default, Clone, Copy, PartialEq, Eq)] pub struct Rgb(pub [T; 3]); @@ -81,7 +80,6 @@ where } /// RGB pixel with alpha channel -#[repr(C)] #[derive(Debug, Default, Clone, Copy, PartialEq, Eq)] pub struct Rgba( pub [T; 4],