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

[AE-2] Add zoom, flip, and mirror functionality for GC2145 #689

Merged
merged 12 commits into from
May 26, 2023

Conversation

sebromero
Copy link
Collaborator

Adds the functions zoomTo(), zoomToCenter(), setVerticalFlip(), setHorizontalMirror(), getResolutionWidth(), and
getResolutionHeight() to the Camera library. The old setResolution() function is changed into the new private function
setResolutionWithZoom(), which is called by the new version of setResolution(), as well as by the zoomTo() and zoomToCenter() functions.

These changes required some changes in the abstract class ImageSensor, which, in turn, required further changes in the camera drivers. The only camera driver that fully supports the new functionality is GC2145, and the others return -1 on all calls. The function signature for setResolution() is changed, and two new functions are added: setVerticalFlip() and setHorizontalMirror().

alrvid and others added 8 commits May 26, 2023 10:33
Adds the functions zoomTo(), zoomToCenter(), setVerticalFlip(),
setHorizontalMirror(), getResolutionWidth(), and
getResolutionHeight() to the Camera library. The old setResolution()
function is changed into the new private function
setResolutionWithZoom(), which is called by the new version of
setResolution(), as well as by the zoomTo() and zoomToCenter()
functions.

These changes required some changes in the abstract class
ImageSensor, which, in turn, required further changes in the camera
drivers. The only camera driver that fully supports the new
functionality is GC2145, and the others return -1 on all calls. The function
signature for setResolution() is changed, and two new functions are
added: setVerticalFlip() and setHorizontalMirror().
The parameter names are changed from _mode to _enable.
Adds back the setResolution() function to the camera drivers by
calling setResolutionWithZoom() with default parameters.
@sebromero sebromero merged commit e864648 into main May 26, 2023
@sebromero sebromero deleted the zoom-flip-mirror branch May 26, 2023 14:37
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