Fixed warnings, lots of stubs in the code, will be implemented later.

This commit is contained in:
2026-01-03 08:15:51 +01:00
parent a3fefa4179
commit 2f6b16d946
16 changed files with 917 additions and 88 deletions

View File

@@ -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: {:?}",