Пример #1
0
        public sDmaBuffer exportOutputBuffer(VideoDevice device, ref sPixelFormatMP pixelFormat)
        {
            sExportBuffer     eb          = device.exportOutputBuffer(bufferIndex);
            sPlanePixelFormat planeFormat = pixelFormat.getPlaneFormat(0);

            sDmaBuffer dma = new sDmaBuffer()
            {
                fd          = eb.fd,
                offset      = 0,
                stride      = planeFormat.bytesPerLine,
                imageSize   = planeFormat.bytesPerLine * pixelFormat.size.cy,
                sizePixels  = pixelFormat.size,
                bufferIndex = bufferIndex
            };

            return(dma);
        }