#pragma once #include "subtitleparser.h" #include namespace Subtitles { struct ExtractResult { QList 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); }