frame/video: implement From<Frame>

This commit is contained in:
lummax 2015-09-02 12:43:52 +02:00
parent 71d14e15ba
commit b5c7d27f96

View File

@ -319,6 +319,12 @@ impl Clone for Video {
}
}
impl From<Frame> for Video {
fn from(frame: Frame) -> Self {
Video(frame)
}
}
pub unsafe trait Component {
fn is_valid(format: format::Pixel) -> bool;
}