예제 #1
0
        /// <inheritdoc />
        public ISubtitleStream SetLanguage(string lang)
        {
            string language = !string.IsNullOrEmpty(lang) ? lang : Language;

            if (!string.IsNullOrEmpty(language))
            {
                language = $"-metadata:s:s:{Index} language={language}";
                _parameters.Add(new ConversionParameter(language));
            }

            return(this);
        }
예제 #2
0
        /// <inheritdoc />
        public IDbParameters AddTimeStamp(string name, object value = null)
        {
            var parameter = TimeStamp(name, value);

            ParametersList.Add(parameter);

            return(_oracleParameters);
        }
예제 #3
0
        /// <inheritdoc />
        public IDbParameters AddBool(string name, object value = null, int?size = null)
        {
            var parameter = Bool(name, value, size);

            ParametersList.Add(parameter);

            return(_oracleParameters);
        }
 void GetUniqueParameters()
 {
     foreach (SetupData setupData in setupDataList)
     {
         if (!ParametersList.Contains(setupData.Parameter))
         {
             ParametersList.Add(setupData.Parameter);
         }
     }
     ParametersList.Sort();
 }
예제 #5
0
        /// <summary>
        /// Add a parameter to the query.
        /// </summary>
        /// <param name="value">The parameter value.</param>
        /// <returns>The query builder.</returns>
        public QueryBuilder AddParameter(object value)
        {
            if (value == null)
            {
                Builder.Append("NULL");
            }
            else if (Parameters != null)
            {
                string key = Engine.Options.ParameterPrefix + Parameters.Keys.Count;
                Builder.Append(key);
                Parameters[key] = value;
            }
            else
            {
                Builder.Append(Engine.Options.ParameterPrefix);
                ParametersList.Add(value);
            }

            return(this);
        }
예제 #6
0
 /// <inheritdoc />
 public IConversion SetHashFormat(string hashFormat)
 {
     _parameters.Add(new ConversionParameter($"-hash {hashFormat}", ParameterPosition.PostInput));
     return(this);
 }
예제 #7
0
        /// <inheritdoc />
        public IVideoStream Rotate(RotateDegrees rotateDegrees)
        {
            var rotate = rotateDegrees == RotateDegrees.Invert ? "-vf \"transpose=2,transpose=2\" " : $"-vf \"transpose={(int)rotateDegrees}\" ";

            _parameters.Add(new ConversionParameter(rotate));
            return(this);
        }
예제 #8
0
 /// <inheritdoc />
 public IAudioStream Reverse()
 {
     _parameters.Add(new ConversionParameter("-af areverse"));
     return(this);
 }