Skip to content

Commit

Permalink
Fix typo Processable.
Browse files Browse the repository at this point in the history
  • Loading branch information
shogo4405 committed Aug 14, 2024
1 parent 56daf60 commit 784c58f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Sources/Screen/ChromaKeyProcessor.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import Accelerate
import Foundation
import simd

/// A type with a chroma key processorble screen object.
/// A marker type with a chroma key processable screen object.
@ScreenActor
public protocol ChromaKeyProcessorble {
public protocol ChromaKeyProcessable {
/// Specifies the chroma key color.
var chromaKeyColor: CGColor? { get set }
}
Expand Down
4 changes: 2 additions & 2 deletions Sources/Screen/ScreenObject.swift
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ public final class ImageScreenObject: ScreenObject {
}

/// An object that manages offscreen rendering a video track source.
public final class VideoTrackScreenObject: ScreenObject, ChromaKeyProcessorble {
public final class VideoTrackScreenObject: ScreenObject, ChromaKeyProcessable {
public var chromaKeyColor: CGColor?

/// Specifies the track number how the displays the visual content.
Expand Down Expand Up @@ -387,7 +387,7 @@ public final class TextScreenObject: ScreenObject {

#if !os(visionOS)
/// An object that manages offscreen rendering an asset resource.
public final class AssetScreenObject: ScreenObject, ChromaKeyProcessorble {
public final class AssetScreenObject: ScreenObject, ChromaKeyProcessable {
public var chromaKeyColor: CGColor?

public var isReading: Bool {
Expand Down
2 changes: 1 addition & 1 deletion Sources/Screen/ScreenRenderer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ final class ScreenRendererByCPU: ScreenRenderer {
vImageOverwriteChannels_ARGB8888(&mask, &buffer, &buffer, 0x8, Self.noFlags)
}
} else {
if let screenObject = screenObject as? (any ChromaKeyProcessorble),
if let screenObject = screenObject as? (any ChromaKeyProcessable),
let chromaKeyColor = screenObject.chromaKeyColor,
var mask = try choromaKeyProcessor?.makeMask(&buffer, chromeKeyColor: chromaKeyColor) {
vImageOverwriteChannels_ARGB8888(&mask, &buffer, &buffer, 0x8, Self.noFlags)
Expand Down

0 comments on commit 784c58f

Please sign in to comment.