From a2a9732ac4617ce4603fc82fc49673597fbd7b1b Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Fri, 14 Jul 2017 18:28:29 +0200 Subject: [PATCH] add YUVA410 formaton --- src/formats.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/formats.rs b/src/formats.rs index 1398bdd..bc23d1e 100644 --- a/src/formats.rs +++ b/src/formats.rs @@ -281,6 +281,14 @@ pub const YUV410_FORMAT: NAPixelFormaton = NAPixelFormaton { model: ColorModel:: chromaton!(yuv8; 2, 2, 2), None, None], elem_size: 0, be: false, alpha: false, palette: false }; +pub const YUVA410_FORMAT: NAPixelFormaton = NAPixelFormaton { model: ColorModel::YUV(YUVSubmodel::YUVJ), components: 4, + comp_info: [ + chromaton!(0, 0, false, 8, 0, 0, 1), + chromaton!(yuv8; 2, 2, 1), + chromaton!(yuv8; 2, 2, 2), + chromaton!(0, 0, false, 8, 0, 3, 1), + None], + elem_size: 0, be: false, alpha: true, palette: false }; pub const PAL8_FORMAT: NAPixelFormaton = NAPixelFormaton { model: ColorModel::RGB(RGBSubmodel::RGB), components: 3, comp_info: [ -- 2.39.2