Skip to content

ChromaKey filter feature. #1534

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

Merged
merged 1 commit into from
Aug 6, 2024
Merged

Conversation

shogo4405
Copy link
Collaborator

@shogo4405 shogo4405 commented Aug 5, 2024

Description & motivation

  • Added a chroma key compositing feature to live footage and archives.

Usage

let videoScreenObject = VideoTrackScreenObject()
// It cannot be used together with cornerRadius, leave it unspecified.
// videoScreenObject.cornerRadius = 32.0
videoScreenObject.track = 1
// Specify the color you want to use for chroma key compositing. This value should be the RGB representation of the fabric color.
videoScreenObject.chromaKeyColor = UIColor(red: 60 / 255, green: 204 / 255, blue: 112 / 255, alpha: 1).cgColor
videoScreenObject.horizontalAlignment = .right
videoScreenObject.layoutMargin = .init(top: 16, left: 0, bottom: 0, right: 16)
videoScreenObject.size = .init(width: 160 * 2, height: 90 * 2)
// _ = videoScreenObject.registerVideoEffect(MonochromeEffect())

Type of change

  • New feature (non-breaking change which adds functionality)

Screenshots:

ON OFF
スクリーンショット 2024-08-06 20 11 01 スクリーンショット 2024-08-06 20 11 43

@shogo4405 shogo4405 force-pushed the feature/screen-object-chromakey branch 5 times, most recently from 6fa9231 to f380662 Compare August 5, 2024 16:23
@shogo4405 shogo4405 force-pushed the feature/screen-object-chromakey branch from f380662 to 39cc584 Compare August 6, 2024 11:46
@shogo4405 shogo4405 marked this pull request as ready for review August 6, 2024 11:46
@shogo4405 shogo4405 added this to the 1.9.3 milestone Aug 6, 2024
@shogo4405 shogo4405 merged commit 130e6f3 into main Aug 6, 2024
2 checks passed
@shogo4405 shogo4405 deleted the feature/screen-object-chromakey branch August 6, 2024 11:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant