intro-skipper/IntroSkipper/Analyzers/IMediaFileAnalyzer.cs

27 lines
1.0 KiB
C#
Raw Normal View History

2024-10-25 14:15:12 -04:00
// Copyright (C) 2024 Intro-Skipper Contributors <intro-skipper.org>
// SPDX-License-Identifier: GNU General Public License v3.0 only.
using System.Collections.Generic;
2022-10-28 02:25:57 -05:00
using System.Threading;
using IntroSkipper.Data;
2022-10-28 02:25:57 -05:00
namespace IntroSkipper.Analyzers;
2024-04-20 12:58:29 +02:00
2022-10-28 02:25:57 -05:00
/// <summary>
/// Media file analyzer interface.
/// </summary>
public interface IMediaFileAnalyzer
{
/// <summary>
/// Analyze media files for shared introductions or credits, returning all media files that were **not successfully analyzed**.
/// </summary>
/// <param name="analysisQueue">Collection of unanalyzed media files.</param>
/// <param name="mode">Analysis mode.</param>
/// <param name="cancellationToken">Cancellation token from scheduled task.</param>
/// <returns>Collection of media files that were **unsuccessfully analyzed**.</returns>
public IReadOnlyList<QueuedEpisode> AnalyzeMediaFiles(
IReadOnlyList<QueuedEpisode> analysisQueue,
AnalysisMode mode,
2022-10-28 02:25:57 -05:00
CancellationToken cancellationToken);
}