static PixelBuffer CopyPixelBuffer(AVPlayerItemVideoOutput output, CMTime time, ref CMTime outItemTimeForDisplay) { var args = new object[] { time, outItemTimeForDisplay }; var result = _copyPixelBufferMethod.Invoke(output, args); return(new PixelBuffer((IntPtr)result)); }
public void Ctor_CVPixelBufferAttributes() { var attributes = new CVPixelBufferAttributes() { PixelFormatType = CVPixelFormatType.CV32BGRA }; using (var output = new AVPlayerItemVideoOutput(attributes)) Assert.That(output.Handle, Is.Not.EqualTo(IntPtr.Zero), "valid"); }
public void Ctor_CVPixelBufferAttributes() { TestRuntime.AssertSystemVersion(PlatformName.MacOSX, 10, 8, throwIfOtherPlatform: false); var attributes = new CVPixelBufferAttributes() { PixelFormatType = CVPixelFormatType.CV32BGRA }; using (var output = new AVPlayerItemVideoOutput(attributes)) Assert.That(output.Handle, Is.Not.EqualTo(IntPtr.Zero), "valid"); }