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 ();
		}
Esempio n. 2
0
		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);
		}
Esempio n. 3
0
        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();
        }
Esempio n. 4
0
        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);
        }