mirror of
https://github.com/HaishinKit/HaishinKit.swift.git
synced 2026-05-07 20:12:28 +00:00
14 lines
327 B
Swift
14 lines
327 B
Swift
import CoreVideo
|
|
import Foundation
|
|
|
|
extension CVPixelBufferPool {
|
|
@discardableResult
|
|
func createPixelBuffer(_ pixelBuffer: UnsafeMutablePointer<CVPixelBuffer?>) -> CVReturn {
|
|
return CVPixelBufferPoolCreatePixelBuffer(
|
|
kCFAllocatorDefault,
|
|
self,
|
|
pixelBuffer
|
|
)
|
|
}
|
|
}
|