Ejemplo n.º 1
0
 public static uint FccHandlerFromString(string sFccHandler)
 {
     if (string.IsNullOrEmpty(sFccHandler))
     {
         throw new ArgumentNullException("sFccHandler");
     }
     if (sFccHandler.Length != 4)
     {
         throw new ArgumentException("sFccHandler");
     }
     return(Avi32Interop.mmioFOURCC(sFccHandler[0], sFccHandler[1], sFccHandler[2], sFccHandler[3]));
 }
Ejemplo n.º 2
0
        public static VideoCompressor Create(string fccHandler)
        {
            if (string.IsNullOrEmpty(fccHandler))
            {
                throw new ArgumentNullException("fccHandler");
            }
            if (fccHandler.Length != 4)
            {
                throw new ArgumentException("fccHandler");
            }
            uint            ffcHandler = Avi32Interop.mmioFOURCC(fccHandler[0], fccHandler[1], fccHandler[2], fccHandler[3]);
            VideoCompressor compressor = new VideoCompressor(ffcHandler);

            return(compressor);
        }