< Summary - Jellyfin

Information
Class: Jellyfin.MediaEncoding.Keyframes.KeyframeData
Assembly: Jellyfin.MediaEncoding.Keyframes
File(s): /srv/git/jellyfin/src/Jellyfin.MediaEncoding.Keyframes/KeyframeData.cs
Line coverage
100%
Covered lines: 2
Uncovered lines: 0
Coverable lines: 2
Total lines: 30
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Coverage history

Coverage history 0 25 50 75 100

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.ctor(...)100%11100%

File(s)

/srv/git/jellyfin/src/Jellyfin.MediaEncoding.Keyframes/KeyframeData.cs

#LineLine coverage
 1using System.Collections.Generic;
 2
 3namespace Jellyfin.MediaEncoding.Keyframes;
 4
 5/// <summary>
 6/// Keyframe information for a specific file.
 7/// </summary>
 8public class KeyframeData
 9{
 10    /// <summary>
 11    /// Initializes a new instance of the <see cref="KeyframeData"/> class.
 12    /// </summary>
 13    /// <param name="totalDuration">The total duration of the video stream in ticks.</param>
 14    /// <param name="keyframeTicks">The video keyframes in ticks.</param>
 15    public KeyframeData(long totalDuration, IReadOnlyList<long> keyframeTicks)
 1316    {
 17        TotalDuration = totalDuration;
 18        KeyframeTicks = keyframeTicks;
 1319    }
 20
 21    /// <summary>
 22    /// Gets the total duration of the stream in ticks.
 23    /// </summary>
 24    public long TotalDuration { get; }
 25
 26    /// <summary>
 27    /// Gets the keyframes in ticks.
 28    /// </summary>
 29    public IReadOnlyList<long> KeyframeTicks { get; }
 30}