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

Add stepwise support #84

Merged

Conversation

joaoantoniocardoso
Copy link
Collaborator

@joaoantoniocardoso joaoantoniocardoso commented Jun 17, 2022

  • Tested on Raspberry Pi 3

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.

Comment on lines 209 to 224
(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),
Copy link
Collaborator Author

@joaoantoniocardoso joaoantoniocardoso Jun 17, 2022

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...

(3840, 2160),
(2560, 1440),
(1440, 1080),
(1920, 1080),
Copy link
Member

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.

@patrickelectric
Copy link
Member

some comments would also be nice.

src/video/types.rs Outdated Show resolved Hide resolved
@patrickelectric patrickelectric merged commit 0edbbe9 into mavlink:master Jul 8, 2022
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