Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor jpeg_stream_reader #133

Merged
merged 1 commit into from Jan 8, 2022
Merged

Refactor jpeg_stream_reader #133

merged 1 commit into from Jan 8, 2022

Conversation

vbaderks
Copy link
Contributor

@vbaderks vbaderks commented Jan 8, 2022

  • Use a span to manage the segment data
  • Use a forward iterator
  • Parse the SOS segment directly.
  • Do a size check when segment size is known, then read without size checks.
  • Don't use std::vector to read bytes.

- Use a span to manage the segment data
- Use a forward iterator
- Parse the SOS segment directly.
- Do a size check when segment size is known, then read without size checks.
- Don't use std::vector to read bytes.
@vbaderks vbaderks merged commit 2613ab2 into master Jan 8, 2022
@vbaderks vbaderks deleted the reader branch January 8, 2022 21:17
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.

None yet

1 participant