diff options
| author | Nick <20588554+nicknsy@users.noreply.github.com> | 2023-05-01 12:51:05 -0700 |
|---|---|---|
| committer | Nick <20588554+nicknsy@users.noreply.github.com> | 2023-06-22 16:23:52 -0700 |
| commit | 33770322282326304b4b8073f583d6fed2354c0b (patch) | |
| tree | 1dae2889dca28f9dc960b4aea634cb83d1c86729 /MediaBrowser.Model/Configuration | |
| parent | dd8ef08592830236b31307e2424b491e974f024a (diff) | |
crobibero styling, format, code suggestions
Diffstat (limited to 'MediaBrowser.Model/Configuration')
| -rw-r--r-- | MediaBrowser.Model/Configuration/TrickplayOptions.cs | 109 | ||||
| -rw-r--r-- | MediaBrowser.Model/Configuration/TrickplayScanBehavior.cs | 25 |
2 files changed, 66 insertions, 68 deletions
diff --git a/MediaBrowser.Model/Configuration/TrickplayOptions.cs b/MediaBrowser.Model/Configuration/TrickplayOptions.cs index d89e5f590..1fff1a5ed 100644 --- a/MediaBrowser.Model/Configuration/TrickplayOptions.cs +++ b/MediaBrowser.Model/Configuration/TrickplayOptions.cs @@ -1,61 +1,60 @@ using System.Collections.Generic; using System.Diagnostics; -namespace MediaBrowser.Model.Configuration +namespace MediaBrowser.Model.Configuration; + +/// <summary> +/// Class TrickplayOptions. +/// </summary> +public class TrickplayOptions { /// <summary> - /// Class TrickplayOptions. - /// </summary> - public class TrickplayOptions - { - /// <summary> - /// Gets or sets a value indicating whether or not to use HW acceleration. - /// </summary> - public bool EnableHwAcceleration { get; set; } = false; - - /// <summary> - /// Gets or sets the behavior used by trickplay provider on library scan/update. - /// </summary> - public TrickplayScanBehavior ScanBehavior { get; set; } = TrickplayScanBehavior.NonBlocking; - - /// <summary> - /// Gets or sets the process priority for the ffmpeg process. - /// </summary> - public ProcessPriorityClass ProcessPriority { get; set; } = ProcessPriorityClass.BelowNormal; - - /// <summary> - /// Gets or sets the interval, in ms, between each new trickplay image. - /// </summary> - public int Interval { get; set; } = 10000; - - /// <summary> - /// Gets or sets the target width resolutions, in px, to generates preview images for. - /// </summary> - public int[] WidthResolutions { get; set; } = new[] { 320 }; - - /// <summary> - /// Gets or sets number of tile images to allow in X dimension. - /// </summary> - public int TileWidth { get; set; } = 10; - - /// <summary> - /// Gets or sets number of tile images to allow in Y dimension. - /// </summary> - public int TileHeight { get; set; } = 10; - - /// <summary> - /// Gets or sets the ffmpeg output quality level. - /// </summary> - public int Qscale { get; set; } = 4; - - /// <summary> - /// Gets or sets the jpeg quality to use for image tiles. - /// </summary> - public int JpegQuality { get; set; } = 90; - - /// <summary> - /// Gets or sets the number of threads to be used by ffmpeg. - /// </summary> - public int ProcessThreads { get; set; } = 0; - } + /// Gets or sets a value indicating whether or not to use HW acceleration. + /// </summary> + public bool EnableHwAcceleration { get; set; } = false; + + /// <summary> + /// Gets or sets the behavior used by trickplay provider on library scan/update. + /// </summary> + public TrickplayScanBehavior ScanBehavior { get; set; } = TrickplayScanBehavior.NonBlocking; + + /// <summary> + /// Gets or sets the process priority for the ffmpeg process. + /// </summary> + public ProcessPriorityClass ProcessPriority { get; set; } = ProcessPriorityClass.BelowNormal; + + /// <summary> + /// Gets or sets the interval, in ms, between each new trickplay image. + /// </summary> + public int Interval { get; set; } = 10000; + + /// <summary> + /// Gets or sets the target width resolutions, in px, to generates preview images for. + /// </summary> + public int[] WidthResolutions { get; set; } = new[] { 320 }; + + /// <summary> + /// Gets or sets number of tile images to allow in X dimension. + /// </summary> + public int TileWidth { get; set; } = 10; + + /// <summary> + /// Gets or sets number of tile images to allow in Y dimension. + /// </summary> + public int TileHeight { get; set; } = 10; + + /// <summary> + /// Gets or sets the ffmpeg output quality level. + /// </summary> + public int Qscale { get; set; } = 4; + + /// <summary> + /// Gets or sets the jpeg quality to use for image tiles. + /// </summary> + public int JpegQuality { get; set; } = 90; + + /// <summary> + /// Gets or sets the number of threads to be used by ffmpeg. + /// </summary> + public int ProcessThreads { get; set; } = 0; } diff --git a/MediaBrowser.Model/Configuration/TrickplayScanBehavior.cs b/MediaBrowser.Model/Configuration/TrickplayScanBehavior.cs index 799794176..d0db53218 100644 --- a/MediaBrowser.Model/Configuration/TrickplayScanBehavior.cs +++ b/MediaBrowser.Model/Configuration/TrickplayScanBehavior.cs @@ -1,18 +1,17 @@ -namespace MediaBrowser.Model.Configuration +namespace MediaBrowser.Model.Configuration; + +/// <summary> +/// Enum TrickplayScanBehavior. +/// </summary> +public enum TrickplayScanBehavior { /// <summary> - /// Enum TrickplayScanBehavior. + /// Starts generation, only return once complete. /// </summary> - public enum TrickplayScanBehavior - { - /// <summary> - /// Starts generation, only return once complete. - /// </summary> - Blocking, + Blocking, - /// <summary> - /// Start generation, return immediately. - /// </summary> - NonBlocking - } + /// <summary> + /// Start generation, return immediately. + /// </summary> + NonBlocking } |
