Esempio n. 1
0
        /// <summary>
        /// Gets more aggressive routing settings.
        /// </summary>
        public RoutingSettings <float> GetAggressiveRoutingSettings(float factor)
        {
            var routingSettings = new RoutingSettings <float>();

            routingSettings.SetMaxSearch(_profile.Name, _maxSearch * factor);

            return(routingSettings);
        }
Esempio n. 2
0
        /// <summary>
        /// Creates a new coder profile.
        /// </summary>
        public CoderProfile(Profile profile, float scoreThreshold, float maxSearch)
        {
            if (profile == null)
            {
                throw new ArgumentNullException("profile");
            }

            _profile        = profile;
            _scoreThreshold = scoreThreshold;
            _maxSearch      = maxSearch;

            this.MaxSettles = 65536;

            _routingSettings = new RoutingSettings <float>();
            _routingSettings.SetMaxSearch(profile.FullName, _maxSearch);
        }