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

Commits on May 26, 2023

  1. Add zoom, flip, and mirror functionality

    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 authored and sebromero committed May 26, 2023
    Configuration menu
    Copy the full SHA
    4a46b58 View commit details
    Browse the repository at this point in the history
  2. Change parameter names for flipping and mirroring

    The parameter names are changed from _mode to _enable.
    alrvid authored and sebromero committed May 26, 2023
    Configuration menu
    Copy the full SHA
    a6a013a View commit details
    Browse the repository at this point in the history
  3. Separate setResolutionWithZoom() and setResolution()

    Adds back the setResolution() function to the camera drivers by
    calling setResolutionWithZoom() with default parameters.
    alrvid authored and sebromero committed May 26, 2023
    Configuration menu
    Copy the full SHA
    36fd82b View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    060ff9d View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    6deae7f View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    1632762 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    5eda61d View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    df134fd View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    7c42b18 View commit details
    Browse the repository at this point in the history
  10. camera: Rename variable.

    sebromero committed May 26, 2023
    Configuration menu
    Copy the full SHA
    936228d View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    6b713cb View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    cb7ec81 View commit details
    Browse the repository at this point in the history