コード例 #1
0
        public CVPixelBuffer CreatePixelBuffer(CVPixelBufferPoolAllocationSettings allocationSettings, out CVReturn error)
        {
            IntPtr pb;

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

            return(new CVPixelBuffer(pb));
        }
コード例 #2
0
ファイル: CVPixelBufferPool.cs プロジェクト: cwensley/maccore
        public CVPixelBuffer CreatePixelBuffer(CVPixelBufferPoolAllocationSettings allocationSettings, out CVReturn error)
        {
            IntPtr pb;
            error = CVPixelBufferPoolCreatePixelBufferWithAuxAttributes (IntPtr.Zero, handle, allocationSettings == null ? IntPtr.Zero : allocationSettings.Dictionary.Handle, out pb);
            if (error != CVReturn.Success)
                return null;

            return new CVPixelBuffer (pb);
        }