2013-01-14 00:22:24 +00:00
|
|
|
#ifndef _MAINWINDOW_H_
|
|
|
|
#define _MAINWINDOW_H_
|
|
|
|
|
|
|
|
#include "win32/Window.h"
|
|
|
|
#include "FrameBufferWindow.h"
|
|
|
|
#include "../VideoDecoder.h"
|
|
|
|
#include <memory>
|
|
|
|
|
|
|
|
class CMainWindow : public Framework::Win32::CWindow
|
|
|
|
{
|
|
|
|
public:
|
2018-04-30 21:01:23 +01:00
|
|
|
CMainWindow();
|
|
|
|
virtual ~CMainWindow();
|
2013-01-14 00:22:24 +00:00
|
|
|
|
|
|
|
protected:
|
2018-04-30 21:01:23 +01:00
|
|
|
long OnCommand(unsigned short, unsigned short, HWND);
|
2013-01-14 00:22:24 +00:00
|
|
|
|
|
|
|
private:
|
2018-04-30 21:01:23 +01:00
|
|
|
void OnNewFrame(const Framework::CBitmap&);
|
|
|
|
void OnFileOpen();
|
2013-01-14 00:22:24 +00:00
|
|
|
|
2018-04-30 21:01:23 +01:00
|
|
|
CFrameBufferWindow* m_frameBufferWindow;
|
|
|
|
std::shared_ptr<CVideoDecoder> m_videoDecoder;
|
2019-08-16 17:11:35 -04:00
|
|
|
NewFrameEvent::Connection m_onNewFrameConnection;
|
2013-01-14 00:22:24 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|