VideoRenderer.h 777 B

123456789101112131415161718192021222324252627
  1. #pragma once
  2. class VideoRenderer
  3. {
  4. public:
  5. VideoRenderer();
  6. // void SetRenderWindow(int32_t width,int32_t height);
  7. void OnArgb32FrameReady(const void* data, const int stride, const int frame_width, const int frame_height);
  8. void StartRender(bool bStart);
  9. static void FrameCallback(void* user_data,void* data,const int32_t stride,const int32_t frame_width,const int32_t frame_height);
  10. ~VideoRenderer();
  11. // const uint8_t* image() const { return image_.get(); }
  12. // int width() const { return width_; }
  13. // int height() const { return height_; }
  14. private:
  15. //void SetSize(int32_t width, int32_t height);
  16. // std::unique_ptr<uint8_t[]> image_;
  17. // int width_;
  18. // int height_;
  19. // CMessageQueue* main_wnd_;
  20. bool start_;
  21. };