mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-08-04 07:10:45 +00:00
Refactor and add scheduled task
This commit is contained in:
parent
c658a883a2
commit
6ffa9539bb
24 changed files with 924 additions and 744 deletions
|
|
@ -1,31 +1,30 @@
|
|||
using System.Collections.Generic;
|
||||
|
||||
namespace Jellyfin.MediaEncoding.Keyframes
|
||||
namespace Jellyfin.MediaEncoding.Keyframes;
|
||||
|
||||
/// <summary>
|
||||
/// Keyframe information for a specific file.
|
||||
/// </summary>
|
||||
public class KeyframeData
|
||||
{
|
||||
/// <summary>
|
||||
/// Keyframe information for a specific file.
|
||||
/// Initializes a new instance of the <see cref="KeyframeData"/> class.
|
||||
/// </summary>
|
||||
public class KeyframeData
|
||||
/// <param name="totalDuration">The total duration of the video stream in ticks.</param>
|
||||
/// <param name="keyframeTicks">The video keyframes in ticks.</param>
|
||||
public KeyframeData(long totalDuration, IReadOnlyList<long> keyframeTicks)
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="KeyframeData"/> class.
|
||||
/// </summary>
|
||||
/// <param name="totalDuration">The total duration of the video stream in ticks.</param>
|
||||
/// <param name="keyframeTicks">The video keyframes in ticks.</param>
|
||||
public KeyframeData(long totalDuration, IReadOnlyList<long> keyframeTicks)
|
||||
{
|
||||
TotalDuration = totalDuration;
|
||||
KeyframeTicks = keyframeTicks;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the total duration of the stream in ticks.
|
||||
/// </summary>
|
||||
public long TotalDuration { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the keyframes in ticks.
|
||||
/// </summary>
|
||||
public IReadOnlyList<long> KeyframeTicks { get; }
|
||||
TotalDuration = totalDuration;
|
||||
KeyframeTicks = keyframeTicks;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the total duration of the stream in ticks.
|
||||
/// </summary>
|
||||
public long TotalDuration { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the keyframes in ticks.
|
||||
/// </summary>
|
||||
public IReadOnlyList<long> KeyframeTicks { get; }
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue