let yPlaneBuffer = CVPixelBufferGetBaseAddressOfPlane(pixelBuffer, 0) yPlaneData.withUnsafeBytes { (data) in yPlaneBuffer!.copyBytes(from: data, count: yPlaneData.count) }yPlaneData は Data 型で、 withUnsafeBytes は public func withUnsafeBytes<ResultType, ContentType>(_ body: (UnsafePointer<ContentType>) throws -> ResultType) rethrows -> ResultTypecopyBytes は public func copyBytes(from source: UnsafeRawPointer, count: Int) (data) の推論がUnsafePointer<ContentType> と UnsafeRawPointer でぶつかって解決できないように思う