// -------------------------------------------------------------------------------------------------------------------- // // This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License. // // // The video preset factory. // // -------------------------------------------------------------------------------------------------------------------- namespace HandBrakeWPF.Services.Encode.Factories { /// /// The video tune factory. /// public class VideoPresetFactory { /// /// The get display name for a given short name. /// LibHB doesn't currently support this. /// /// /// The short name. /// /// /// The . /// public static string GetDisplayName(string shortName) { switch (shortName) { case "ultrafast": return "Ultrafast"; case "superfast": return "Superfast"; case "veryfast": return "Veryfast"; case "faster": return "Faster"; case "fast": return "Fast"; case "medium": return "Medium"; case "slow": return "Slow"; case "slower": return "Slower"; case "veryslow": return "VerySlow"; case "placebo": return "Placebo"; case "balanced": return "Balanced"; case "speed": return "Speed"; case "quality": return "Quality"; } return shortName; } } }