2024-10-25 14:31:50 -04:00
|
|
|
// Copyright (C) 2024 Intro-Skipper contributors <intro-skipper.org>
|
|
|
|
// SPDX-License-Identifier: GPL-3.0-only.
|
2024-10-25 14:15:12 -04:00
|
|
|
|
2024-10-19 23:50:41 +02:00
|
|
|
namespace IntroSkipper.Data;
|
2022-11-01 00:53:56 -05:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// A frame of video that partially (or entirely) consists of black pixels.
|
|
|
|
/// </summary>
|
2024-09-10 18:08:42 +02:00
|
|
|
/// <remarks>
|
|
|
|
/// Initializes a new instance of the <see cref="BlackFrame"/> class.
|
|
|
|
/// </remarks>
|
|
|
|
/// <param name="percent">Percentage of the frame that is black.</param>
|
|
|
|
/// <param name="time">Time this frame appears at.</param>
|
|
|
|
public class BlackFrame(int percent, double time)
|
2022-11-01 00:53:56 -05:00
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the percentage of the frame that is black.
|
|
|
|
/// </summary>
|
2024-09-10 18:08:42 +02:00
|
|
|
public int Percentage { get; set; } = percent;
|
2022-11-01 00:53:56 -05:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the time (in seconds) this frame appeared at.
|
|
|
|
/// </summary>
|
2024-09-10 18:08:42 +02:00
|
|
|
public double Time { get; set; } = time;
|
2022-11-01 00:53:56 -05:00
|
|
|
}
|