Skip to content

Comments

[WIP] Stream reader#91

Open
glenn2223 wants to merge 3 commits intoRedth:mainfrom
glenn2223:StreamReader
Open

[WIP] Stream reader#91
glenn2223 wants to merge 3 commits intoRedth:mainfrom
glenn2223:StreamReader

Conversation

@glenn2223
Copy link

@glenn2223 glenn2223 commented Dec 13, 2022

Added stream reading functionality - hope you can help @Redth 😁

WIP Reasons:

  • Windows: not happy with using Skia - is there an alternative? Couldn't really find anything myself (see Improvements push)
  • IOS/MAC: unable to test myself

Sidenote - android is very slow decoding (thought it was my code, but it wasn't) - see images. Windows completes the whole process in a little over a second.
Edit: Improvements push has sped things up a little (letting Zxing choose format)

Old screengrabs
Code timer Android timer
image Android Screenshot

Implemented stream decoding

Not happy with: (WIP - for now)
- Windows: having to use `Skia`
- Android: seems slow but it's no the stream conversion
Extended the example project to use stream decoding on two new pages
@glenn2223
Copy link
Author

Hey @Redth, don't suppose you've had time to look at this?

@glenn2223
Copy link
Author

Hey @Redth, me again, nudge, nudge... wink, wink 😁

- Improved speed slightly on android
- Dropped requirement for `Microsoft.Maui.Graphics.Skia`
- Let `RGBLuminanceSource` do the hard work of discovering the `BitmapFormat`
@glenn2223
Copy link
Author

If anyone can test this on IOS and mac then I can remove the draft 😁

@glenn2223 glenn2223 marked this pull request as ready for review February 15, 2023 11:26
@alberk8
Copy link

alberk8 commented Nov 8, 2025

Any plan to allow for reading the Barcode from file?

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants