Skip to content

Commit

Permalink
Make private CVPixelBuffer.Error.
Browse files Browse the repository at this point in the history
  • Loading branch information
shogo4405 committed Aug 20, 2024
1 parent 0cf042a commit b6dd450
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Sources/Extension/CVPixelBuffer+Extension.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import CoreVideo
import Foundation

extension CVPixelBuffer {
public enum Error: Swift.Error {
enum Error: Swift.Error {
case failedToLock(_ status: CVReturn)
case failedToUnlock(_ status: CVReturn)
case unsupportedFormat(_ format: OSType)
Expand Down Expand Up @@ -100,7 +100,6 @@ extension CVPixelBuffer {
}
}

@inlinable
@inline(__always)
func lockBaseAddress(_ lockFlags: CVPixelBufferLockFlags = CVPixelBufferLockFlags.readOnly) throws {
let status = CVPixelBufferLockBaseAddress(self, lockFlags)
Expand All @@ -109,7 +108,6 @@ extension CVPixelBuffer {
}
}

@inlinable
@inline(__always)
func unlockBaseAddress(_ lockFlags: CVPixelBufferLockFlags = CVPixelBufferLockFlags.readOnly) throws {
let status = CVPixelBufferUnlockBaseAddress(self, lockFlags)
Expand Down

0 comments on commit b6dd450

Please sign in to comment.