AnimatGuiCtrls.Video.Avi.AVIMakeCompressedStream C# (CSharp) Method

AVIMakeCompressedStream() private method

private AVIMakeCompressedStream ( IntPtr &ppsCompressed, IntPtr aviStream, AVICOMPRESSOPTIONS &ao, int dummy ) : int
ppsCompressed System.IntPtr
aviStream System.IntPtr
ao AVICOMPRESSOPTIONS
dummy int
return int
        public static extern int AVIMakeCompressedStream(
            out IntPtr ppsCompressed, IntPtr aviStream,
            ref AVICOMPRESSOPTIONS ao, int dummy);

Usage Example

        /// <summary>Create a compressed stream from an uncompressed stream</summary>
        private void CreateCompressedStream(Avi.AVICOMPRESSOPTIONS options)
        {
            int result = Avi.AVIMakeCompressedStream(out compressedStream, aviStream, ref options, 0);

            if (result != 0)
            {
                throw new Exception("Exception in AVIMakeCompressedStream: " + result.ToString());
            }

            this.compressOptions = options;

            SetFormat(compressedStream);
        }
All Usage Examples Of AnimatGuiCtrls.Video.Avi::AVIMakeCompressedStream