This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import CoreVideo | |
extension CVPixelBuffer { | |
func searchTopPoint() -> CGPoint? { | |
// Get width and height of buffer | |
let width = CVPixelBufferGetWidth(self) | |
let height = CVPixelBufferGetHeight(self) | |
let bytesPerRow = CVPixelBufferGetBytesPerRow(self) |