Ejemplo n.º 1
0
        public CVPixelBuffer CreatePixelBuffer(CVPixelBufferPoolAllocationSettings allocationSettings, out CVReturn error)
        {
            IntPtr pb;

            error = CVPixelBufferPoolCreatePixelBufferWithAuxAttributes(IntPtr.Zero, handle, allocationSettings.GetHandle(), out pb);
            if (error != CVReturn.Success)
            {
                return(null);
            }

            return(new CVPixelBuffer(pb, true));
        }
Ejemplo n.º 2
0
		public CVPixelBuffer CreatePixelBuffer (CVPixelBufferPoolAllocationSettings allocationSettings, out CVReturn error)
		{
			IntPtr pb;
			error = CVPixelBufferPoolCreatePixelBufferWithAuxAttributes (IntPtr.Zero, handle, allocationSettings.GetHandle (), out pb);
			if (error != CVReturn.Success)
				return null;

			return new CVPixelBuffer (pb, true);
		}