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); } } }
public Mpeg2VideoInfo() { hdr = new VideoInfoHeader2(); dwSequenceHeader = null; dwStartTimeCode = 0; cbSequenceHeader = 0; dwProfile = 0; dwLevel = 0; dwFlags = 0; }