From: Kostya Shishkov Date: Mon, 2 Mar 2026 18:25:02 +0000 (+0100) Subject: nihav_core/formats: allow proper spelling of "grey" in formaton name X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;p=nihav.git nihav_core/formats: allow proper spelling of "grey" in formaton name --- diff --git a/nihav-core/src/formats.rs b/nihav-core/src/formats.rs index 4c4a116..ee523af 100644 --- a/nihav-core/src/formats.rs +++ b/nihav-core/src/formats.rs @@ -959,7 +959,7 @@ fn parse_rgb_format(s: &str) -> Result { fn parse_yuv_format(s: &str) -> Result { match s { - "y8" | "y400" | "gray" => { + "y8" | "y400" | "grey" | "gray" => { return Ok(NAPixelFormaton { model: ColorModel::YUV(YUVSubmodel::YUVJ), components: 1, comp_info: [ @@ -967,7 +967,7 @@ fn parse_yuv_format(s: &str) -> Result { None, None, None, None], elem_size: 1, be: true, alpha: false, palette: false }); }, - "y8a" | "y400a" | "graya" => { + "y8a" | "y400a" | "greya" | "graya" => { return Ok(NAPixelFormaton { model: ColorModel::YUV(YUVSubmodel::YUVJ), components: 2, comp_info: [