interim commit

This commit is contained in:
l1npengtul
2025-10-19 00:39:00 +09:00
parent 5319e517d9
commit 317756e3a1
2 changed files with 121 additions and 111 deletions
-6
View File
@@ -16,8 +16,6 @@ pub trait Codec {
/// Errors are decoder specific.
fn allowed_formats(&self) -> Result<&[FrameFormat], NokhwaError>;
fn config(&self) -> &Self::Config;
/// # Errors
/// Errors are decoder specific.
fn set_config(&mut self, config: Self::Config) -> Result<(), NokhwaError>;
@@ -48,10 +46,6 @@ pub trait CodecAsync: Codec {
async fn set_format_async(&self, format: CameraFormat) -> Result<(), NokhwaError>;
async fn config_async<'a>(&'a self) -> &'a Self::Config {
self.config()
}
fn set_config_async(&mut self, config: Self::Config) -> Result<(), NokhwaError> {
self.set_config(config)
}