Skip to content

Commit

Permalink
Small refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
awxkee committed Nov 20, 2024
1 parent 011d0b7 commit 9e00448
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/yuv_support.rs
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ impl From<u8> for YuvNVOrder {
0 => YuvNVOrder::UV,
1 => YuvNVOrder::VU,
_ => {
panic!("Unknown value")
unimplemented!("Unknown value")
}
}
}
Expand All @@ -302,7 +302,7 @@ impl From<u8> for YuvChromaSubsampling {
1 => YuvChromaSubsampling::Yuv422,
2 => YuvChromaSubsampling::Yuv444,
_ => {
panic!("Unknown value")
unimplemented!("Unknown value")
}
}
}
Expand All @@ -323,7 +323,7 @@ impl From<u8> for YuvEndianness {
0 => YuvEndianness::BigEndian,
1 => YuvEndianness::LittleEndian,
_ => {
panic!("Unknown value")
unimplemented!("Unknown value")
}
}
}
Expand Down Expand Up @@ -453,7 +453,7 @@ impl From<usize> for Yuy2Description {
2 => Yuy2Description::YVYU,
3 => Yuy2Description::VYUY,
_ => {
panic!("Not supported value {}", value)
unimplemented!("YUY2 not supported value {}", value)
}
}
}
Expand Down

0 comments on commit 9e00448

Please sign in to comment.