From 9e004488c7cda80213ed2b1e175e56adc4356218 Mon Sep 17 00:00:00 2001 From: Radzivon Bartoshyk Date: Wed, 20 Nov 2024 19:48:01 +0000 Subject: [PATCH] Small refactor --- src/yuv_support.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/yuv_support.rs b/src/yuv_support.rs index 13a0f32..0328ccf 100644 --- a/src/yuv_support.rs +++ b/src/yuv_support.rs @@ -280,7 +280,7 @@ impl From for YuvNVOrder { 0 => YuvNVOrder::UV, 1 => YuvNVOrder::VU, _ => { - panic!("Unknown value") + unimplemented!("Unknown value") } } } @@ -302,7 +302,7 @@ impl From for YuvChromaSubsampling { 1 => YuvChromaSubsampling::Yuv422, 2 => YuvChromaSubsampling::Yuv444, _ => { - panic!("Unknown value") + unimplemented!("Unknown value") } } } @@ -323,7 +323,7 @@ impl From for YuvEndianness { 0 => YuvEndianness::BigEndian, 1 => YuvEndianness::LittleEndian, _ => { - panic!("Unknown value") + unimplemented!("Unknown value") } } } @@ -453,7 +453,7 @@ impl From for Yuy2Description { 2 => Yuy2Description::YVYU, 3 => Yuy2Description::VYUY, _ => { - panic!("Not supported value {}", value) + unimplemented!("YUY2 not supported value {}", value) } } }