private static unsafe int AVISaveOptions(IntPtr stream, ref AVIWriterImports.AVICOMPRESSOPTIONS opts, IntPtr owner)
            {
                fixed(AVIWriterImports.AVICOMPRESSOPTIONS *_popts = &opts)
                {
                    IntPtr *pStream = &stream;

                    AVIWriterImports.AVICOMPRESSOPTIONS * popts  = _popts;
                    AVIWriterImports.AVICOMPRESSOPTIONS **ppopts = &popts;
                    return(AVIWriterImports.AVISaveOptions(owner, 0, 1, (void *)pStream, (void *)ppopts));
                }
            }
 static AviWriterSegment()
 {
     AVIWriterImports.AVIFileInit();
 }