Fixed warnings, lots of stubs in the code, will be implemented later.
This commit is contained in:
@@ -178,6 +178,14 @@ impl AuthService {
|
||||
"Failed to create grayscale from YUYV".to_string(),
|
||||
))?
|
||||
}
|
||||
PixelFormat::Mjpeg => {
|
||||
// Decode MJPEG (JPEG) to image, then convert to grayscale
|
||||
image::load_from_memory(&frame.data)
|
||||
.map_err(|e| linux_hello_common::Error::Detection(
|
||||
format!("Failed to decode MJPEG: {}", e)
|
||||
))?
|
||||
.to_luma8()
|
||||
}
|
||||
_ => {
|
||||
return Err(linux_hello_common::Error::Detection(format!(
|
||||
"Unsupported pixel format: {:?}",
|
||||
|
||||
Reference in New Issue
Block a user