示例#1
0
 public void SetFormat(VideoInfoHeader2 vih)
 {
     if (vih != null)
     {
         int cb = Marshal.SizeOf(vih);
         IntPtr _ptr = Marshal.AllocCoTaskMem(cb);
         try
         {
             Marshal.StructureToPtr(vih, _ptr, true);
             SetFormat(_ptr, cb);
             formatType = FormatType.VideoInfo2;
         }
         finally
         {
             Marshal.FreeCoTaskMem(_ptr);
         }
     }
 }
示例#2
0
 public Mpeg2VideoInfo()
 {
     hdr = new VideoInfoHeader2();
     dwSequenceHeader = null;
     dwStartTimeCode = 0;
     cbSequenceHeader = 0;
     dwProfile = 0;
     dwLevel = 0;
     dwFlags = 0;
 }