diff --git a/src/util/frame/video.rs b/src/util/frame/video.rs index 2ca9fb9..28d9857 100644 --- a/src/util/frame/video.rs +++ b/src/util/frame/video.rs @@ -319,6 +319,12 @@ impl Clone for Video { } } +impl From for Video { + fn from(frame: Frame) -> Self { + Video(frame) + } +} + pub unsafe trait Component { fn is_valid(format: format::Pixel) -> bool; }