From b6dd45040b41ed10bcffcc25651cd6f31db2f8c7 Mon Sep 17 00:00:00 2001 From: shogo4405 Date: Wed, 21 Aug 2024 01:05:28 +0900 Subject: [PATCH] Make private CVPixelBuffer.Error. --- Sources/Extension/CVPixelBuffer+Extension.swift | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Sources/Extension/CVPixelBuffer+Extension.swift b/Sources/Extension/CVPixelBuffer+Extension.swift index 21f878f27..bf04dfae2 100644 --- a/Sources/Extension/CVPixelBuffer+Extension.swift +++ b/Sources/Extension/CVPixelBuffer+Extension.swift @@ -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) @@ -100,7 +100,6 @@ extension CVPixelBuffer { } } - @inlinable @inline(__always) func lockBaseAddress(_ lockFlags: CVPixelBufferLockFlags = CVPixelBufferLockFlags.readOnly) throws { let status = CVPixelBufferLockBaseAddress(self, lockFlags) @@ -109,7 +108,6 @@ extension CVPixelBuffer { } } - @inlinable @inline(__always) func unlockBaseAddress(_ lockFlags: CVPixelBufferLockFlags = CVPixelBufferLockFlags.readOnly) throws { let status = CVPixelBufferUnlockBaseAddress(self, lockFlags)