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 isFlippedCropRect option #66

Closed
wants to merge 2 commits into from
Closed

Add isFlippedCropRect option #66

wants to merge 2 commits into from

Conversation

IAmJSD
Copy link

@IAmJSD IAmJSD commented May 2, 2019

Fixes #65

Added isFlippedCropRect
@skllcrn skllcrn requested a review from sindresorhus May 2, 2019 09:31
@@ -40,7 +40,8 @@ public final class Aperture: NSObject {
highlightClicks: Bool,
screenId: CGDirectDisplayID = .main,
audioDevice: AVCaptureDevice? = .default(for: .audio),
videoCodec: String? = nil
videoCodec: String? = nil,
isFlippedCropRect: Bool? = false
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This parameter needs to be documented in a doc comment. It should say what it does and what it's useful for.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And it's should not be an optional.

Sources/Aperture/Aperture.swift Show resolved Hide resolved
@sindresorhus
Copy link
Member

The code here is not compiling. Please ensure the code can compile and is working properly (that it actually correctly flips the crop rect).

@sindresorhus
Copy link
Member

I think this needs a test. It can just be to run Aperture with certain options and generate a video file with a descriptive name that can be manually verified.

@sindresorhus sindresorhus changed the title Added isFlippedCropRect Add isFlippedCropRect option May 29, 2019
@skllcrn
Copy link
Member

skllcrn commented Aug 6, 2019

Let us know if you want to continue working on this fix @JakeMakesStuff!

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.

Support for top/left positions for capture
3 participants