public AVReaderWriter (AVAsset asset, IVideoTransformer transformer) { if (asset == null) throw new ArgumentNullException ("asset"); if (transformer == null) throw new ArgumentNullException ("transformer"); this.asset = asset; this.transformer = transformer; cancellationTokenSrc = new CancellationTokenSource (); }
public VideoChannel (AVAssetReaderOutput readerOutput, AVAssetWriterInput writerInput, IVideoTransformer transformer) : base(readerOutput, writerInput) { if (transformer == null) throw new ArgumentNullException ("transformer"); this.transformer = transformer; var adaptorAttrs = new CVPixelBufferAttributes { PixelFormatType = CVPixelFormatType.CV32BGRA }; adaptor = new AVAssetWriterInputPixelBufferAdaptor (WriterInput, adaptorAttrs); }
public AVReaderWriter(AVAsset asset, IVideoTransformer transformer) { if (asset == null) { throw new ArgumentNullException("asset"); } if (transformer == null) { throw new ArgumentNullException("transformer"); } this.asset = asset; this.transformer = transformer; cancellationTokenSrc = new CancellationTokenSource(); }
public VideoChannel(AVAssetReaderOutput readerOutput, AVAssetWriterInput writerInput, IVideoTransformer transformer) : base(readerOutput, writerInput) { if (transformer == null) { throw new ArgumentNullException("transformer"); } this.transformer = transformer; var adaptorAttrs = new CVPixelBufferAttributes { PixelFormatType = CVPixelFormatType.CV32BGRA }; adaptor = new AVAssetWriterInputPixelBufferAdaptor(WriterInput, adaptorAttrs); }