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

increase maximum frame size to support newer cameras #219

Merged
merged 1 commit into from
Nov 23, 2022

Conversation

mdeneen
Copy link
Contributor

@mdeneen mdeneen commented Nov 21, 2022

Increase maximum frame size from 40,000 bytes to 200,000 bytes to support newer high resolution cameras which can produce larger frames.

Without this change in place the parser fails to detect the start and end frame markers if the frame size happens to be larger than 40,000 bytes.

Surely there is a better way of doing this, but this was the easiest way to get around the problem.

Increase maximum frame size from 40,000 bytes to 200,000 bytes to support
newer high resolution cameras which can produce larger frames.

Without this change in place the parser fails to detect the start and end
frame markers if the frame size happens to be larger than 40,000 bytes.

Surely there is a better way of doing this, but this was the easiest way to
get around the problem.
@niqdev
Copy link
Owner

niqdev commented Nov 22, 2022

@mdeneen thanks for your contribution! @hannesa2 do you have any feedback? if you give me a 👍🏻 I'm happy to merge it and release a new version

@hannesa2
Copy link
Contributor

hannesa2 commented Nov 22, 2022

Nothing against this magic number. 👍

Just if someone comes with too much time, he could put right value under res folders, eg.
image
No clue if it makes sense to put that much afford here

@mdeneen
Copy link
Contributor Author

mdeneen commented Nov 22, 2022

It would be easy enough to move it into res if that is desired.

@niqdev
Copy link
Owner

niqdev commented Nov 23, 2022

Thanks for the feedback!

@niqdev niqdev merged commit 07abc74 into niqdev:master Nov 23, 2022
@niqdev
Copy link
Owner

niqdev commented Nov 24, 2022

@mdeneen version 2.4.0 is out with all the latest changes, please let me know if that works and it solves your issue, thanks!

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.

3 participants