VideoRenderer.h 618 B

12345678910111213141516171819202122232425
  1. //
  2. // Created by Grishka on 10.08.2018.
  3. //
  4. #ifndef LIBTGVOIP_VIDEORENDERER_H
  5. #define LIBTGVOIP_VIDEORENDERER_H
  6. #include <vector>
  7. #include "../Buffers.h"
  8. namespace tgvoip{
  9. namespace video{
  10. class VideoRenderer{
  11. public:
  12. static std::vector<uint32_t> GetAvailableDecoders();
  13. virtual ~VideoRenderer(){};
  14. virtual void Reset(uint32_t codec, unsigned int width, unsigned int height, std::vector<Buffer>& csd)=0;
  15. virtual void DecodeAndDisplay(Buffer frame, uint32_t pts)=0;
  16. virtual void SetStreamEnabled(bool enabled)=0;
  17. static int GetMaximumResolution();
  18. };
  19. }
  20. }
  21. #endif //LIBTGVOIP_VIDEORENDERER_H