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

AVISaveOptionsFree() private method

private AVISaveOptionsFree ( int nStreams, AVICOMPRESSOPTIONS_CLASS &plpOptions ) : long
nStreams int
plpOptions AVICOMPRESSOPTIONS_CLASS
return long
        public static extern long AVISaveOptionsFree(
            int nStreams,
            ref AVICOMPRESSOPTIONS_CLASS plpOptions
            );

Usage Example

        /// <summary>Copy the stream into a new file</summary>
        /// <param name="fileName">Name of the new file</param>
        public override void ExportStream(String fileName)
        {
            Avi.AVICOMPRESSOPTIONS_CLASS opts = new Avi.AVICOMPRESSOPTIONS_CLASS();
            opts.fccType  = (uint)Avi.streamtypeVIDEO;
            opts.lpParms  = IntPtr.Zero;
            opts.lpFormat = IntPtr.Zero;
            IntPtr streamPointer = StreamPointer;

            Avi.AVISaveOptions(IntPtr.Zero, Avi.ICMF_CHOOSE_KEYFRAME | Avi.ICMF_CHOOSE_DATARATE, 1, ref streamPointer, ref opts);
            Avi.AVISaveOptionsFree(1, ref opts);

            Avi.AVISaveV(fileName, 0, 0, 1, ref aviStream, ref opts);
        }
All Usage Examples Of AnimatGuiCtrls.Video.Avi::AVISaveOptionsFree