add yu12 to supported pixel formats on linux
What changed, and why it matters
This commit simply adds another color format (YU12) that Linux webcams can use when scanning QR codes in Sparrow Wallet. It is a one-line addition to a list of supported pixel formats. There is no indication of a security bug or fix.
No security action needed. Treat as a normal compatibility improvement.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The change adds PIX_FMT_YU12(“YU12”, true) to the WebcamPixelFormat enum. This expands the set of Linux-compatible pixel formats the webcam capture layer will accept, alongside existing formats such as RGB3, YUYV, NV12, and MJPG. The boolean flag marks it as supported on Linux. No logic, parsing, or trust boundary code is modified.
Changed components
src/main/java/com/sparrowwallet/sparrow/control/WebcamPixelFormat.javaInspect captured patch +1 / −0
diff --git a/src/main/java/com/sparrowwallet/sparrow/control/WebcamPixelFormat.java b/src/main/java/com/sparrowwallet/sparrow/control/WebcamPixelFormat.java
index 9845fe7..e792d9d 100644
--- a/src/main/java/com/sparrowwallet/sparrow/control/WebcamPixelFormat.java
+++ b/src/main/java/com/sparrowwallet/sparrow/control/WebcamPixelFormat.java
@@ -7,6 +7,7 @@ public enum WebcamPixelFormat {
PIX_FMT_RGB24("RGB3", true),
PIX_FMT_YUYV("YUYV", true),
PIX_FMT_NV12("NV12", true),
+ PIX_FMT_YU12("YU12", true),
PIX_FMT_MJPG("MJPG", true);
private final String name;
Why this scored 16/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.