X-Git-Url: https://git.nihav.org/?a=blobdiff_plain;f=src%2Fformats.rs;fp=src%2Fformats.rs;h=bc23d1ebaf35235cd133d66cc36c63accfc09133;hb=a2a9732ac4617ce4603fc82fc49673597fbd7b1b;hp=1398bdde1e3c6a5da1bb9165c531613b1e005623;hpb=dd1b60e11adcb191557729e0cccd8f7ab0196fe5;p=nihav.git 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: [