| 6 |
| #define LIBTGVOIP_VIDEORENDERER_H |
| 7 |
| 8 | #include "../Buffers.h" |
| 9 |
| 10 | #include <vector> |
| 11 |
| 12 | namespace tgvoip |
| 13 | { |
| 14 |
| 15 | namespace video |
| 16 | { |
| 17 |
| 18 | class VideoRenderer |
| 19 | { |
| 20 | public: |
| 21 | static std::vector<std::uint32_t> GetAvailableDecoders(); |
| 22 | virtual ~VideoRenderer() = default; |
| 23 | virtual void Reset(std::uint32_t codec, unsigned int width, unsigned int height, std::vector<Buffer>& csd) = 0; |
| 24 | virtual void DecodeAndDisplay(Buffer frame, std::uint32_t pts) = 0; |
| 25 | virtual void SetStreamEnabled(bool enabled) = 0; |
| 26 | virtual void SetRotation(std::uint16_t rotation) = 0; |
| 27 | virtual void SetStreamPaused(bool paused) = 0; |
| 28 | static int GetMaximumResolution(); |
| 29 | }; |
| 30 |
| 31 | } // namespace video |
| 32 |
| 33 | } // namespace tgvoip |
| 34 |
| 35 | #endif // LIBTGVOIP_VIDEORENDERER_H |
| 36 |