You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
795 B

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. #ifndef __SDL_VIDEO_WIDGET_HEADER__
  2. #define __SDL_VIDEO_WIDGET_HEADER__
  3. #include "../gui_sdl.h"
  4. //#include "../../components/base/basicLIBAV.h"
  5. //#include "../../components/base/basicMediaDestination.h"
  6. #include "../../data/media/video/videoAVLIBSource.h"
  7. #include "../core/coreYUV420P_Widget.h"
  8. class videoWidget: public sdlYUV420PWidget, public basicMediaDestination{
  9. private:
  10. SDL_mutex * m_pTextureProtector;
  11. AVFrame * m_pCurrentFrame;
  12. uint8_t * m_pFrame_buffer;
  13. videoAVLIBSource * m_pSource;
  14. public:
  15. explicit videoWidget(CSTR path, int x, int y, int width, int height, bool decor = true, sdlCoreWidget * pParent = NULL);
  16. virtual ~videoWidget();
  17. virtual void pushFrame(AVFrame * Frame, void* src = NULL);
  18. virtual void render(SDL_Renderer* pRenderer);
  19. };
  20. #endif