Files
QtPotato/src/subtitles/subtitleextractor.h
T

18 lines
442 B
C++

#pragma once
#include "subtitleparser.h"
#include <atomic>
namespace Subtitles
{
struct ExtractResult {
QList<SubtitleCue> cues;
QString error;
};
// Decodes a text subtitle stream of a media file with FFmpeg. \a streamIndex is the
// FFmpeg stream index (mpv reports it as "ff-index"). Blocking; run it off the GUI thread.
ExtractResult extractEmbedded(const QString &path, int streamIndex, const std::atomic_bool &cancelled);
}