From 686e9502475bd3c81f8111cb5346894bf277fce5 Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Mon, 2 Mar 2026 19:25:02 +0100 Subject: [PATCH] nihav_core/formats: allow proper spelling of "grey" in formaton name --- nihav-core/src/formats.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: [ -- 2.39.5