frame_receiver.h 401 B

1234567891011121314151617181920212223
  1. #ifndef TINYPLAYER2_FRAME_RECEIVER_H
  2. #define TINYPLAYER2_FRAME_RECEIVER_H
  3. #include <memory>
  4. #include <string_view>
  5. class video_decoder;
  6. class frame_receiver {
  7. public:
  8. frame_receiver();
  9. ~frame_receiver();
  10. bool start(std::string_view address, uint16_t port, video_decoder *decoder);
  11. private:
  12. struct impl;
  13. std::unique_ptr<impl> pimpl;
  14. };
  15. #endif //TINYPLAYER2_FRAME_RECEIVER_H