Chinaunix首页 | 论坛 | 博客
  • 博客访问: 403106
  • 博文数量: 48
  • 博客积分: 1820
  • 博客等级: 上尉
  • 技术积分: 705
  • 用 户 组: 普通用户
  • 注册时间: 2009-12-28 23:10
文章分类

全部博文(48)

文章存档

2012年(1)

2011年(12)

2010年(34)

2009年(1)

分类: 嵌入式

2010-07-23 23:58:23

#ifndef __V4L2_DISPLAY_H_INCLUDES
#define __V4L2_DISPLAY_H_INCLUDES



#include
#include
#include
#include
#include

#include
#include
#include
#include
#include
#include
using namespace std;
#include "decoder.h"

#define WINDOW_Caption "Video_Capture_By_Breeze" 

#define YUV_WIDTH  320
#define YUV_HEIGHT 240
class CDisplay
{
private:
static int Display_WinProc(HWND hWnd, int message, WPARAM wParam, LPARAM lParam);
public:
enum
{
eWeight =320,
eHeight =240
};
public:
CDisplay();
~CDisplay();
int start();
int drow_img(void* img,size_t size);

private:
/////////////////////// Private Operation Field ///////////////////////
int hanlde_winpro(HWND hWnd, int message, WPARAM wParam, LPARAM lParam);
int init_window();
int handle_paint(HWND hWnd);
int handle_click(HWND hWnd, WPARAM wParam, LPARAM lParam);
int handle_timer(HWND hWnd);
////////// Show YuV OverDLay
void ShowYUVOverlay( HDC hdc);
private:
////////////////////////      config Private Field ////////////////////////
bool m_started;
MAINWINCREATE m_CreateInfo;
HWND m_hMainWnd;
BITMAP m_bmp;
CDecoder m_decoder;
GAL_Overlay  *overlay;
void* m_img;
size_t m_size;

};
#endif

阅读(1303) | 评论(0) | 转发(2) |
给主人留下些什么吧!~~