subtitle_decode_thread.h 739 B

123456789101112131415161718192021222324252627282930
  1. #ifndef AVPLAYER2_SUBTITLE_DECODE_THREAD_H
  2. #define AVPLAYER2_SUBTITLE_DECODE_THREAD_H
  3. #pragma once
  4. #include "ThreadBase.h"
  5. #include "packets_sync.h"
  6. #include <atomic>
  7. class SubtitleDecodeThread : public ThreadBase
  8. {
  9. public:
  10. explicit SubtitleDecodeThread(VideoState* pState = nullptr);
  11. ~SubtitleDecodeThread();
  12. SubtitleDecodeThread(const SubtitleDecodeThread&) = delete;
  13. SubtitleDecodeThread& operator=(const SubtitleDecodeThread&) = delete;
  14. SubtitleDecodeThread(SubtitleDecodeThread&&) = delete;
  15. SubtitleDecodeThread& operator=(SubtitleDecodeThread&&) = delete;
  16. void stop() override;
  17. protected:
  18. void run() override;
  19. private:
  20. VideoState* m_pState;
  21. };
  22. #endif // AVPLAYER2_SUBTITLE_DECODE_THREAD_H