static int64_t seek_packet(void *opaque, int64_t offset, int whence)
Seek in the file buffer.
uint64_t m_start
Starting time in msec or starting frame.
int decode(AVPacket *pkt)
SubtitleReader * m_parent
TextSubtitles Copyright (c) 2006 by Pekka Jääskeläinen Distributed as part of MythTV under GPL v2 and...
void SetInProgress(bool isInProgress)
text_subtitle_t(long start_, long end_)
void SetByteCount(off_t count)
void SeekFrame(int64_t ts, int flags)
text_subtitle_t & operator=(const text_subtitle_t &)=default
std::vector< text_subtitle_t > TextSubtitleList
~TextSubtitles() override
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
Read data from the file buffer into the avio context buffer.
uint64_t m_end
Ending time in msec or ending frame.
text_subtitle_t()=default
TextSubtitleParser(SubtitleReader *parent, QString fileName, TextSubtitles *target)
AVCodecContext * m_decCtx
void SetHasSubtitles(bool hasSubs)
off_t GetByteCount(void) const
bool GetHasSubtitles() const
SubtitleLoadHelper * m_loadHelper
void TextSubtitlesUpdated()
AVFormatContext * m_fmtCtx
void SetFilename(const QString &fileName)
int ReadNextSubtitle(void)
Read the next subtitle in the AV stream.
void LoadSubtitles(bool inBackground)
QByteArray GetSubHeader()