VsICoreEncoder VsICoreEncoderDescription.CreateEncoder(long syncTimer, object config)
        {
            VsRawEncoderConfiguration cfg = (VsRawEncoderConfiguration)config;

            if (cfg != null)
            {
                VsRawEncoder encoder = new VsRawEncoder(syncTimer);

                encoder.EncoderName = cfg.CodecsName;

                return (VsRawEncoder)encoder;
            }
            return null;
        }
Example #2
0
        VsICoreEncoder VsICoreEncoderDescription.CreateEncoder(long syncTimer, object config)
        {
            VsRawEncoderConfiguration cfg = (VsRawEncoderConfiguration)config;

            if (cfg != null)
            {
                VsRawEncoder encoder = new VsRawEncoder(syncTimer);

                encoder.EncoderName = cfg.CodecsName;

                return((VsRawEncoder)encoder);
            }
            return(null);
        }