| 123456789101112131415161718192021222324252627282930 |
- #ifndef AVPLAYER2_SUBTITLE_DECODE_THREAD_H
- #define AVPLAYER2_SUBTITLE_DECODE_THREAD_H
- #pragma once
- #include "ThreadBase.h"
- #include "packets_sync.h"
- #include <atomic>
- class SubtitleDecodeThread : public ThreadBase
- {
- public:
- explicit SubtitleDecodeThread(VideoState* pState = nullptr);
- ~SubtitleDecodeThread();
- SubtitleDecodeThread(const SubtitleDecodeThread&) = delete;
- SubtitleDecodeThread& operator=(const SubtitleDecodeThread&) = delete;
- SubtitleDecodeThread(SubtitleDecodeThread&&) = delete;
- SubtitleDecodeThread& operator=(SubtitleDecodeThread&&) = delete;
- void stop() override;
- protected:
- void run() override;
- private:
- VideoState* m_pState;
- };
- #endif // AVPLAYER2_SUBTITLE_DECODE_THREAD_H
|