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