#nullable disable
#pragma warning disable CS1591
using System.IO;
using System.Threading;
using System.Threading.Tasks;
using MediaBrowser.Controller.Entities;
using MediaBrowser.Model.Dto;
using MediaBrowser.Model.Entities;
namespace MediaBrowser.Controller.MediaEncoding
{
public interface ISubtitleEncoder
{
///
/// Gets the subtitles.
///
/// Item to use.
/// Media source.
/// Subtitle stream to use.
/// Output format to use.
/// Start time.
/// End time.
/// Option to preserve original timestamps.
/// The cancellation token for the operation.
/// Task{Stream}.
Task GetSubtitles(
BaseItem item,
string mediaSourceId,
int subtitleStreamIndex,
string outputFormat,
long startTimeTicks,
long endTimeTicks,
bool preserveOriginalTimestamps,
CancellationToken cancellationToken);
///
/// Gets the subtitle language encoding parameter.
///
/// The subtitle stream.
/// The language.
/// The media source.
/// The cancellation token.
/// System.String.
Task GetSubtitleFileCharacterSet(MediaStream subtitleStream, string language, MediaSourceInfo mediaSource, CancellationToken cancellationToken);
}
}