using System.Collections.Generic; using System.Diagnostics; namespace MediaBrowser.Model.Configuration; /// /// Class TrickplayOptions. /// public class TrickplayOptions { /// /// Gets or sets a value indicating whether or not to use HW acceleration. /// public bool EnableHwAcceleration { get; set; } = false; /// /// Gets or sets a value indicating whether or not to use HW accelerated MJPEG encoding. /// public bool EnableHwEncoding { get; set; } = false; /// /// Gets or sets the behavior used by trickplay provider on library scan/update. /// public TrickplayScanBehavior ScanBehavior { get; set; } = TrickplayScanBehavior.NonBlocking; /// /// Gets or sets the process priority for the ffmpeg process. /// public ProcessPriorityClass ProcessPriority { get; set; } = ProcessPriorityClass.BelowNormal; /// /// Gets or sets the interval, in ms, between each new trickplay image. /// public int Interval { get; set; } = 10000; /// /// Gets or sets the target width resolutions, in px, to generates preview images for. /// public int[] WidthResolutions { get; set; } = new[] { 320 }; /// /// Gets or sets number of tile images to allow in X dimension. /// public int TileWidth { get; set; } = 10; /// /// Gets or sets number of tile images to allow in Y dimension. /// public int TileHeight { get; set; } = 10; /// /// Gets or sets the ffmpeg output quality level. /// public int Qscale { get; set; } = 4; /// /// Gets or sets the jpeg quality to use for image tiles. /// public int JpegQuality { get; set; } = 90; /// /// Gets or sets the number of threads to be used by ffmpeg. /// public int ProcessThreads { get; set; } = 1; }