]> git.nihav.org Git - nihav.git/commitdiff
add YUVA410 formaton
authorKostya Shishkov <kostya.shishkov@gmail.com>
Fri, 14 Jul 2017 16:28:29 +0000 (18:28 +0200)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Fri, 14 Jul 2017 16:28:29 +0000 (18:28 +0200)
src/formats.rs

index 1398bdde1e3c6a5da1bb9165c531613b1e005623..bc23d1ebaf35235cd133d66cc36c63accfc09133 100644 (file)
@@ -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: [