您的位置:首页 > 运维架构 > Linux

基于嵌入式Linux的视频采集系统14-----源程序----display.h

2012-04-12 22:07 585 查看
本文来自:
http://blog.chinaunix.net/uid-23093301-id-86403.html
#ifndef __V4L2_DISPLAY_H_INCLUDES
#define __V4L2_DISPLAY_H_INCLUDES

#include <minigui/common.h>
#include <minigui/minigui.h>
#include <minigui/gdi.h>
#include <minigui/window.h>
#include <minigui/mywindows.h>

#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <unistd.h>
#include <iostream>
#include <string>
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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐