Skip to content

usb-debug Screenshot: README says BGRA8888, hosted simulator returns RGBA (hardware is BGRA) #22

Description

@tobyjaguar

Environment: KeyOS v1.4.0 (eb2c2edb3); hosted simulator (macOS arm64) and a Passport Prime on 1.4.0-beta3.

utils/passport-drive/README.md documents the SCREENSHOT response as BGRA8888 raw (480x800x4 B). Hardware does return BGRA. The hosted simulator's Screenshot payload is RGBA: decoding it as BGRA swaps red and blue (we first noticed because a magenta marker came out cyan).

Expected: the two transports return the same pixel order, or the README documents the difference.

Suggestion: convert in the simulator's capture path so tools written against the README work on both, or state "simulator: RGBA" in the protocol table. Not a functional problem for QR decoding, but any colour-based test automation against the simulator gets swapped channels.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions