예제 #1
0
        public CodecCollection()
            : base()
        {
            uint   ICTYPE_VIDEO = Codec.mmioFOURCC('v', 'i', 'd', 'c');
            uint   n;
            ICINFO info = new ICINFO();

            for (n = 0; MSVFW32.ICInfo(ICTYPE_VIDEO, n, ref info); n++)
            {
                System.IntPtr iIC = MSVFW32.ICOpen(info.fccType, info.fccHandler, ICMODE.QUERY);
                if (iIC != System.IntPtr.Zero)
                {
                    int cb = Marshal.SizeOf(typeof(ICINFO));
                    MSVFW32.ICGetInfo(iIC, ref info, (uint)cb);
                    //if ((info.dwFlags & (uint)VIDCF.COMPRESSFRAMES) != 0)
                    //{
                    string s = Codec.FOURCCmmio(info.fccHandler);
                    if (!this.ContainsKey(s))
                    {
                        this.Add(s, info.szDescription + " (" + s + ")");
                    }
                    //}
                    MSVFW32.ICClose(iIC);
                }
            }
        }
예제 #2
0
파일: MSVFW32.cs 프로젝트: zhuangyy/Motion
 public static extern bool ICInfo(uint fccType, uint fccHandler, ref ICINFO lpicinfo);
예제 #3
0
파일: MSVFW32.cs 프로젝트: zhuangyy/Motion
 public static extern int ICGetInfo(System.IntPtr hic, ref ICINFO lpicinfo, uint cb);
예제 #4
0
파일: MSVFW32.cs 프로젝트: unixcrh/Motion
 public static extern int ICGetInfo(System.IntPtr hic, ref ICINFO lpicinfo, uint cb);
예제 #5
0
파일: MSVFW32.cs 프로젝트: unixcrh/Motion
 public static extern bool ICInfo(uint fccType, uint fccHandler, ref ICINFO lpicinfo);