From 6ffa9539bbfbfb1090b02cebc8a28283a8c69041 Mon Sep 17 00:00:00 2001 From: cvium Date: Tue, 11 Jan 2022 23:30:30 +0100 Subject: Refactor and add scheduled task --- .../KeyframeData.cs | 43 +++++++++++----------- 1 file changed, 21 insertions(+), 22 deletions(-) (limited to 'src/Jellyfin.MediaEncoding.Keyframes/KeyframeData.cs') diff --git a/src/Jellyfin.MediaEncoding.Keyframes/KeyframeData.cs b/src/Jellyfin.MediaEncoding.Keyframes/KeyframeData.cs index 1683cd22a..06f9180e7 100644 --- a/src/Jellyfin.MediaEncoding.Keyframes/KeyframeData.cs +++ b/src/Jellyfin.MediaEncoding.Keyframes/KeyframeData.cs @@ -1,31 +1,30 @@ using System.Collections.Generic; -namespace Jellyfin.MediaEncoding.Keyframes +namespace Jellyfin.MediaEncoding.Keyframes; + +/// +/// Keyframe information for a specific file. +/// +public class KeyframeData { /// - /// Keyframe information for a specific file. + /// Initializes a new instance of the class. /// - public class KeyframeData + /// The total duration of the video stream in ticks. + /// The video keyframes in ticks. + public KeyframeData(long totalDuration, IReadOnlyList keyframeTicks) { - /// - /// Initializes a new instance of the class. - /// - /// The total duration of the video stream in ticks. - /// The video keyframes in ticks. - public KeyframeData(long totalDuration, IReadOnlyList keyframeTicks) - { - TotalDuration = totalDuration; - KeyframeTicks = keyframeTicks; - } + TotalDuration = totalDuration; + KeyframeTicks = keyframeTicks; + } - /// - /// Gets the total duration of the stream in ticks. - /// - public long TotalDuration { get; } + /// + /// Gets the total duration of the stream in ticks. + /// + public long TotalDuration { get; } - /// - /// Gets the keyframes in ticks. - /// - public IReadOnlyList KeyframeTicks { get; } - } + /// + /// Gets the keyframes in ticks. + /// + public IReadOnlyList KeyframeTicks { get; } } -- cgit v1.2.3