Beispiel #1
0
        static int allocateBuffers(VideoDevice videoDevice, int buffersCount)
        {
            // Allocate decoded buffers
            int c = videoDevice.allocateDecodedFrames(buffersCount);

            if (c == buffersCount)
            {
                Logger.logVerbose("allocateDecodedFrames created {0} frames", buffersCount);
            }
            else
            {
                Logger.logVerbose("allocateDecodedFrames asked for {0} frames, allocated {1} instead", buffersCount, c);
            }
            return(c);
        }