This file contains hidden or 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 Foundation | |
| import Logging | |
| protocol ZeroConfExplorerDelegate: AnyObject { | |
| func didFindServer(_ server: MPDServer) | |
| } | |
| final class ZeroConfExplorer: NSObject { | |
| // MARK: - Public properties | |
| // Is searching flag |
This file contains hidden or 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 VideoToolbox | |
| import AVFoundation | |
| private var __canHWAVC: Bool = false | |
| private var __tokenHWAVC: dispatch_once_t = 0 | |
| public protocol NYXAVCEncoderDelegate : class | |
| { | |
| func didEncodeFrame(frame: CMSampleBuffer) | |
| func didFailToEncodeFrame() |
This file contains hidden or 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
| -(UIImage*)mmg_imageScaledToFitSize:(CGSize)fitSize | |
| { | |
| // Create a vImage_Buffer from the CGImage | |
| CGImageRef sourceRef = self.CGImage; | |
| vImage_Buffer srcBuffer; | |
| vImage_CGImageFormat format = { | |
| .bitsPerComponent = 8, | |
| .bitsPerPixel = 32, | |
| .colorSpace = NULL, | |
| .bitmapInfo = (CGBitmapInfo)kCGImageAlphaFirst, |