fix glaring API flaw with RequestedFormat, add control detection for AVFoundation

This commit is contained in:
l1npengtul
2022-10-02 05:55:05 -07:00
parent 7c274634f4
commit ee3056d1ec
6 changed files with 673 additions and 42 deletions
+6 -12
View File
@@ -200,26 +200,20 @@ impl CaptureBackendTrait for AVFoundationCaptureDevice {
self.set_camera_format(format)
}
fn camera_control(&self, _: KnownCameraControl) -> Result<CameraControl, NokhwaError> {
Err(NokhwaError::NotImplementedError(
"Not Implemented".to_string(),
))
fn camera_control(&self, control: KnownCameraControl) -> Result<CameraControl, NokhwaError> {
todo!()
}
fn camera_controls(&self) -> Result<Vec<CameraControl>, NokhwaError> {
Err(NokhwaError::NotImplementedError(
"Not Implemented".to_string(),
))
todo!()
}
fn set_camera_control(
&mut self,
_: KnownCameraControl,
_: ControlValueSetter,
id: KnownCameraControl,
value: ControlValueSetter,
) -> Result<(), NokhwaError> {
Err(NokhwaError::NotImplementedError(
"Not Implemented".to_string(),
))
todo!()
}
fn open_stream(&mut self) -> Result<(), NokhwaError> {