fix opencv, v4l2, jscam, deprecate gst, ipcam

This commit is contained in:
l1npengtul
2022-11-06 13:04:22 +09:00
parent 745d3f03a6
commit b5b013172d
12 changed files with 97 additions and 355 deletions
+2 -4
View File
@@ -1244,8 +1244,6 @@ pub mod wmf {
))
}
struct Empty;
pub struct MediaFoundationDevice {
camera: CameraIndex,
}
@@ -1317,7 +1315,7 @@ pub mod wmf {
))
}
pub fn raw_bytes(&mut self) -> Result<Cow<'a, [u8]>, NokhwaError> {
pub fn raw_bytes(&mut self) -> Result<Cow<[u8]>, NokhwaError> {
Err(NokhwaError::NotImplementedError(
"Only on Windows".to_string(),
))
@@ -1326,7 +1324,7 @@ pub mod wmf {
pub fn stop_stream(&mut self) {}
}
impl<'a> Drop for MediaFoundationDevice<'a> {
impl Drop for MediaFoundationDevice {
fn drop(&mut self) {}
}
}