-
Notifications
You must be signed in to change notification settings - Fork 30
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
Add stepwise support #84
Add stepwise support #84
Conversation
src/video/video_source_local.rs
Outdated
(7200, 3060), | ||
(7680, 4320), | ||
(3840, 2160), | ||
(2560, 1440), | ||
(1440, 1080), | ||
(1920, 1080), | ||
(1280, 1080), | ||
(1600, 1200), | ||
(1280, 720), | ||
(1024, 768), | ||
(960, 720), | ||
(800, 600), | ||
(640, 480), | ||
(640, 360), | ||
(320, 240), | ||
(256, 144), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've chosen to only add common and widely used resolutions as opposed to deciding resolutions algorithmically because I found it to be near impossible to balance the number of sizes with how useful they would actually be, every resolution from algorithms was looking random, like 1326x1768
for 4:3, and if we would be adding the standard ones, why should we even bother trying that...
src/video/video_source_local.rs
Outdated
(3840, 2160), | ||
(2560, 1440), | ||
(1440, 1080), | ||
(1920, 1080), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs sort, dedup and move this to a const.
some comments would also be nice. |
7abb3c4
to
15472c5
Compare
15472c5
to
1f7d222
Compare
952ed71
to
18cec4c
Compare
18cec4c
to
41829e3
Compare
This PR is one step further to #66. Actually, with this implementation, the raspberry pi camera works in legacy mode, but more test is needed.