From 1ace5564deb4613dcb0d15a9d0c1487091780883 Mon Sep 17 00:00:00 2001 From: Gabriele Musco Date: Tue, 26 Dec 2023 11:39:24 +0000 Subject: [PATCH] feat: remove functionally duplicate codecs --- src/file_builders/wivrn_config.rs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/file_builders/wivrn_config.rs b/src/file_builders/wivrn_config.rs index 17ad4be..71ad055 100644 --- a/src/file_builders/wivrn_config.rs +++ b/src/file_builders/wivrn_config.rs @@ -46,8 +46,6 @@ impl Encoder { pub enum Codec { H264, H265, - Avc, - Hevc, } impl Display for Codec { @@ -55,27 +53,23 @@ impl Display for Codec { f.write_str(match self { Self::H264 => "h264", Self::H265 => "h265", - Self::Avc => "AVC", - Self::Hevc => "HEVC", }) } } impl Codec { pub fn iter() -> Iter<'static, Self> { - [Self::H264, Self::H265, Self::Avc, Self::Hevc].iter() + [Self::H264, Self::H265].iter() } pub fn as_vec() -> Vec { - vec![Self::H264, Self::H265, Self::Avc, Self::Hevc] + vec![Self::H264, Self::H265] } pub fn as_number(&self) -> u32 { match self { Self::H264 => 0, Self::H265 => 1, - Self::Avc => 2, - Self::Hevc => 3, } } }