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.
23 lines
795 B
23 lines
795 B
#ifndef __SDL_VIDEO_WIDGET_HEADER__
|
|
#define __SDL_VIDEO_WIDGET_HEADER__
|
|
|
|
#include "../gui_sdl.h"
|
|
//#include "../../components/base/basicLIBAV.h"
|
|
//#include "../../components/base/basicMediaDestination.h"
|
|
#include "../../data/media/video/videoAVLIBSource.h"
|
|
#include "../core/coreYUV420P_Widget.h"
|
|
|
|
class videoWidget: public sdlYUV420PWidget, public basicMediaDestination{
|
|
private:
|
|
SDL_mutex * m_pTextureProtector;
|
|
AVFrame * m_pCurrentFrame;
|
|
uint8_t * m_pFrame_buffer;
|
|
videoAVLIBSource * m_pSource;
|
|
public:
|
|
explicit videoWidget(CSTR path, int x, int y, int width, int height, bool decor = true, sdlCoreWidget * pParent = NULL);
|
|
virtual ~videoWidget();
|
|
virtual void pushFrame(AVFrame * Frame, void* src = NULL);
|
|
virtual void render(SDL_Renderer* pRenderer);
|
|
};
|
|
|
|
#endif
|