frame/video: implement From<Frame>
This commit is contained in:
parent
71d14e15ba
commit
b5c7d27f96
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user