/// <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); }
/// <inheritdoc /> public IDbParameters AddTimeStamp(string name, object value = null) { var parameter = TimeStamp(name, value); ParametersList.Add(parameter); return(_oracleParameters); }
/// <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(); }
/// <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); }
/// <inheritdoc /> public IConversion SetHashFormat(string hashFormat) { _parameters.Add(new ConversionParameter($"-hash {hashFormat}", ParameterPosition.PostInput)); return(this); }
/// <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); }
/// <inheritdoc /> public IAudioStream Reverse() { _parameters.Add(new ConversionParameter("-af areverse")); return(this); }